Skip to content
Chat until conditio...
 
Notifications
Clear all

Chat until conditions are met

6 Posts
3 Users
0 Reactions
4 Views
Sa_id_Abedi
(@sa_id_abedi)
Posts: 2
New Member
Topic starter
 

Is it possible to create a workflow that incorporates chatbots to:

  1. Query a database to respond to chat inquiries.
  2. Request the chat user's first name, email, and other details.
  3. Proceed to the next step once the chat includes the user's information?

Could you please provide guidance on how to achieve this?

 
Posted : 19/03/2025 1:56 pm
salmansolutions
(@salmansolutions)
Posts: 3
New Member
 

Yes, this is achievable.
You can utilize the Chat trigger Node and link it to a database where you store the requested values such as Name and Email, associated with the chatsessionid. This allows you to route the conversation appropriately. If the fields are empty, prompt the user to provide them; if they are populated, direct the conversation to the AI Agent. The Agent can be integrated with tools and Vector databases.

For your knowledge base, store it within a vector database. To check information like order status, you can connect a tool that queries a database.

If you can share more specifics about your exact requirements, I can offer a workflow example or assist you in constructing one.

 
Posted : 19/03/2025 2:10 pm
Sa_id_Abedi
(@sa_id_abedi)
Posts: 2
New Member
Topic starter
 

I'm encountering an issue with the second AI agent, specifically an 'Error in sub-node ‘Window Buffer Memory1’. I'm unsure how to share the window memory.

 
Posted : 19/03/2025 4:21 pm
salmansolutions
(@salmansolutions)
Posts: 3
New Member
 

This is how I would ensure that you receive the correct data from the user. Alternatively, you could modify the chat widget to require users to complete a form before initiating a chat.

 
Posted : 19/03/2025 6:36 pm
salmansolutions
(@salmansolutions)
Posts: 3
New Member
 

And one more thing regarding your issue with chat storage/context:

When using {{ $json.sessionId }}, you are referencing the output from your previous node.
In your situation, the initial Agent is producing output similar to this:

json
{
"output": "AI reply"
}

This is why your second AI Agent node cannot reference {{ $json.sessionId }}.

Instead, please refer to {{ $(‘When chat message received’).item.json.sessionId }} in the storage node.

 
Posted : 21/03/2025 9:27 am
system
(@system)
Posts: 332
Reputable Member
 

This discussion was automatically closed 90 days following the last response. New replies are no longer permitted.

 
Posted : 19/06/2025 9:27 am
Share: