Create an action
Actions are sent to the UI through messages:Define a Python Callback
To handle the user’s click on the action button, you need to define a callback function with the@cl.action_callback
decorator:
Action API
Learn how more about Actions.