# Rephrase Answer

## Context-sensitive dialogs

The Rephrase Answer feature enables real-time rephrasing of the virtual agent's answers during conversations with end-users. By leveraging generative AI capabilities, it enhances conversations by delivering context-sensitive answers for a dynamic conversation.&#x20;

This feature optimizes user experience and engagement by providing more natural and empathetic interactions.

## **Static answer**

By default, the real-time answers provided by the virtual agent remain static, adhering to the original text input. However, when the rephrasing toggle switch is active, a request is made to the LLM, allowing for text variation in real-time.

{% hint style="info" %}
Enabling this feature may result in additional costs for each new request. \
[You can enable it in Advanced Resources extensions page](/user-guide/configurations/advanced-resources.md)
{% endhint %}

Once enabled, you can activate the option at a granular level, in each Answer cell.

## Rephrased Answer

Upon enabling this feature in the Extensions section, you can activate answer rephrasing on the Answer cell. The answers are reformulated during runtime in the virtual agent's primary language.

## **Parameters**

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

### **Advanced Rephrasing Parameters**

#### *Temperature*

Adjusts the model's creativity, controlling text variation. Lower values (close to 0) produce more common and predictable results, while higher values (close to 1) yield more diverse vocabulary. The recommended default value is 0.7.

#### *Previous User Messages*

Considers the conversation context by inputting user messages into the generative AI. It represents the number of previous user inputs influencing the answer's tone and data. You can configure a value from 0 to 5 for the number of previous inputs used as context. When set to 0, rephrasing disregards user input and only considers temperature.

#### *Restrict Vocabulary*

Restricts specific words or expressions from being included in rephrased answers.

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

### **Request Timeout**&#x20;

* In case the answer times out waiting for OpenAI, the system delivers a static answer, even if the rephrasing option is enabled. You can set this timeout value between 1 to 10 seconds, with the recommended default being 4 seconds. If the request exceeds this time limit, the system delivers a static answer. This parameter can be configured in the Parameters section.

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

{% hint style="info" %}
Rephrasing uses the virtual agent's language to generate the output
{% 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://docs.conversational-ai.syntphony.com/user-guide/generative-ai/rephrase-answer.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.
