AIUIAction
data class AIUIAction(val messageId: String, val format: AIUIFormat, val name: String, val label: String, val payload: Map<String, Any?> = emptyMap())
What a person did in a reply's generated UI that the agent should hear about, such as tapping a place or submitting a form.
Send it as their next message: label is its text, what people read in the conversation, and customData holds the action for the agent.
channel.sendMessage(Message(text = action.label, extraData = action.customData)).enqueue()Content copied to clipboard
Parameters
messageId
The reply whose UI it came from.
format
The format of that UI.
name
What happened, such as an event of an app's component (ask_about) or OpenUI's continue_conversation.
label
What the person did, in their words, such as "Tell me more about St. Naum".
payload
The details in the format's own shape, such as what was chosen and a form's values, as plain Kotlin values.
Properties
Link copied to clipboard
The action as the custom data of the person's message, under CUSTOM_DATA_KEY.
Link copied to clipboard