https://retellai.com/?utm_source=discord&utm_medium=seo logo
how does one have features where the conversation ...
# ❓・ai-evy-support
m
@AI Evy how does one have features where the conversation is time tracked? for example i mean at 3 minutes, this should happen and at 6 minutes this should happen?
a
Thanks for tagging me @mopi_08060. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, I don't see specific documentation for implementing time-based triggers at exact intervals like 3 or 6 minutes during conversations in Retell AI. However, the sources do show some time-related configuration options available: Call Duration Controls: - `max_call_duration_ms`: Maximum allowed length for the call, will force end the call if reached (minimum 60,000 ms / 1 min, maximum 7,200,000 ms / 2 hours, default 3,600,000 ms / 1 hour) [(1) ]() [(2) ]() - `end_call_after_silence_ms`: If users stay silent for a period after agent speech, end the call (minimum 10,000 ms / 10 s, default 600,000 ms / 10 min) Reminder Settings: - `reminder_trigger_ms`: If set (in milliseconds) , will trigger a reminder to the agent to speak if the user has been silent for the specified duration after some agent speech (default 10,000 ms / 10 s) - `reminder_max_count`: Controls how many times agent would remind user when user is unresponsive (default 1, set to 0 to disable) Conversation Flow Pricing: The Conversation Flow feature does track time spent in each node for pricing purposes - "Call pricing is calculated based on the number of seconds spent within each node, providing transparent cost breakdowns" [(3) ]() [(4) ]() For more specific time-based conversation triggers at exact intervals, you might need to implement custom logic through webhooks or custom functions. Check out these potentially useful sources: - [Get Agent Versions]() - [List Conversation Flows]() - [New
Conversation Flow Agent, Bot Builders Office Hour]() Would you like a general answer about implementing time-based features in conversational AI systems?
​ To learn more, see the sources I considered: [[1] Get Agent Versions](https://docs.retellai.com/api-references/get-agent-versions) [[2] Get Agent](https://docs.retellai.com/api-references/get-agent) [[3] New Conversation Flow Agent, Bot Builders Office Hour](https://www.retellai.com/changelog/new-conversation-flow-agent-bot-builders-office-hour) [[4] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy can you tell me more about what happens when the call reaches max duration?
a
Thanks for the follow-up, @mopi_08060. I'll get back to you soon.
### Answer When a call reaches the maximum duration in Retell AI, the call is automatically terminated [(1) ]() [(2) ]() [(3) ]() . The system will force end the call when the
max_call_duration_ms
limit is reached . Maximum Duration Configuration: - The minimum value allowed is 60,000 ms (1 minute) - The maximum value allowed is 7,200,000 ms (2 hours) - By default, this is set to 3,600,000 ms (1 hour) What Happens When Maximum Duration is Reached: When the maximum call duration is reached, the call will have a disconnection reason of
max_duration_reached
with a call status of
ended
[(4) ]() . This is considered expected behavior according to the debugging documentation . Monitoring Maximum Duration Events: You can check if a call was terminated due to maximum duration by: - Using the [Get Call API]() to retrieve the
disconnection_reason
field [(5) ]() [(4) ]() - Checking the call status through the Retell Dashboard [(4) ]() The maximum duration setting applies to the entire call length and helps ensure calls don't run indefinitely, providing cost control and system resource management.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy how do people go about length control in retell? for example how can i guide conversation behaviour based on time elapsed?
a
Thanks for the follow-up, @mopi_08060. I'll get back to you soon.
### Answer Based on the available sources, Retell AI provides several time-based controls for managing call length and conversation behavior: ## Call Duration Controls Maximum Call Duration: - `max_call_duration_ms`: Maximum allowed length for the call, will force end the call if reached [(1) ]() [(2) ]() [(3) ]() [(4) ]() - Minimum value: 60,000 ms (1 min) - Maximum value: 7,200,000 ms (2 hours) - Default: 3,600,000 ms (1 hour) Silence-Based Call Ending: - `end_call_after_silence_ms`: If users stay silent for a period after agent speech, end the call - Minimum value: 10,000 ms (10 s) - Default: 600,000 ms (10 min) ## User Engagement Controls Reminder System: - `reminder_trigger_ms`: Will trigger a reminder to the agent to speak if the user has been silent for the specified duration after some agent speech - Must be a positive number - Default: 10,000 ms (10 s) - `reminder_max_count`: Controls how many times agent would remind user when user is unresponsive - Must be a non negative integer - Default: 1 (remind once) - Set to 0 to disable agent from reminding ## Implementation Example Here's how you would configure these settings when creating an agent:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.create({
 response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' },
 voice_id: '11labs-Adrian',
}) ;
[(4) ]() ## Limitations The current documentation doesn't show specific features for implementing custom time-based conversation triggers at exact intervals (like "at 3 minutes do X, at 6 minutes do Y") . For more granular time-based conversation control, you would likely need to implement custom logic through webhooks or external systems that track call duration and trigger actions accordingly.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.