https://retellai.com/?utm_source=discord&utm_medium=seo logo
is there any negative consequence to leaving chat ...
# ❓・ai-evy-support
m
@AI Evy is there any negative consequence to leaving chat sessions open with agents for an extended period of time? I have my chat agent hooked up to a long term nurture sequence, which results in tons of ongoing chats at a time.
a
Thanks for tagging me @maxluz. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available documentation, I don't have specific information about negative consequences of leaving chat sessions open for extended periods or any limitations related to having many ongoing chats simultaneously. The documentation shows that chat sessions have an "ongoing" status when active [(1) ]() , and there's an Auto-Close Inactive Chats feature that can automatically end chats when a timeout is triggered [(2) ]() . You can also manually end chat sessions using the end-chat API endpoint . For cost considerations, the documentation shows that each chat incurs costs based on the services used (like TTS) [(1) ]() , so extended sessions would accumulate costs over time. I'd recommend checking out these potentially useful sources for more details about chat session management: - [Monitor sessions via dashboard]() - [Create Chat Completion]() Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] List Chat](https://docs.retellai.com/api-references/list-chat) [[2] Create Chat Completion](https://docs.retellai.com/deploy/create-chat-completion) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy ok another question. WHen my workflows extract more data from the customer mid chat with an agent, am I able to pass new variables through the create chat completion endpoint? Or can I add it to the content in double {{}}?
a
Thanks for the follow-up, @maxluz. I'll get back to you soon.
### Answer Based on the available sources, I don't have specific information about passing new variables through the create chat completion endpoint mid-conversation or adding variables to content using double curly braces
{{}}
. The Create Chat Completion API endpoint only accepts
chat_id
and
content
parameters [(1) ]() . The
content
parameter is described as "user message to generate agent chat completion" . Dynamic variables are set when initially creating a chat session through the Create Chat API, which accepts
retell_llm_dynamic_variables
as an optional parameter in key-value pairs [(2) ]() . For example:
Copy code
javascript
{
  "customer_name": "John Doe"
}
However, the sources don't explicitly document whether you can update or pass new dynamic variables through subsequent chat completion calls, or whether you can embed variables directly in the content using
{{}}
syntax. For specific guidance on updating variables mid-conversation or the supported variable syntax in chat content, I'd recommend: - [Create Chat Completion]() - [Create Chat]() Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Create Chat Completion](https://docs.retellai.com/api-references/create-chat-completion) [[2] Create Chat](https://docs.retellai.com/api-references/create-chat) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.