Ask User
AskUserMessage
Ask for the user input before continuing. If the user does not answer in time (see timeout), a TimeoutError will be raised or None will be returned depending on raise_on_timeout. If a project ID is configured, the messages will be uploaded to the cloud storage.
Attributes
The content of the message.
The author of the message, defaults to the chatbot name defined in your config.
The number of seconds to wait for an answer before raising a TimeoutError.
Whether to raise a socketio TimeoutError if the user does not answer in time.
Returns
The response of the user.
Usage
Was this page helpful?