# Tasks

{% embed url="<https://youtu.be/yJPErtsa1kg>" %}

### What are tasks?

Tasks enable you to bring together personalized [user data](https://support.myaskai.com/features/user-data-api), interactions with your back end databases and product via [actions and tools](https://support.myaskai.com/features/ai-actions-tools), [customized guidance](https://support.myaskai.com/features/improve/guidance) and your AI's knowledge to step a user or customer through a process that requires business logic.

In simple terms what that means is, instead of users having to click through a multistep flow (old world of chatbots), they can talk to the AI that refers to an SOP or process that will ask the right questions at the right time and not be as rigid as something flow-based.

As a simple example, you could have a refund task where you need your AI agent to:

* Check which order the user wants a refund for
* Ask for a reason for the refund,&#x20;
* Checking back to your policies whether that it is reasonable
* Confirm the refund with the customer&#x20;
* Issue the refund from your payments platform

All performed automatically by your My AskAI agent in your existing help desk.

And all of this can be created easily with natural language instructions to your AI agent instead of adding decision trees.

{% content-ref url="tasks/task-use-cases" %}
[task-use-cases](https://support.myaskai.com/features/tasks/task-use-cases)
{% endcontent-ref %}

{% content-ref url="tasks/task-end-to-end-examples" %}
[task-end-to-end-examples](https://support.myaskai.com/features/tasks/task-end-to-end-examples)
{% endcontent-ref %}

### When should I use tasks?

Tasks are an incredibly powerful feature of your AI agent, but they do involve more setup than most other features, so should generally only be used for:

* The highest impact tasks your human agents currently have to complete - think: which 1-2 tasks or workflows, which, if automated, would reduce your ticket volume by the largest amount?

{% hint style="info" %}
Tip: Review your [Insights](https://support.myaskai.com/features/insights) and sort by the lowest resolution topics to identify high impact areas for tasks
{% endhint %}

* Processes that require multi-turn interactions with customers&#x20;
* Complex, multi-step, business-logic-based flows&#x20;

### What is the difference between tasks, actions/tools, knowledge or guidance?

Tasks are the most powerful, but also the most complex form of AI functionality available for your AI agent.

Tasks will usually utilize [tools](https://support.myaskai.com/features/ai-actions-tools) you have already set up i.e. one task may use 1 or more tools in order to complete. The task is the overall process or procedure, the tools are what actually *does* the action.

[Guidance](https://support.myaskai.com/features/improve/guidance) should be used for controlling how the AI responds in simple scenarios or if there is [a single follow up question](https://support.myaskai.com/improve/guidance#context-and-clarification) or an [immediate handover required](https://support.myaskai.com/improve/guidance#handover-and-escalation).&#x20;

The majority of your AI's ability and performance will still be derived from the [Knowledge](https://support.myaskai.com/features/connections) you have given to your AI agent. It will perform best by looking up processes and troubleshooting steps from here. Tasks should only be used when you need the AI to "do" something off the back of this.

### What will I need to set up tasks?

As tasks are a more complex features setting them up will require a few things:

1. **APIs:** While a task doesn't necessarily always require use of a [tool](https://support.myaskai.com/features/ai-actions-tools) (API), the majority will. So it is best to start by identifying which (or creating) APIs in your owns systems you want the task to interact with and how you want them to interact.
2. **Internal alignment:** Most tasks will touch multiple teams, in terms of set-up and ongoing maintenance, this could include your engineering team, customer service or success team, product and operations teams. Ensure everyone is on the same page.
3. **Testing and improving**: Tasks will require monitoring and improvements over time, especially as you identify edge-cases, so set up a process to test initially and review their performance over time, along with a feedback and improvement loop.

### How do I use tasks?

For more on setting up Tasks, [read about our End-to-End examples](https://support.myaskai.com/features/tasks/task-end-to-end-examples).

### How much do tasks cost?

Tasks are priced at $0.02 per reply that was part of a task.&#x20;

For example, if you have a 2 step task that collected some information and confirmed that with a user in a conversation (across 2 replies), then this would be charged at 2 x 0.02 = $0.04.

You'll only be charged for AI agent responses where a task was being followed.

### How do I use a handover within a Task?

To instruct a handover within a Task use the phrase `{{handover}}` to reference the handover should be made e.g. “If they are refunding because of a safety issue then `{{handover}}`”.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.myaskai.com/features/tasks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
