Action and content activities in conversational processes
An activity is a block in a conversational process that does one piece of the business process: it either takes an action in a system or shows information to the user. Activities and control flow blocks together make a conversational process follow your business rules.
To add an activity, select + on the process canvas, then Action or Content.
The menu’s Policy, Exit and Continue blocks are control flow blocks, described in Control Flow. A conversational process has no block that loops back to an earlier activity.
Action activities
An action activity calls an HTTP, script, built-in or compound action to fetch or update data in your business systems.
Input and output mapping is configured on the action activity, not on the plugin or the HTTP action. Map slot values into an action’s inputs and reshape its response here. Confirmation policies are set here too.
Action activity fields
For example, this input mapping fills the three input arguments of an action that saves a reading-list note:
The left side of each line is the action’s input argument. The right side is what fills it: a fixed number for example_owner_id, and slot values from the process data bank for note and title.
The output mapping of the last action activity in a process is what the AI assistant uses to write its reply to the user, instead of showing the output verbatim. To shape the reply, add plugin result instructions.
Execution behavior for compound actions
When an action activity calls a compound action without waiting for it (the Execution Behavior option “Wait for this action to fully complete before resuming the rest of this Conversational Process” is not checked), don’t change the output mapping. The output isn’t available for mapping until the compound action has finished, and mapping it causes messaging errors in conversation with your AI assistant.
The Execution Behavior options for compound actions are:
- Wait for Completion (Checked): The process pauses until the compound action finishes, so its output can be used downstream. Recommended for most cases.
- Fire and Forget (Unchecked): The process continues without waiting for the compound action to complete. Suits notifications where no response is expected.
Action failures in a conversational process
When an action activity’s action fails, for example when an HTTP action gets an error status or a compound action raises an error, the conversational process stops at that activity, and the blocks after it don’t run. What the user sees depends on how the AI assistant words its reply. To handle a failure inside a compound action instead, add a try catch step to it.
Activity confirmation policy
When Require consent from the user before executing this activity is checked, the AI assistant:
- Presents all collected slots for the activity.
- Asks the user for consent to proceed.
- Lets the user edit slot values before the activity runs.
Users can then review and confirm the action, whatever they typed.
The confirmation policy is a single checkbox with no other settings. The AI assistant shows the confirm or decline prompt automatically, and you can’t change its wording. If the user declines, the plugin run is cancelled.
Content activities
A content activity shows information to the user instead of running an action. Choose one of three types in Select Content Type:
- Text: a Markdown message. Reference slot values and the outputs of earlier action activities with Mustache, without the
data.prefix: for example{{book_title}}, or{{output_key.field_name}}for a field in an activity’s output.meta_info, such as user attributes, isn’t available here. The data bank and data mapper concepts explain what each reference holds. - Knowledge: an article from a connected knowledge base (ServiceNow, Confluence, SharePoint and others)
- Form: a catalog item or request form from your ITSM system
Use a content activity to:
- Show a knowledge article instead of running an action, for example when a user lacks permissions
- Offer a form for ordering or requesting something
- Give guidance partway through a workflow
Knowledge articles and forms are access-controlled, using the permissions in your source systems.
Content Activities covers content types, use cases, data references and access controls in full.
Troubleshoot action activities
- Your action isn’t in the Action list: the list shows only published actions that you have access to, and only HTTP actions built for plugins. Publish the action, or check that you have access to it, then select it again.
- A compound action mid-process returns no data: if Execution Behavior is shown, check that Wait for this action to fully complete before resuming the rest of this Conversational Process is checked. Otherwise, move the compound action to the end of the process, or use a synchronous action type.
- The output mapping errors or data is missing: check the path after
responseagainst the action’s result. Select View Action response schema to see its structure, and map every field the next step needs.