Twilio and whatsapp workflow NEED HELP PLEASE!

Good day i am struggling to get my workflow working between twilio and N8n please can sumone assist me in what i am doing wrong i am getting this error and this is what i want :brain: OVERVIEW (what we’re building)
Customer β†’ WhatsApp β†’ Menu β†’ Sub-menu β†’ Data capture β†’ Confirmation


:building_construction: WORKFLOW STRUCTURE (IMPORTANT)
In n8n we will use:

  1. Webhook (already working :white_check_mark:)
  2. Set node (extract message)
  3. Switch node (menu logic)
  4. Multiple reply nodes (Twilio HTTP)
  5. State tracking (VERY IMPORTANT)

:warning: CRITICAL DESIGN DECISION
:backhand_index_pointing_right: WhatsApp is NOT like a form
:backhand_index_pointing_right: You must track conversation step-by-step
We will store:
User β†’ current step


:rocket: STEP 1: MAIN MENU RESPONSE
When ANY message comes in:
Reply:
Welcome to Konica Minolta Centrale :waving_hand:
How can we assist you?
:one: Sales
:two: Support
:three: Accounts


:rocket: STEP 2: HANDLE MENU (Switch node)
Use:
:backhand_index_pointing_right: Switch on {{$json[β€œBody”]}}


CASE β€œ1” β†’ SALES
Reply:
Sales Department:
:one: Promotions
:two: New Sale
:three: Upgrade


CASE β€œ2” β†’ SUPPORT
Reply:
Support:
:one: Toner
:two: Service


CASE β€œ3” β†’ ACCOUNTS
Reply:
Accounts:
Please provide:

  • Serial Number
  • Contact Number
  • Email Address
    Do you need:
    :one: Invoice
    :two: Statement

:rocket: STEP 3: SALES FLOW


:backhand_index_pointing_right: If user selects β€œ1” (Promotions)
Send IMAGE (important)
Use Twilio HTTP node:
Add field:
MediaUrl = your-image-link.com
:backhand_index_pointing_right: I can generate flyer for you if needed


:backhand_index_pointing_right: If β€œ2” (New Sale)
Ask:
Please provide:

  • Name
  • Surname
  • Company Name
  • Address
  • Contact Number
  • Email Address
    Then reply:
    Thank you. A sales representative will contact you shortly.

:backhand_index_pointing_right: If β€œ3” (Upgrade)
Ask:
Please provide:

  • Serial Number
  • Contact Number
  • Email Address
    Then reply:
    Thank you. A sales representative will contact you shortly.

:rocket: STEP 4: SUPPORT FLOW


:backhand_index_pointing_right: If β€œ1” Toner
Ask:
Please provide:

  • Serial Number
  • Meter Reading (B/W and Colour if available)
    Then ask:
    Please provide:
  • Contact Number
  • Email Address

:backhand_index_pointing_right: If β€œ2” Service
Ask:
Please provide:

  • Serial Number
  • Issue Description
  • Contact Number
  • Email Address

:rocket: STEP 5: ACCOUNTS FLOW
Ask:
Please provide:

  • Serial Number
  • Contact Number
  • Email Address
    And select:
    :one: Invoice
    :two: Statement
    Then reply:
    Accounts department will contact you shortly.

:warning: IMPORTANT (WITHOUT THIS IT BREAKS)
You MUST track user state.
:backhand_index_pointing_right: Example:
User State
079xxxx sales_menu
079xxxx waiting_for_details


:puzzle_piece: HOW TO STORE STATE (simple)
Use:
:backhand_index_pointing_right: n8n Data Store node
Store:
{
β€œphone”: β€œ{{$json[β€˜From’]}}”,
β€œstep”: β€œsales_new_sale” please help me !!!

this is what i have sofar

hello @Wynandkmc

Please, share the workflow.

You can select all nodes with Ctrl+A and copy them with Ctrl+C. Then, past the content after pressing the button </> with Ctrl+V.

The description looks like an AI-generated one, and it’s not clear what the issue is.

good day Barn4k thanks for you replay here it is

@Wynandkmc
I think the main issue is that only Send Main Menu is sending a complete Twilio payload, while Sales Menu, Support Menu, and Accounts Menu have empty body parameters, so those requests are likely failing because Twilio is not receiving the required To, From, and Body fields.

Thank you Tamy i will add them in i was just trying to get the first part working before i go on to the next step

Try this format:

ref: Quickstart: Send and receive WhatsApp messages | Twilio

thank you barn4k i will and let you know

Good day

thank you for all you input and help i finally have it working little bit more complex but its working