How to trigger a useAssistant() call form a button instead of the value of the input field? #1143
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
You can call |
Beta Was this translation helpful? Give feedback.
-
Thanks, but how can I connect the submitMessage function to a button, and how do I pass a message as an argument to the submitMessage function call? I am quite new to this area. |
Beta Was this translation helpful? Give feedback.
-
Not sure whether or not you need it anymore, but now they have an append function from the response of useAssistant. So here is how you implement it:
|
Beta Was this translation helpful? Give feedback.
Not sure whether or not you need it anymore, but now they have an append function from the response of useAssistant. So here is how you implement it: