Send Retool Chat message as Assistant (not as user) using JS

  • Goal: I want the Retool AI assistant to send specific messages using Javascript.

  • Steps: Right now, I'm playing around with the chat1.sendmessage function but this sends the message as the user (me), not as the assistant. I am alternatively also trying to do this by overwriting the message history, but the chat doesn't reflect any updates I make to message history.