https://retellai.com/?utm_source=discord&utm_medium=seo logo
Agent is not able to pass value to a dynamic varia...
# ❓・bug-report
m
This is my prompt: # Trip Status Retrieval State ## Input Variables (from previous state) Receive the following variables: - {{trip_id}} - {{trip_airport}} - {{trip_type}} - {{airline_password}} ## Output Sequence 1. Step 1: Announce Trip Variables Say exactly: - "Your trip ID is {{trip_id}}" - "Your airport is {{trip_airport}}" - "Your trip type is {{trip_type}}" - "Your password is {{airline_password}}" 2. Step 2: Retrieve Live Trip Status - Instructions: → Call function
trip_status
immediately upon entering this state, and replace the {{trip_id}} in URL with the {{trip_id}} received. - Pass the following parameters: - Password (query parameter): {{airline_password}} to the tool that contains the custom function 3. Step 3: Parse API Response Expected Response Structure:
Copy code
json
{
  "Status": "string"
}
- Extract Status: 1. Parse the response from
trip_status
tool 2. Extract the
Status
field value 3. Store in variable:
{{live_status}}
4. Step 4: Announce Live Status - CRITICAL: - Do NOT say "SUCCESS" or any generic response - Use the EXACT value from
{{live_status}}
- Say: {{live_status}} - Example: If API returns
{"Status": "On Location"}
, say: "Your trip status is On Location" I have attached the Custom Function definition. @Omar Ashraf | Community Lead https://cdn.discordapp.com/attachments/1437758332437008414/1437758828451201084/image.png?ex=691468c0&is=69131740&hm=08dafb56932ffb45ecb0398be621d2e289bd52b9b9860615f2c30a0f97efea46&
o
Hello @meek_55 , the agent will not be able to store a variable by telling to do that , it has to use a tool , you can use extract dynamic variables tool to assign a value to a variable
m
Thank You sir.
o
You are welcome