Skip to content
How to use the Chat...
 
Notifications
Clear all

How to use the Chat Trigger and provide status updates during AI Agent processing

9 Posts
6 Users
0 Reactions
6 Views
Nick_Caruso
(@nick_caruso)
Posts: 3
Active Member
Topic starter
 

I have a workflow that uses a chat trigger to invoke an AI Agent. This agent has access to multiple tools, and receiving a response can take over a minute. I'm looking to provide status updates within the chat during this processing time, such as:

  • Currently executing tool XYZ
  • Currently searching for ABC

Some ideas I'm exploring include:

  • Given the sessionId, is it possible to trigger an action that sends data back to the chat client?
 
Posted : 26/02/2025 11:23 pm
n8n
 n8n
(@n8n)
Posts: 97
Trusted Member
 

It appears your topic is missing some crucial details. Could you please provide the following information, if relevant?

  • callin.io version:
  • Database (default: SQLite):
  • callin.io EXECUTIONS_PROCESS setting (default: own, main):
  • Running callin.io via (Docker, npm, callin.io cloud, desktop app):
  • Operating system:

Please provide the details so we can assist you further.

 
Posted : 26/02/2025 11:23 pm
Daniel_Lamphere
(@daniel_lamphere)
Posts: 9
Active Member
 

You might be able to achieve this by:

  1. A primary workflow featuring a Chat Trigger followed by an AI Agent.
  2. Separate "status update" workflows capable of posting to the same chat session.

My suggestion would be to retrieve the session ID for the chat, then pass this to a second scenario where you can utilize an HTTP request to post the updates.

If this resolves your issue, please consider marking it as the solution!

 
Posted : 27/02/2025 8:56 am
Nick_Caruso
(@nick_caruso)
Posts: 3
Active Member
Topic starter
 

Thank you Daniel. In the secondary “status update” workflow, given the sessionId, how do I send the HTTP Post back to the callin.io chat client? It appears the callin.io chat client sends a synchronous web request (meaning it sends and waits for a single response) to the callin.io server, and waits for a single response. There isn't a way to directly address (i.e., communicate with) the callin.io chat client to send it information, which is what I'm attempting to do.

The traditional approach (outside of callin.io) would involve a chat client that the server could communicate with. This could be either the chat client "polling" the server for updates based on the sessionId, or establishing a socket connection between the two. If callin.io has already incorporated this functionality into their chat client, that would be excellent.

Please provide guidance on how to achieve this.

 
Posted : 27/02/2025 11:05 am
Sebas
(@sebas)
Posts: 2
New Member
 

It appears that sending status updates is a desired functionality, but it's not currently supported.

Users will need to wait for the complete agent execution to view the output or intermediate steps.

This has been logged as a feature request.

If this addresses your query, please mark it as the solution.

 
Posted : 17/03/2025 8:22 pm
liquidsnakeblue
(@liquidsnakeblue)
Posts: 2
New Member
 

Is this a feature request? A search of the callin.io feature requests for “status updates” yielded no results.

Couldn't this be accomplished using a custom AI tool? You could simply have the agent call the tool after utilizing any other tool and then provide a status update.

 
Posted : 24/03/2025 2:07 am
Nick_Caruso
(@nick_caruso)
Posts: 3
Active Member
Topic starter
 

My point is that the Chat client by callin.io should support streaming updates. You can see this working in every standard chat client (ChatGPT, Claude, etc).

Most AI APIs support a streaming option. For example, I’ve built many custom chat clients with Open AI where we are streaming updates.

In addition, it’s critical to support streaming updates when function calling. Open AI provides this already when calling function tools. So you can do something like this:
User: “When was my last interaction with bob@acme.inc”.
Open AI: “Ok, let me check your email”
Open AI: “I’m also going to check your Google Calendar”

 
Posted : 24/03/2025 12:12 pm
liquidsnakeblue
(@liquidsnakeblue)
Posts: 2
New Member
 

I completely agree with you, and I'm hopeful they'll incorporate this into the AI Agent node.

My suggestion was more about a temporary workaround.

I successfully obtained status updates by utilizing the callin.io workflow AI node. The agent sends its current status via a custom field within that node. The new workflow then retrieves this status, which I've stored in memory, and subsequently added a webhook to receive the status updates.

 
Posted : 24/03/2025 11:31 pm
system
(@system)
Posts: 332
Reputable Member
 

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

 
Posted : 31/03/2025 11:32 pm
Share: