---
title: Step 3. Create a scenario to send tasks to the AI agent
slug: make/step-3-create-a-scenario-to-send-tasks-to-the-ai-agent
createdAt: 2026-09-29T15:35:12.836Z
---

:::hint{type="success"}
This page reflects a **previous version of Make AI Agents**. For the latest information, see [Make AI Agent (New)](https://public.qa.archbee.co/make/make-ai-agent-new).&#x20;
:::

In this final step, we create the  to communicate with our agent. We will equip the agent with  as tools to perform the agent's tasks: list our shop inventory and order more items. We will use Slack to send tasks to our agent.

:::::WorkflowBlock
:::WorkflowBlockItem
Click the **Create a new scenario** button in your organization dashboard or in the list of .
:::

:::WorkflowBlockItem
Add the **Slack** > **Watch new events** module to the .
:::

:::WorkflowBlockItem
Set up the module:

1. In the **Webhook** field, select a Slack event webhook or click **Add** to create a new one.
2. In the **Event type** drop-down, select **New channel message**.
3. In the **Connection** field, select your Slack connection.
4. In the **Channel** field, select a channel you can use for testing the AI agent.
5. Set the  scheduling to **Immediately when data arrives**.
6. Click **Save** to confirm the module settings.
:::

:::WorkflowBlockItem
Click the module placeholder to add a new module to your . Search "AI agent" to get the **Make AI Agents >** **Run an agent** module and add it to your .
:::

:::WorkflowBlockItem
In the **Agent** field, select the agent you created in the [previous section](https://public.qa.archbee.co/make/ai-agent-use-case#QKAMW).&#x20;
:::

:::WorkflowBlockItem
In **Tools**, click **Add tool**.
:::

::::WorkflowBlockItem
Add the  to the AI agent's tools:

1. Click the empty drop-down under **Select scenario**. The list of  in your team rolls down. Select the "List shop inventory"  we created in the [previous section](https://public.qa.archbee.co/make/ai-agent-use-case#gnt62).

:::hint{type="info"}
Use the search row at the top of the selection list to find the . Note the  description that appears under the name of the  and the name of the  folder.

::Image[]{src="https://api.qa.archbee.co/api/optimize/xSpGhDIsAwW5-e9QQh6Dl-yIAFalqsBkb4W4pj6TQRM-20250306-125757.png" size="70" width="906" height="676" position="center" showCaption="false"}
:::

1. Click **OK** to confirm the selection.
2. Add the "Create buy stock order"  created in the [previous section](https://public.qa.archbee.co/make/ai-agent-use-case#jJur0) in the same way.
3. Click **Save**.
::::

:::WorkflowBlockItem
Finish setting up the **Run an agent** module:

1. In the **Thread ID** field, map a unique identifier to keep the same thread for all communication with the agent. This optimizes the context sent to the agent with each module run and allows the agent to keep the history of previous conversations.
2. In the **Message 1** field, map the `Text` from the **Watch new events** module.
3. Click **Save** to confirm changes.
:::

::::WorkflowBlockItem
Add the **Ignore** error handler to the **Run an agent** module. Sometimes, the agent can take time to respond.&#x20;

:::hint{type="info"}
If the response time gets longer than 180 seconds, the module outputs the `ModuleTimeoutError` and  stops the .
:::

There are more sophisticated options to prevent the `ModuleTimeoutError`, but they are not part of this use case. If you want to learn more, check the module settings reference.
::::

:::WorkflowBlockItem
Add the **Slack** > **Create a message** module after the **Run an agent** module.
:::

:::WorkflowBlockItem
Set up the module:

1. In the **Connection** field, select your connection.
2. In the **Enter a channel ID or name** and **Channel type** fields, select values relevant for the channel where you want to send agent's replies and pick the channel in the next field.
3. In the **Text** field, map the `response` from the AI agent.
4. Click **Save** to confirm changes.
:::

:::WorkflowBlockItem
Update the name of your .
:::

:::WorkflowBlockItem
Save the .
:::
:::::

You should now test your agent. Send a message to the channel that is watched by the **Watch new events** module that contains the intent for the agent to either send the inventory information or order new stock. For example, request the agent to list the current shop inventory.

Check the channel where is the **Create a message** module sending agent's replies. You should see a reply from the agent listing the same data as we defined in the data store when we were setting up the  available to the agent.
