Triggering Workflows from Chat hooks

Hi all and Happy New Year.

I am working with the AI Chat component.

I have modified the chat response message so that when I get a bullet point, I get a standard “Tell Me More“ text. So that users can click on that and get additional Details.

I want to do 2 things:

  1. Open a separate Window. So rather than have it in the same chat log, I want to have this as a separate pop-up.
  2. I want to trigger a workflow that would take the specific bullet point as input, so I can give context to the API call.

Ideally, I would not want to fork the component. Currently, I’ve used an HTML component on the page and some JavaScript in the workflow that identifies the bullet point and adds the text.

Basically, I’m not sure how to trigger the workflow. From that I think I would be able to open the pop-up and make the additional api call.

Hi Emeric, happy new year :waving_hand:

I haven’t spent enough time with the chat element to confidently help with this one.

From what I know, the native chat element doesn’t let you trigger a specific workflow from a single message being sent.

I’d probably try creating a custom version using Cursor.

Nevertheless, I’m really interested to see how you end up solving this challenge.

Last idea on using the cursor. I was thinking of catching @flo on office hours with this and get his view.

Also, @Agustin_Carozo any plans on updating the chat component ? like supporting related questions.

You can always share your feedback/ideas on the chat component here:

We are constantly analyzing and considering what to improve/develop next :slight_smile: