Run an AI Telegram shopping assistant with AWS Bedrock, Paystack and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 31 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Telegram, AWS Bedrock Chat Model, Google Sheets and HTTP Request. It also calls api.paystack.co over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Normalize Paystack Payload (Edit Fields (Set)): sets or maps fields
- Parse Payload (Edit Fields (Set)): sets 5 fields: chat_id, user_id, user_first_name…
- Extract Paystack Signature (Code): runs custom JavaScript code
- Load User State (Data table): get
- Compute HMAC Signature (Crypto): hashes or encrypts values
- Normalize User State (Edit Fields (Set)): sets 7 fields: current_state, user_email, pending_product_id…
- Verify Signature (If): checks a condition and branches into true / false
- AI Agent: runs an AI agent, with model: Customer Chat Model; 6 tools (Products, Get Cart Data, Add Items To Cart, Create Paid Order…); memory: Customer Chat Memory
- Cart Lookup Agent (AI Agent): runs an AI agent, with model: Fulfillment Chat Model; 1 tool (Read Cart by Reference); memory: Cart Lookup Memory
- Send Telegram Reply (Telegram): uses Telegram
…plus 2 more steps. See the full node list below.
Services it uses
HTTP calls to: api.paystack.co
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.
Nodes used (15)
- Webhook
n8n-nodes-base.webhook - AI Agent
@n8n/n8n-nodes-langchain.agent - Code
n8n-nodes-base.code - Telegram Trigger
n8n-nodes-base.telegramTrigger - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - AWS Bedrock Chat Model
@n8n/n8n-nodes-langchain.lmChatAwsBedrock - Telegram
n8n-nodes-base.telegram - Google Sheets Tool
n8n-nodes-base.googleSheetsTool - Edit Fields (Set)
n8n-nodes-base.set - Data table
n8n-nodes-base.dataTable - Http Request Tool
n8n-nodes-base.httpRequestTool - Crypto
n8n-nodes-base.crypto - Telegram Tool
n8n-nodes-base.telegramTool - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp
From the author
Quick overview This workflow runs a Telegram shopping assistant powered by AWS Bedrock, using Google Sheets as a product catalog and cart store, generates Paystack payment links, and fulfills successful Paystack webhook payments by verifying the transaction,…