> For the complete documentation index, see [llms.txt](https://help.sipgate.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.sipgate.com/documentation/en/behavior/playbooks.md).

# Playbooks

Playbooks define how your AI Agent responds to specific concerns and which steps are carried out in the process. They are used when conversations should not only be answered, but handled in a targeted way. For example, to collect information, check requests, or pass content on to your team.

This makes Playbooks the foundation for structured and automated conversation workflows.

<figure><img src="/files/1c4cb0839de24bb58557322a8e71fae4ecacc7c4" alt=""><figcaption></figcaption></figure>

### What are Playbooks used for?

Playbooks are suitable for requests that require a clear, structured process.

**Examples of Playbook use cases:**

* Record callback requests with complete contact details
* Document support or service requests in a structured way
* Categorize and forward billing or contract questions
* Capture appointment requests when no calendar integration is connected

{% hint style="warning" %}
**Note:** If you have a calendar integration connected, do not create an additional Playbook for scheduling appointments. The AI Agent automatically recognizes appointment requests via the calendar integration and can book appointments directly. An additional Playbook can cause the request to be assigned incorrectly.
{% endhint %}

### How do Playbooks work?

A Playbook controls how your AI Agent handles a conversation. It can specifically ask for information such as customer numbers, problem descriptions, or contact options. The agent confirms the collected details and then passes them on. For example, by email, webhook, or as a summary in the sipgate app.

{% hint style="info" %}
**Note:** Newly created Playbooks are initially deactivated. The AI Agent can only use them for suitable requests after activation. Deactivated Playbooks are ignored and do not need to be deleted.
{% endhint %}

### Give Playbooks clear names and descriptions

The title and description of a Playbook influence when it is selected by the AI Agent. Phrase both clearly, unambiguously, and with a distinct subject focus. Similar, imprecise, or too general information can lead the AI Agent to select an unsuitable Playbook.

{% hint style="success" icon="lightbulb" %}
Test the naming of your Playbooks deliberately with different formulations and adjust titles if necessary to ensure clear assignment.
{% endhint %}

### Define Playbook conditions

Make sure the conditions are precise and specific in order to reliably trigger relevant Playbooks. These conditions could include keywords, certain phrases, or specific concerns of callers. Regularly check whether the defined conditions still apply correctly and optimize them if needed for better performance of the AI Agent.

## Use tasks in the Playbook in a targeted way

A Playbook consists of individual tasks. You define what the AI Agent should do in the conversation:

* **Ask for information**, for example customer numbers, contact details, or problem descriptions
* **Pass on instructions**, such as instructions or information for callers
* **Map simple if-then workflows**, for example ask an additional question depending on an answer
* **Highlight important details in the summary**, so that they are immediately visible for follow-up processing

Tasks can be created as mandatory or optional. This allows the conversation flow to be tailored specifically to the respective request.

More information can be found under [**Summaries & Transcripts**.](/documentation/en/follow-up/summaries-and-transcripts.md)

### Define closing action

When creating Playbooks, you can set the desired closing action as a transfer to any phone number, to a channel, or as a callback. Channels do not require their own routed phone number for this. In the analytics dashboard, you can then see to which channel a call was transferred.

Use tasks to obtain the callers' consent for the desired closing action. Based on the response, alternative actions can then be defined. e.g. “Ask whether a callback is desired. If not, say that this will be noted and hang up.”

### Interaction: Playbooks, knowledge base, and customer questions

Playbooks define conversation workflows. The [**knowledge base**](/documentation/en/behavior/wissensdatenbank.md) and [**customer questions**](/documentation/en/behavior/kundenfragen.md) provide the answers, while Playbooks control the AI Agent's structured approach. In interaction with conversation handling, routing, and follow-up processing, this creates a stable, traceable process for your telephony.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.sipgate.com/documentation/en/behavior/playbooks.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
