https://retellai.com/?utm_source=discord&utm_medium=seo logo
Dynamic variables populating in multi-prompt agent...
# ❓・bug-report
n
Hi folks, we're having an issue where dynamic variables successfully populate in the multi-prompt agent but not in the conversation flow agent. The webhook endpoint is the same for agents built in both flows, so it returns data in the same format. Here's a sample call ID with the issue: call_df2594db2504780a394acf90d17 This has happened with every phone call (not web call) made to this agent. Interestingly, the multi-prompt agent is able to correctly handle and populate the dynamic variables for the same endpoint. I've attached screenshots of (a) the call details and (b) the detected dynamic variables. I've also attached the request log from our server for this webhook response:
Copy code
{
  "RequestJSON": {
    "event": "call_inbound",
    "call_inbound": {
      "agent_id": "agent_798c32c4dc8ba18899edf61aea",
      "from_number": "+18605599090",
      "to_number": "+15164944868"
    }
  },
  "Response": {
    "Headers": {
      "Content-Type": [
        "application/json;charset=utf-8"
      ]
    },
    "Latency": 20968539,
    "StatusCode": 200
  },
  "ResponseJSON": {
    "company_name": "Oyster Insurance Agency, LLC.",
    "agent_phone": "+18001234567",
    "agent_email": "services@withoyster.com",
    "customer_phone": "+18605599090"
  }
}
c
Hi @nikhilkansal_67945 Can you share what request format is coming in both cases ?
n
Hey @chiraggupta1910_87616 – are you referring to the request format of the webhook we are receiving from Retell? If so, the
RequestJSON
above details it for the issue here.
Hi folks, any update here?