https://retellai.com/?utm_source=discord&utm_medium=seo logo
I am sending my conversational flow chat bot messa...
# ❓・ai-evy-support
m
@AI Evy I am sending my conversational flow chat bot messages using the create chat completion endpoint. However, when I send it a message, it won't advance past the first conversational node. How can I get it to advance in the conversation instead of being stuck in the first node?
a
Thanks for tagging me @maxluz. I'll look through relevant sources and get back to you shortly.
### Answer The issue you're experiencing with your conversational flow chat bot not advancing past the first node is likely related to how your conversation flow is configured. Based on the available sources, conversation flows use nodes with edges and transition conditions to move between different parts of the conversation [(1) ]() . For a conversation flow to advance, you need to ensure your nodes have properly configured edges with transition conditions . The edges determine when and how the agent moves from one node to another based on the conversation context.
Copy code
javascript
{
  "id": "start",
  "type": "conversation",
  "instruction": {
    "type": "prompt",
    "text": "Greet the customer and ask how you can help them."
  },
  "edges": [
    {
      "id": "edge_1",
      "transition_condition": {
        "type": "prompt",
        "prompt": "Customer wants to book appointment"
      },
      "destination_node_id": "book_appointment"
    }
  ]
}
When you send messages using the create chat completion endpoint [(2) ]() , the conversation flow should evaluate the transition conditions and move to the appropriate next node. If your bot is stuck in the first node, check that: 1. Your conversation flow has properly defined edges with transition conditions [(1) ]() 2. The transition conditions are specific enough to match user responses 3. Your destination node IDs are correctly referenced The create chat completion API automatically manages conversation history [(2) ]() , so the issue is likely in the conversation flow configuration rather than the API usage itself.
​ To learn more, see the sources I considered: [[1] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) [[2] Create Chat Completion](https://docs.retellai.com/api-references/create-chat-completion) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
my transition condition is "the user responds" so when I send a new chat completion it should simply advance. Right?
@AI Evy my transition condition is "the user responds" so when I send a new chat completion it should simply advance. Right?
a
Thanks for the follow-up, @maxluz. I'll get back to you soon.
### Answer Based on the documentation, your transition condition "the user responds" should theoretically trigger the transition [(1) ]() . However, there's an important distinction in how transition conditions work in conversation flow agents [(2) ]() . According to the Discord discussion, transitions are evaluated based on the actual content in the
transition_condition.prompt
field, not just the presence of a user response . The transition condition needs to match specific language patterns or content criteria rather than simply detecting that a user has responded . For your conversation flow to advance properly, you should make your transition condition more specific and declarative . Instead of "the user responds," consider using conditions like: - "User has provided their name" - "User has answered the question" - "User has given any response to proceed" The transition evaluation happens after the user's response, and the LLM uses the prompt in
transition_condition.prompt
to determine if the edge should trigger . A generic condition like "the user responds" may not provide enough specificity for the LLM to reliably trigger the transition . If your agent still isn't transitioning properly after making the condition more specific, ensure that your transition conditions are concise, declarative, and match actual language patterns the user would say .
​ To learn more, see the sources I considered: [[1] Node Overview](https://docs.retellai.com/build/conversation-flow/node) [[2] Transition condition in Conversation flow agent](https://discord.com/channels/1186424376300679209/1389012084276334724) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy in the chat history log, my api request messages aren't showing up. It only shows the chat bot responses and node transitions. Is this normal?
a
Thanks for the follow-up, @maxluz. I'll get back to you soon.
### Answer Based on the documentation, this behavior is not normal. When you retrieve chat details using the Get Chat API, the response should include a complete transcript showing both agent and user messages [(1) ]() . The API response includes a
transcript
field that should contain the full conversation history in this format :
Copy code
"transcript": "Agent: hi how are you doing?\nUser: Doing pretty well. How are you?\nAgent: That's great to hear! I'm doing well too, thanks! What's up?\nUser: I don't have anything in particular.\nAgent: Got it, just checking in!\nUser: Alright. See you.\nAgent: have a nice day\n"
Additionally, the response includes a
message_with_tool_calls
array that provides more detailed message information :
Copy code
"message_with_tool_calls": [
 {
 "message_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
 "role": "agent",
 "content": "hi how are you doing?",
 "created_timestamp": 1703302428855
 }
]
If your API request messages aren't appearing in the chat history, this could indicate an issue with how the messages are being processed or stored. According to a Discord discussion, when API calls to conversation flow agents return empty messages, it often means the API call reaches a flow node with missing context or no valid next step [(2) ]() . You should verify that your chat session is properly active and that all required variables are being passed correctly .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Get Chat](https://docs.retellai.com/api-references/get-chat) [[2] api request to conversation flow agent return empty message](https://discord.com/channels/1186424376300679209/1393517053188771850) ​