Quick overview
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, recording the paid order, clearing the cart, and confirming in Telegram. How it works Triggers when a customer sends a message to your Telegram bot. Extracts chat and user details, loads the customer record from the n8n Data Table (ecom_users), and provides conversation context via an AWS Bedrock chat model and memory. Uses an AI agent to browse the product catalog in Google Sheets, manage cart rows in Google Sheets, and generate a Paystack checkout link via the Paystack Transaction Initialize API when required checkout details are available. Sends the AI agent’s response back to the customer in Telegram. Separately, receives Paystack payment webhooks, normalizes the payload, and validates authenticity by computing an HMAC-SHA512 hash and comparing it to the x-paystack-signature header. Resolves the customer’s Telegram chat ID by matching the Paystack reference to a cart row in Google Sheets. Verifies the transaction with Paystack, checks/updates the order status in the Orders sheet, clears the matching cart rows, and sends a single payment confirmation message in Telegram. Setup Add Telegram Bot API credentials and set your bot webhook so the Telegram Trigger can receive messages. Add AWS credentials for Amazon Bedrock and ensure the selected models are available in your AWS region. Add a Google Sheets OAuth2 credential and update the spreadsheet ID/tabs for Products, Cart, and Orders to match your own sheet structure. Create and populate the n8n Data Table named ecom_users (keyed by telegram_id) to store per-user state such as email and current_state. Add your Paystack secret key as an HTTP Bearer credential for the Paystack API calls and as the HMAC key in the Crypto credential used for webhook signature verification. Copy the Paystack Webhook URL from n8n and register it in your Paystack dashboard as a webhook endpoint. An n8n automation workflow template by Quartey Ansah.
Quartey Ansah
web
free
Others in the same category, ranked by how often they are opened.