Help Needed: Sending WhatsApp Template Message via AI Agent + HTTP Request node

Hey everyone,
I’m trying to send a whatsapp template message to user using AI Agent tool in n8n. The Agent is generating correct output with fields like

  • Phone Number
  • Time
  • Meeting Details
  • Interviewer

however, the values generated by the AI are not being passed to the HTTP Request node which i needed as input in HTTP request node body.

i am using this prompt:

You are an orchestration agent for interview confirmation.

### INPUT
You will always receive structured JSON with:
- intent
- candidate_number
- original_message
- additional_info

### TASKS
1. Read the "Lookup_Sheet" sheet and find the row where Phone = candidate_number.  
2. Construct a JSON object with exactly these keys:
   - Phone
   - Time
   - Meeting Details
   - Interviewer
3. Pass the final JSON output to "HTTP Request" and call it,

Ehy @Javeria_Rizwan ,

In your workflow the AI Agent’s output does not automatically become part of $json. That’s why {{$json[“Phone”]}} stays empty. To pass values from the Agent to the HTTP Request you have two options:

  • Use $fromAI(“Phone”), $fromAI(“Time”), etc. directly in the HTTP Request fields.
  • or parse the Agent’s output with a structured output parser so the values are written into $json, and then {{$json[“Phone”]}} will work.