Skip to main content
Use a user activity node to define interactive steps in your agentic workflow where users provide or receive information in one of two ways:
  • In a multi-turn conversation, where the user provides or receives one piece of data at a time
  • Through a form, which prompts the user for several pieces of data in a single conversational turn
To add a user activity node to your agentic workflow, start by creating a userflow() object.

Multi-turn conversations

To collect or deliver one piece of data at a time, call field() on the userflow() object. This method accepts the following input parameters: Here is an example that shows how to use field():
Python

Forms (Public Preview)

To prompt for multiple pieces of data in a single turn, instantiate the form() object to create a form node. This method accepts the following input parameters: After instantiating the form object, add fields to it. Each field type requires its own configuration. Supported field types include:
Creates a text input field. Configure it as a single-line input or a multi-line text area.
Creates a boolean input field. Render it as a checkbox or radio buttons.
Creates a date range input field with start and end date pickers.
Creates a date input field.
Creates a number input field.
Creates a file upload field.
Creates a message output field to display static text.
Creates a field output to display dynamic values.
Creates a list output field to display tabular data.
Creates a file download field.
Creates a single-choice input field. Display options as a dropdown or as radio buttons.
Creates a multi-choice input field. Display options as a multi-select dropdown or as checkboxes.
Here is an example that shows how to use form():
Python