Skip to navigation

Action and content activities in conversational processes

View as Markdown

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 add-block menu in the conversational process editor, with Action, Content, Policy, Exit, Continue and Paste.

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

FieldWhat it does
ActionThe action to run. The list shows built-in actions, plus the published script actions, compound actions and plugin HTTP actions that you have access to. Draft actions don’t appear, so publish an action before you select it. Compound actions can run asynchronously, so use them cautiously mid-process: unless the activity waits for the compound action to finish (see Execution Behavior), it returns progress updates to the user instead of data to the plugin.
Required slotsThe slots the AI assistant collects before it runs the activity.
Input MappingA data mapper that fills the action’s input arguments from the process data bank: slots (data.<slot_name>), outputs of earlier activities (data.<output_key>) and meta_info.user. The panel shows how many input arguments the action needs.
Output MappingWhat the activity keeps from the action’s result. By default it keeps the whole result. Type a dot-walk after response (for example .results) to keep one part, or select Switch to data mapper to build a new object. In the data mapper, refer to the action’s result as response. Fields you don’t map are dropped.
Output KeyThe name the activity’s output is saved under in the process data bank. Later activities and policies reference it as data.<output_key>. The name starts with a letter and uses only letters, numbers and underscores.
Confirmation PolicyRequire consent from the user before executing this activity. How the user confirms is in Activity confirmation policy.
Execution BehaviorCompound actions only. Wait for this action to fully complete before resuming the rest of this Conversational Process.

For example, this input mapping fills the three input arguments of an action that saves a reading-list note:

example_owner_id: "1"
note: data.reading_note
title: data.book_title

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.

An action activity panel with the Action field, Required slots book_title and reading_note, and an Input Mapping data mapper that sets example_owner_id to 1 and maps note and title from those slots.

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.

The lower half of an action activity panel: Output Mapping with the fixed response field, a dot-walk field and Switch to data mapper; Output Key saved_note; and a checked Confirmation Policy.

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:

  1. Presents all collected slots for the activity.
  2. Asks the user for consent to proceed.
  3. 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 response against the action’s result. Select View Action response schema to see its structure, and map every field the next step needs.