Skip to content

nettcomtec/discuss_hub

 
 

Repository files navigation

Pre-commit Status Build Status codecov

Discuss Hub

Integrate third party message channels into Odoo's discuss

Deepwiki tech docs

QUICK START

git clone https://github.com/discusshub/discuss_hub my-project
cd my-project
docker compose -f compose-dev.yaml up -d
# wait....
sleep 30
# load workflows
docker compose -f compose-dev.yaml exec -u node -it n8n sh -c "n8n import:workflow --input=/n8n-workflows.yaml"
# activate workflows
docker compose -f compose-dev.yaml exec -u node -it n8n sh -c "n8n update:workflow --all --active=true"
# so or new workflow get registered
docker compose -f compose-dev.yaml restart n8n
# access odoo: http://localhost:8069/?debug=1
# Navigate to Discuss Hub, Connector. Click start
# Scan your whatsapp

Enjoy!

This part will be replaced when running the oca-gen-addons-table script from OCA/maintainer-tools.

Licenses

This repository is licensed under AGPL-3.0.

However, each module can have a totally different license, as long as they adhere to the Discuss Hub Community policy. Consult each module's __manifest__.py file, which contains a license key that explains its license.


How to Configure

First, run the compose.yaml in this repo.

It has everything needed. It will sping Odoo, and in the demo data, it will have a new connector.

However, we need to create a new instance to connector with it.

This can be easily done with (note, you may need to change apikey according to the one that is in Evolution.

Here how to create a new instance in Evoltuion that will work just fine:

curl --request POST \
  --url http://localhost:8080/instance/create \
  --header 'Content-Type: application/json' \
  --header 'apikey: 1369429683C4C977415CAAFCCE10F7D57E11' \
  --data '{
    "instanceName": "test",
    "qrcode": true,
    "integration": "WHATSAPP-BAILEYS",
    "webhook": {
			"url": "http://odoo:8069/discuss_hub/connector/76320171-94ec-455e-89c8-42995918fec6",
			"base64": true,
         "events": [
             "APPLICATION_STARTUP",
             "QRCODE_UPDATED",
             "MESSAGES_SET",
             "MESSAGES_UPSERT",
             "MESSAGES_UPDATE",
             "MESSAGES_DELETE",
             "SEND_MESSAGE",
             "CONTACTS_SET",
            "CONTACTS_UPSERT",
             "CONTACTS_UPDATE",
             "PRESENCE_UPDATE",
             "CHATS_SET",
             "CHATS_UPSERT",
             "CHATS_UPDATE",
             "CHATS_DELETE",
             "GROUPS_UPSERT",
             "GROUP_UPDATE",
             "GROUP_PARTICIPANTS_UPDATE",
             "CONNECTION_UPDATE",
             "LABELS_EDIT",
             "LABELS_ASSOCIATION",
             "CALL",
             "TYPEBOT_START",
             "TYPEBOT_CHANGE_STATUS"
         ]
     }
}'

Thanks to: ngrok, Comunidade Mundo Automatik

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 87.8%
  • HTML 5.9%
  • JavaScript 4.7%
  • Other 1.6%