---
title: "Give Kai a task inside a workflow"
description: "Add a Give Kai Support a task step with step-by-step instructions and tools, branch on Completed or Failed, and know when to build an agent instead."
url: https://help.gleap.ai/en/articles/318-give-kai-a-task-inside-a-workflow
collection: "Workflows"
updated: 2026-11-03
language: en
---

# Give Kai a task inside a workflow

Add a Give Kai Support a task step with step-by-step instructions and tools, branch on Completed or Failed, and know when to build an agent instead.

**Let Kai Support answer** hands over an open conversation. **Give Kai Support a task** is narrower: you give Kai Support step-by-step instructions for one specific job, and it does that job instead of answering whatever comes up. The step lives in the workflow builder under **AI actions**.

### Set it up

1.  In the workflow, click **Add step** and choose **Give Kai Support a task**. Its panel is titled **Give Kai a task**.
    
2.  Under **What should Kai do?**, describe the goal, for example "Ask for the order number, look the order up and tell the customer when it arrives."
    
3.  Click **Draft steps** to let Kai turn the goal into steps, or choose **Write the steps yourself**. You can also start from a template. Once drafted, the numbered steps replace the goal box.
    
4.  Review the available tools under **Kai can use** before drafting. In the drafted task, choose **Add app** to add a capability and use @ in a numbered step to refer to it. Review each app’s permissions.
    
5.  Read the numbered steps and fix anything flagged. To revise them in words, use **Ask Kai to change these steps**, then **Update steps**.
    
6.  On the canvas, connect what should happen next on the **Completed** path and on the **Failed** path.
    

![Give Kai a task setup with a goal box and task templates in the Pied Piper demo project.](https://staticfiles.gleap.io/p613b5dd730aed737108f87ab/mqzIQpu3kdSy7rnALxAXISsGQV25qZ5CuD4sipNXkOzXkJu0eg58tuL5t45a3KARSCRPZDLzjSR.png)

![A draft AI task with numbered knowledge-search steps and Completed and Failed paths in the Pied Piper demo project.](https://staticfiles.gleap.io/p613b5dd730aed737108f87ab/mWWTlTYxrwyrPSxHdAsumUbGDtxaIc4Utmpiz50xCP3lEauGxcGO8UfH0xP5yKuQhH1BZRMDslx.png)

Write the job with a finishing line: what to produce, and what to do when it can't. "Summarise the customer's problem in two sentences for the engineering team" works; "help the customer" doesn't tell it when it's done. Use the **Failed** path for a sensible fallback, such as handing over to your team.

### What it's good for

-   Deciding something the flow then branches on: whether a message is a complaint, which product it concerns.
    
-   Producing a summary for your team before a conversation reaches them.
    
-   One lookup with a tool, where a whole agent would be overkill.
    

### Task or agent?

The two overlap, and the honest distinction is ownership more than capability.

A task belongs to the workflow step it sits in. It's quick to add, and it exists in exactly one place, which is fine until you want the same behaviour in a second flow and end up maintaining two copies of the instructions.

An agent is a thing in its own right: reusable, with its own tools, its own triggers, its own cost ceiling and a record of every run. That last part matters more than it sounds when something goes wrong.

> **Info:** A reasonable rule: use a task the first time, and turn it into an agent the second time you need the same behaviour elsewhere. Building an agent for a one-off step is work you don't need to do.

### Keep it bounded

Give the step only the tools its job requires. A task with access to everything will occasionally use something unexpected, and inside a live customer conversation that's harder to notice than in an agent run you can review afterwards.

### Related

-   [Workflow steps reference](https://help.gleap.ai/en/articles/312-workflow-steps-reference.md)
    
-   [Choose Kai Support or a custom agent](https://help.gleap.ai/en/articles/236-choose-kai-support-or-a-custom-agent.md)
    
-   [Connect a tool to an agent](https://help.gleap.ai/en/articles/248-connect-a-tool-to-an-agent.md)
    
-   [Build your first agent](https://help.gleap.ai/en/articles/247-build-your-first-agent.md)
