> For the complete documentation index, see [llms.txt](https://docs-conversational-ai.syntphony.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-conversational-ai.syntphony.com/testing/advanced-request.md).

# Advanced Request

## Feature overview&#x20;

The **Advanced Request** allows you to test specific cases in a targeted way, similar to tools like Postman and Insomnia. This function is particularly useful for executing customized requests that require detailed inputs, headers, and responses, supporting efficient troubleshooting of complex scenarios.

<figure><img src="/files/wp5MkSZaSEKrcC7QwYXH" alt=""><figcaption></figcaption></figure>

To do so, open **dialog simulator** and then click on the `Advanced Request` icon (code symbol) in the input box. &#x20;

<div align="left"><figure><img src="/files/3DVX3l4PrtjET77XNklV" alt=""><figcaption></figcaption></figure></div>

## **Execute Task**

The advanced request has some predefined fields to execute the task, but you can add new Header and Value pairs according to your needs. You can add up to 7 Header + Value pairs in total, including those already in place.

### **Header and Value**

Define key headers and their respective values for the request.

{% hint style="success" %}
For more information on headers and which ones are mandatory, check the [**Conversation API documentation**](/api-docs/api-guidelines/creating-channels-the-conversation-api.md#request-headers) .
{% endhint %}

If the optional Header + Value pair is not filled, it will be ignored in the execution, even if one of the fields in the pair is filled.

### **Input Body**&#x20;

A default structure is presented to guide you in. This default is not executable as-is; you must complete it with valid JSON.

The fields to execute an Advanced Request are

* Text (user input)
* Code (Answer name, Flow name, Welcome message)
* Context (variables)

You can add new fields if needed.&#x20;

{% hint style="success" %}
For more information on the **Request Body** check the [**Conversation API documentation**](/api-docs/api-guidelines/creating-channels-the-conversation-api.md#request-body-1).
{% endhint %}

The default structure changes based on whether the user execute **Welcome Flow** or not:

**Executing Welcome Flow**:

```json
{
  "code": "%EVA_WELCOME_MSG",
  "context": {}
}
```

**NOT executing the Welcome Flow**:

```json
{
  "text": "",
  "context": {}
}
```

When adding a field for Intents, keep in mind that you'll have to also mention the confidence score.

### **Response**

Once the advanced request is processed, the response body will show the output for analysis.

{% hint style="success" %}
For more information on **Response Body**, check the [**Conversation API documentation**](/api-docs/api-guidelines/creating-channels-the-conversation-api.md#response-body).
{% endhint %}


---

# 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://docs-conversational-ai.syntphony.com/testing/advanced-request.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.
