Using my own logic for Chat assistant content

I am trying to use the chat component and supply the assistant content myself (users enters a message, my query gets that message and then returns a response that is showed in the chat component as the assistant).

I read this but am not able to get similar outcome:
https://community.retool.com/t/how-do-i-use-my-own-api-and-chat-
functionality-with-the-chat-component/37114

I'm not sure if it's the cause of the issue, but one thing I noticed that is different is that I am not able to specify any value for Query To Trigger, only for the event handler.

Any ideas how I can get the assistant text response back to chat component?

Hi @Taka_Binancio, here are a couple of topics that should help with your use case: