# Survey

{% hint style="info" %}
*Use this template when you want to **keep track of your call center agents' performance and your customer satisfaction**. The data you receive from the survey can help you gain valuable insights and be used to optimise your call center's performance.*
{% endhint %}

To use this template, simply choose it from the templates page when you create a new agent. You can then make changes to customize it based on your business needs.

![](/files/-Mb2F-7RwZt4_3hl91_v)

### Flow Overview

#### Step 1 - Starting the conversation

We start with a *Speak* node introducing the company to the caller. Using the *Speak* node we don't expect any input from the caller in this node.&#x20;

#### Step 2 - Ask for Confirmation before Survey Questions

Continue with adding a *Collect Input* node with the first identification prompt. E.g. "May I ask you a few questions about your experience today?"&#x20;

Now we need to utilize the confirmation value we will receive. We want the agent to give out a different response depending on whether the caller says yes or no - we are creating conditions. Therefore, we are adding a *Conditions* node in order to classify the answer of the caller.&#x20;

#### Step 3 - Prompt Survey Questions

After receiving the confirmation of the caller to go ahead with the questions, we are adding another *Collect Input* node with another survey question. E.g. "Thank you. It will only take a few moments. Firstly, were we able to resolve your request?" or "Please rate the experience from 1 to 5. With 1 being the lowest and 5 being the highest score."

You can add as many prompts as possible. Simply keep adding *Collect Input* nodes.

**Step 4 - Use the Survey Data**

To utilize the values we collected in the survey, we need to add the *Webhook* node that sends them to a third-party service of your choice using a customizable API request.

#### Step 5 - End the call

To end the survey, we are adding a Speak node with a response saying e.g. "Thank you very much for your time. Have a nice day!" and the action node End Call terminating the conversation.&#x20;

{% hint style="info" %}
You will notice that all *No Input* or *Missed* Tabs are still connected to the following node. In a post-call survey, we don't want to escalate the call to a live representative or prolong the conversation for the customer unnecessarily.
{% endhint %}


---

# 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://studio.docs.ai.vonage.com/ai-studio/templates/post-call-survey.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.
