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.
import chainlit as cl@cl.on_chat_startasync def main(): res = await cl.AskUserMessage(content="What is your name?", timeout=10).send() if res: await cl.Message( content=f"Your name is: {res['output']}", ).send()