Skip to content

discusshub/discuss_hub

Repository files navigation

Pre-commit Status Build Status codecov

Discuss Hub

Integrate third-party message channels into Odoo's Discuss system.

📚 Documentation

Complete documentation is available in multiple languages:

Quick Access:

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 may have a different license, as long as it follows the Discuss Hub Community policy. Check each module's __manifest__.py file — the license key there explains the module's license.


How to Configure

First, run the compose.yaml file included in this repository.

It contains all required services. It will start Odoo and, in the demo data, create a sample connector.

You still need to create an instance in Evolution for the connector to use.

This can be done via a simple HTTP request (you may need to update the apikey to match the one configured in your Evolution instance).

Here is an example request to create a working instance in Evolution:

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 Thanks to: ngrok, Comunidade Mundo Automatik

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •