{"product_id":"route-whatsapp-intents-with-liveconnect-gpt-4o-mini-in-n8n","title":"Route WhatsApp Intents with LiveConnect \u0026 GPT-4o-mini in n8n","description":"\u003ch3\u003eRoute WhatsApp intents to the right team in n8n—automatically\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow receives LiveConnect Flowbot callback messages from WhatsApp, uses \u003cstrong\u003eGPT-4o-mini\u003c\/strong\u003e with conversation memory to classify the user’s intent, drafts a short Spanish reply, and then routes the conversation to the correct LiveConnect callback response (Sales, Support, Agenda, or General).\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives user messages via LiveConnect callback webhook\u003c\/strong\u003e from your Flowbot, including a \u003cstrong\u003esession ID\u003c\/strong\u003e and message text, protected with a \u003cstrong\u003eshared secret\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eClassifies intent and drafts a reply using OpenAI (GPT-4o-mini)\u003c\/strong\u003e with a per-session conversation memory. The model outputs structured JSON in the format \u003ccode\u003e{ intencion, mensaje }\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eParses the structured output\u003c\/strong\u003e to extract \u003cem\u003eintencion\u003c\/em\u003e and the drafted Spanish message.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRoutes automatically by intent\u003c\/strong\u003e:\n    \u003cul\u003e\n      \u003cli\u003e\n\u003cstrong\u003eSales\u003c\/strong\u003e → sends the drafted text back via LiveConnect and saves an intent variable for Sales.\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eSupport\u003c\/strong\u003e → sends the drafted transfer message and \u003cstrong\u003edelegates to a selected LiveConnect team\u003c\/strong\u003e for human assistance.\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eAgenda\u003c\/strong\u003e → sends the drafted scheduling message, saves the Agenda intent, and prompts for a \u003cstrong\u003epreferred day and time\u003c\/strong\u003e.\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eGeneral\u003c\/strong\u003e → uses a fallback path for “other” questions.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eA prospect asks about pricing: route to \u003cstrong\u003eSales\u003c\/strong\u003e and respond instantly.\u003c\/li\u003e\n  \u003cli\u003eA user needs help troubleshooting: route to \u003cstrong\u003eSupport\u003c\/strong\u003e and transfer to a human team.\u003c\/li\u003e\n  \u003cli\u003eA customer wants an appointment: route to \u003cstrong\u003eAgenda\u003c\/strong\u003e and collect preferred day\/time.\u003c\/li\u003e\n  \u003cli\u003eGeneral questions: answer via the \u003cstrong\u003eGeneral\u003c\/strong\u003e callback response.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details (n8n stack)\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eLiveConnect \u003cstrong\u003eCallback Trigger\u003c\/strong\u003e and LiveConnect callback \u003cstrong\u003eresponse\u003c\/strong\u003e nodes\u003c\/li\u003e\n  \u003cli\u003eOpenAI Chat Model: \u003cstrong\u003egpt-4o-mini\u003c\/strong\u003e\n\u003c\/li\u003e\n  \u003cli\u003eIntent routing with \u003cstrong\u003eswitch\u003c\/strong\u003e\n\u003c\/li\u003e\n  \u003cli\u003eStructured output handling with \u003cstrong\u003en8n-nodes-langchainoutput (Structured JSON Parser)\u003c\/strong\u003e\n\u003c\/li\u003e\n  \u003cli\u003eConversation memory using \u003cstrong\u003en8n-nodes-langchainmemory buffer window\u003c\/strong\u003e\n\u003c\/li\u003e\n  \u003cli\u003eAgent\/LLM orchestration with \u003cstrong\u003en8nn8n-nodes-langchainagent\u003c\/strong\u003e and chat integration nodes\u003c\/li\u003e\n  \u003cli\u003eOptional workflow guidance using a \u003cstrong\u003esticky note\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003e\u003cstrong\u003eSet up requirements:\u003c\/strong\u003e add your OpenAI credential and confirm \u003cstrong\u003egpt-4o-mini\u003c\/strong\u003e, add LiveConnect API credentials, and configure a \u003cstrong\u003esecure shared secret\u003c\/strong\u003e in the LiveConnect Callback Trigger.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45738560159923,"sku":"N8N-17535","price":75.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/EQfzia8QAl70wKRBogO6s_fCZBmLkE.png?v=1785229984","url":"https:\/\/buyflowscripts.com\/products\/route-whatsapp-intents-with-liveconnect-gpt-4o-mini-in-n8n","provider":"N8N Commerce","version":"1.0","type":"link"}