For example, if an employee sends a request for a new chair (the event), you can configure the bot to send a Chat message to their manager requesting approval before fulfilling the request.
Add and configure the Send a Chat messagetask by performing the following steps:
- Add the Send a Chat message task to a bot, as described in Add a task to a bot .
- Configure the Send a Chat message task by using the settings described in the table below.
- When you are done, save the app by selecting one of the following:
- Save - Save the app.
- Save & verify data - Save the app and verify that it is runnable based on external dependencies.
Configure the Send a Chat message task by using the settings described in the following table.
Setting
Description
Table name
Table defined in the event and used by the task.
To view or edit the structure of the selected table, position your cursor in the field and click . See Tables: The Essentials
for more information.
Note: To use a table that is different from the table defined in the event, add a Call a process step.
Select one of the following in the drop-down:
- Select chat spacesto explicitly select the Chat spaces, group Chats, or direct messages (using the Space IDs field) to which you want to send the Chat message.
- Respond to same threadto respond to the originating Chat space thread.
- For the parent process, don't set linking on. The originating Chat space thread can't be identified when the process is used by multiple bots. See Reuse automation components .
- The parent event must be a Chat event. See Configure Chat events .
Space IDs
Specify the IDs for the Chat spaces, group Chats, or direct messages to which you want to send the Chat message. Click Addand select an item from the drop-down list. Repeat to add additional IDs.
Message text
Chat message text. Specify text, variables , and expressions .
Optionally, you can send an app view to the Chat space as a Chat card .
Expand and customize the Advancedsettings, as described below.
Setting
Description
Inputs
Add inputs to dynamically configure a task. For details, see Set input values dynamically in tasks .
- Expand the Advancedsection.
- Click Add under Inputs.
- Enter the name of the input value in the Namefield.
- Select the data type from the Typedrop-down.
Only a subset of data types are supported for inputs. - To add an initial value or edit any fields:
- Click to open the Input dialog.
- Add a value or expression in the Initial valuefield.
If you don't specify an initial value, then the input value will be required. If an initial value is specified, then the input value is optional.Use of[_THIS]
or[_INPUT]
are not supported in the Initial value field. - Edit other fields, as required.
- Click Done.
- Repeat to add additional input values.
Then, use the following expressions to access the input values from the current step: [_INPUT].[ inputname
]