Answer a widget
muse_answer_widgetAnswer a quick-reply widget (kind option) from the agent's message: send the index of the chosen option (from 0), or your own text instead. The answer is a new message in the chat: unless wait is false, follows the reply up to ~50 s like muse_chat. POST /chats/{chatId}/widgets/{widgetId}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Your own reply instead of an option, up to 5000 characters. | |
| wait | No | Follow the reply up to ~50 s (default true). | |
| chatId | Yes | The chatId. | |
| option | No | The index of the chosen entry in the widget's options, from 0. Send exactly one of option and text (both is refused). | |
| widgetId | Yes | The widgetId. |