https://discord.gg/botpress logo
Chat API bug
# 🤝help
f
Whenever I trigger custom event from my backend - it instantly jumps to autonomous node and does not display my single choose option. Attached 2 screenshots: 1 from editor, 2 from my backend (Chat API). log attached: ```Jun 1, 2025 at 4:13:59 PM [f5df0881c5] [dm] : Event of type chat:custom received. Jun 1, 2025 at 4:14:01 PM [f5df0881c5] [agent-hook] [KnowledgeAgent] [conversation_turn_started]: Skipping KB: turn has no message Jun 1, 2025 at 4:14:03 PM [f5df0881c5] [autonomous-node] [node:Aimei] [node:Aimei]: Iteration started Jun 1, 2025 at 4:14:03 PM [f5df0881c5] [dm] : Sending Message. Type: text. Text: Ahoy! It seems like ye've opened the chat. How can I assist ye on this fine day? Jun 1, 2025 at 4:14:03 PM [f5df0881c5] [autonomous-node] [node:Aimei] [node:Aimei]: Tool global.Message called successfully Jun 1, 2025 at 4:14:03 PM [f5df0881c5] [autonomous-node] [node:Aimei] [node:Aimei]: Code execution done Jun 1, 2025 at 4:14:03 PM [f5df0881c5] [autonomous-node] [node:Aimei] [node:Aimei]: Execution successful Jun 1, 2025 at 4:14:04 PM [f5df0881c5] [agent-hook] [SummaryAgent] [conversation_turn_ended]: Last 10 transcript messages available --> {{conversation.SummaryAgent.transcript}} Jun 1, 2025 at 4:14:04 PM [f5df0881c5] [agent-hook] [SummaryAgent] [conversation_turn_ended]: Summary updated based on 2 new messages --> {{conversation.SummaryAgent.summary}} https://cdn.discordapp.com/attachments/1378829285871190066/1378829286492082237/image.png?ex=683e0657&is=683cb4d7&hm=9bc0a3ac13e1339a613344dee8c2e6a2530a94ccd7b7dc03c559bde9a4ee5c86& https://cdn.discordapp.com/attachments/1378829285871190066/1378829287091863632/image.png?ex=683e0657&is=683cb4d7&hm=0234272b831ed8ea322be9a2e2f9e78a6e764b827d46a3504af166b8555cc139&
l
The only reason I can think is that the changes are not published
p
Can you elaborate on how you are using the chat API, what payloads are you sending?
f
The changes were published. More over, at some point, I start receiving correct (single choice) output, but then it switched back. Idk what was the precondition for this switch. I don't have any custom filters for event. The node is empty.
p
Why would you not have the welcome message as a node in the bot that is always displayed at the beginning of the conversation? I don't see the necessity of the custom event at the moment, is there something I'm missing?
f
can you share an example?
I've had a node with text on start of conversation. Whenever, I would connect via Chat API, I didn't receive any message with it. So, I ended up with calling a custom event "conversation started" Is there quickstart template with chat API?
p
Why do you need to use the Chat API?
f
I have a unique frontend design for chat, which I want to power up with Chat API.
2 Views