Перейти к содержанию
НОВОЕМаркетплейс и ваша команда: продавайте то, что создали, и получайте планы и изменения, проверенные до того, как вы их увидите. Что нового

Библиотека / Чат-боты и боты для мессенджеров

Чат-боты и боты для мессенджеров

Answer finance questions from Xero via WhatsApp, Telegram, Slack, and OpenAI

When an API call/webhook arrives, it answers chat messages with a bot with OpenAI / ChatGPT using Data Table, Slack, Telegram.

Что делает

## Finance Bot - WhatsApp & Telegram, powered by Xero + OpenAI ### How it works Receives WhatsApp (via WAHA) and Telegram messages, verifies WAHA requests, normalizes the message, authorizes the sender, loads conversation state, and routes either a Slack-share follow-up or a new finance request. New requests are classified with OpenAI, matching Xero data is fetched, OpenAI words the answer (validated against the Xero figures), the state is saved, and the reply goes back through the originating channel. Read left to right: sections 1 to 10. ### Setup steps - Configure the WAHA webhook, base URL, session and HMAC SHA512 secret. - Connect Telegram bot credentials (trigger and send nodes). - Add OpenAI credentials (intent classifier and response writer). - Connect Xero OAuth2 credentials (connections, invoices, accounts, reports). - Connect Slack and set the target channel in the config node. - Create the n8n Data Table "Finance Bot Conversation State". - Update allowed users, channel IDs and tenant selection in "Set Workflow Config". ### Customization Adjust the allowed users, OpenAI prompts, supported intents, Xero filters/date windows, Slack sharing behaviour and fallback wording.

Шаги

  1. Receive WhatsApp Message (WAHA Webhook)
  2. Compute WAHA HMAC-SHA512
  3. Is WAHA Signature Valid?
  4. Receive Telegram Message
  5. Normalize Channel Message
  6. Set Workflow Config (Users, Slack, Xero)
  7. Build Authorization Result
  8. Is User Authorized?
  9. Load Conversation State
  10. Merge Message with Saved State
  11. Prepare State Load Error Reply
  12. Determine Conversation Route
  13. Route: Slack Follow-up or New Request
  14. Prepare Slack Share Message

Всего шагов: 49.

Похожие автоматизации