Библиотека / Чат-боты и боты для мессенджеров
Чат-боты и боты для мессенджеров
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.
Шаги
- Receive WhatsApp Message (WAHA Webhook)
- Compute WAHA HMAC-SHA512
- Is WAHA Signature Valid?
- Receive Telegram Message
- Normalize Channel Message
- Set Workflow Config (Users, Slack, Xero)
- Build Authorization Result
- Is User Authorized?
- Load Conversation State
- Merge Message with Saved State
- Prepare State Load Error Reply
- Determine Conversation Route
- Route: Slack Follow-up or New Request
- Prepare Slack Share Message
Всего шагов: 49.
Похожие автоматизации
Финансы, счета и бухгалтерияSync Shopify orders to Xero invoices with Slack and email alertsШагов: 12Финансы, счета и бухгалтерияValidate EN 16931 e-invoices from Gmail and create draft bills in XeroШагов: 46Автоматизация эл. почтыSend tiered overdue invoice reminders with Xero, Gmail, Slack, and Google SheetsШагов: 13CRM и воронка продажCreate and approve Xero invoices from Pipedrive Closed Won deals with SlackШагов: 21