{"product_id":"whatsapp-telegram-ai-agents-workflow-with-n8n-postgres-sheets","title":"WhatsApp \u0026 Telegram AI Agents Workflow with n8n, Postgres + Sheets","description":"\u003ch3\u003eTurn WhatsApp \u0026amp; Telegram messages into AI-driven business actions with n8n\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow connects \u003cstrong\u003eWhatsApp Business Cloud API\u003c\/strong\u003e and \u003cstrong\u003eTelegram\u003c\/strong\u003e to six specialist \u003cstrong\u003eOpenAI AI agents\u003c\/strong\u003e—so incoming chats can drive sales, supplier management, inventory updates, invoice handling, appointment scheduling, and customer support. It uses \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e for business knowledge, logs validated actions in \u003cstrong\u003ePostgreSQL\u003c\/strong\u003e, and supports \u003cstrong\u003eTelegram administrator approvals\u003c\/strong\u003e for safer operations.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives and normalizes messages\u003c\/strong\u003e from WhatsApp Business Cloud API and Telegram (or starts with a manual sample event for testing), including text and attachment metadata.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLoads the configured business profile\u003c\/strong\u003e, identifies trusted suppliers, and prevents duplicate event processing using \u003cstrong\u003ePostgreSQL\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eHandles administrator approvals\u003c\/strong\u003e by recognizing Telegram approval\/rejection commands and processing pending proposals accordingly.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRetrieves knowledge and context\u003c\/strong\u003e from Google Sheets and recent conversation history from \u003cstrong\u003ePostgreSQL\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOrchestrates six OpenAI agents\u003c\/strong\u003e through a central orchestrator: Sales \u0026amp; Leads, Supplier \u0026amp; Products, Inventory, Invoices, Appointments, and Customer Support.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates proposed actions\u003c\/strong\u003e based on enabled agents, sender roles, permitted operations, and required data—then records validated outcomes in PostgreSQL.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSynchronizes changes back to Google Sheets\u003c\/strong\u003e and sends Telegram administrator notifications when required, with optional automated replies to the original WhatsApp\/Telegram sender.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eQualify inbound sales leads from WhatsApp or Telegram and route them to the right agent.\u003c\/li\u003e\n  \u003cli\u003eUpdate supplier\/product information and inventory based on chat requests.\u003c\/li\u003e\n  \u003cli\u003eCapture invoice-related actions and appointment scheduling from customer messages.\u003c\/li\u003e\n  \u003cli\u003eRequire Telegram admin approval before committing sensitive changes.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations\/tech:\u003c\/strong\u003e WhatsApp, Telegram, \u003cstrong\u003eOpenAI\u003c\/strong\u003e, \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e, \u003cstrong\u003ePostgreSQL\u003c\/strong\u003e\n\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n node types mentioned:\u003c\/strong\u003e if, code, postgres, telegram, whats app, sticky note\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46123196743859,"sku":"N8N-20103","price":24.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/epGVBnzY4TdIBSRgNAk9h_iqwaZYxK.png?v=1790673349","url":"https:\/\/buyflowscripts.com\/products\/whatsapp-telegram-ai-agents-workflow-with-n8n-postgres-sheets","provider":"N8N Commerce","version":"1.0","type":"link"}