Capture and approve receipt bills from WhatsApp and Telegram with OpenAI and Xero
Ready for 3.0What this workflow does
This workflow has 110 nodes and runs on Telegram events (message) (plus 1 other trigger). Along the way it connects Telegram and Slack. It also calls api.xero.com and api.openai.com over HTTP.
How it runs
Trigger: On Telegram events (message) (plus 1 other trigger).
- Normalize Receipt Data (Code): runs custom JavaScript code
- Verify WAHA HMAC Signature (Crypto): hashes or encrypts values
- Configure Workflow Settings (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Authorize Staff Access (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Locate Receipt Request (Data table): get
- Route Receipt Responses (Switch): routes items into branches
- Review Receipt Request (Code): runs custom JavaScript code
- Handle Receipt Request Failure (Code): runs custom JavaScript code
…plus 98 more steps. See the full node list below.
Services it uses
Other OpenAI + Slack templates (979) · Other Telegram + OpenAI templates (807) · Other Telegram + Slack templates (130)
HTTP calls to: api.xero.com, api.openai.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (10)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Webhook
n8n-nodes-base.webhook - Crypto
n8n-nodes-base.crypto - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Data table
n8n-nodes-base.dataTable - Switch
n8n-nodes-base.switch - Telegram
n8n-nodes-base.telegram - HTTP Request
n8n-nodes-base.httpRequest - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow captures receipt images from Telegram or WhatsApp (via WAHA), extracts receipt details with OpenAI, creates a draft supplier bill in Xero with the receipt attached, requests manager approval in Slack, then authorizes or deletes…