taafy
08/22/2025, 5:37 AMres = retell_client.conversation_flow.create(
model_choice={
"model": "gpt-4o",
"type": "cascading",
},
nodes=[
{
"id": "start",
"instruction": {
"text": "Greet the customer and ask how you can help them.",
"type": "prompt",
},
"type": "conversation",
}
],
start_speaker="agent",
tools=[
{
"name": "send_email",
"type": "custom",
"url": "https://some_real_url.app/api/tools/send-email",
"description": "sends an email to an email address",
"headers": {},
"method": "POST",
"query_params": {},
"parameters": {
"type": "object",
"properties": {
"body": {
"type": "string",
"description": "Email body",
},
"subject": {
"type": "string",
"description": "Email subject line based on the call content",
},
"to": {
"type": "array",
"items": {"type": "string"},
"description": 'Array of email addresses. Use ["hello@gmail.com"] to send to the caller\'s email',
},
},
"required": ["to", "subject", "body"],
},
"response_variables": {},
"timeout_ms": 15000,
"tool_id": "tool-send-email",
}
]
)
agent_response = retell_client.agent.create(
agent_name="var",
voice_id="11labs-Adrian",
response_engine={
"type": "conversation-flow",
"conversation_flow_id": res.conversation_flow_id,
},
)
print(agent_response)
print(conversation_flow_response.tools)
both print statements show the tools field to be None
agent is successfully created (reflected in dashboard/ui)
tools also do not reflect in UI (under functions)
https://cdn.discordapp.com/attachments/1408324136060715099/1408324136312508486/image.png?ex=68a9538f&is=68a8020f&hm=9bb483528478f4b896e64acecc2eb93c3b003807b364fb8a0413c3fa7cb4f210&
https://cdn.discordapp.com/attachments/1408324136060715099/1408324136593522799/image.png?ex=68a9538f&is=68a8020f&hm=6d88e20e990ee7a1c7848acc7d8dee0a6b893807a45d02f3eef1030f2525996c&taafy
08/22/2025, 5:39 AMOmar Ashraf | Community Lead
08/22/2025, 6:05 AMtaafy
08/22/2025, 6:37 AMhintenjoyer
08/22/2025, 8:15 AMOmar Ashraf | Community Lead
08/22/2025, 8:30 AM