User Guide
API DOCSVOICE GATEWAYHELPSECURITY
Current Version
Current Version
  • Welcome
  • What's New
  • 🚀GETTING STARTED
    • Login
    • Concepts and Glossary
    • Language Models
      • Syntphony NLP
      • Other NLP and LLM Connectors
      • FAQs
    • Build a Virtual Agent
      • Overview
      • From Scratch
      • By Importing
      • Pre-Built Templates
      • Training task
    • Testing
      • Automated Test
      • Advanced Request
      • Simulate Dialog
      • View Logs
    • Create and manage profiles
  • 💬BUILD DIALOGS
    • Flows
    • Dialog Cells
      • Intent
      • Entity
      • Answer
      • Input
      • Jump
      • End
      • Service
      • Rest Connector
      • Code
      • Rule
        • Variable answers using Code and Rule cells
        • Enable and disable flows using Rule Cells
    • Data Masking of Personal Identificable Information
    • Dynamic Content and Contexts
    • Voice Agent
    • Multilingual Agent (beta)
  • ✨GENERATIVE AI
    • AI features
    • Assist Answer (beta)
    • Examples Generator
    • Knowledge AI
    • Prompt cell
      • Prompt crafting
      • Practical examples
    • Rephrase Answer
    • Zero-Shot LLM
  • 🌐CHANNELS
    • Channels
      • WhatsApp (by Infobip)
      • Facebook Messenger
      • Microsoft Teams
      • Integrating Existing Channels
    • Webchat Plugin
  • ⚙️CONFIGURATIONS
    • Parameters
    • Advanced Resources
    • Other Options
      • Intent Navigator
  • 📊ANALYTICS & INSIGHTS
    • Dashboards
      • Overview
      • Funnel charts
      • User messages
      • Conversations
      • Reports
    • External Analytics Platforms
  • API DOCS
    • Overview
    • API Guidelines
      • Conversation API
      • Cloner API
      • EVG Connector
      • Management API
        • Admin API
          • Bot Admin
          • Environment
          • Organization
          • User
          • Notification
        • Instance API
          • Knowledge AI
          • Knowledge AI NLP
          • Answer
          • Automated Tests
          • Bot
          • Broker
          • Channel
          • Dashboard
          • Dialog Manager
          • Entity
          • Generative Service
          • Intent
          • Parameters
          • Tag
          • Technical Log
          • Training
          • Transactional Service
          • Rest Connector
          • Wait Input
          • Websnippet
      • Webhooks
    • Infrastructure Guidelines
      • Syntphony CAI server Installation guide
      • Maintenance Methods
      • Supported/verified third-party software
    • Data Structure
      • Admin Data Structure
      • Environment Data Structure
    • Voice Gateway
      • Genesys Cloud CX
Powered by GitBook
On this page
  • Context-sensitive dialogs
  • Static Answer
  • Rephrased Answer
  • Parameters
  • Advanced Rephrasing Parameters
  • Advanced Rephrasing Parameters
  • Request Timeout
  • Macroprompt

Was this helpful?

  1. ✨GENERATIVE AI

Rephrase Answer

PreviousPractical examplesNextZero-Shot LLM

Last updated 8 months ago

Was this helpful?

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.

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.

Enabling this feature may result in additional costs for each new request. You can enable it in Advanced Resources extensions page

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

Advanced Rephrasing Parameters

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.

Request Timeout

  • 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.

Rephrasing uses the virtual agent's language to generate the output

Macroprompt

A macroprompt in AI text generation provides a comprehensive set of instructions and context to guide the model, resulting in more accurate and contextually appropriate responses. It includes detailed information, examples, and specific guidelines to ensure the AI will produce high-quality, relevant text.

The macroprompt used in this functionality is as follows:

"You are an AI language model specialized in rephrasing sentences for chatbot interactions. Your goal is to rephrase sentences while maintaining the conversations sentiment to ensure they fit well within a chatbot dialogue.

**Rephrasing Instructions:**

Rephrase the following sentence, ensuring that the conversations sentiment is preserved.

- Conversation History: {conversation_history}

- Sentence to Rephrase: {bot_input}

- Language: {lang}

- Avoid Using: {restrict_words}

**Important Guidelines:**

1. Do not generate explanations or messages regarding the "restrict_words" field in the final output. The rephrased sentence should not contain any reference to these restrictions.

2. Make every effort to avoid using the words listed in the "restrict_words" field. The rephrased sentence should not contain any of these restricted words.

3. Please do not remove emojis, symbols, or links from the original sentence.

4. Avoid returning answers with quotation marks

**Output Format:**

Provide the rephrased sentence in the format: "Rephrased: [Your rephrased sentence here]"

If it is not possible to rephrase the sentence without using the restricted words, return the original message without displaying any message like "Sorry, I cannot rephrase the sentence you indicated" or similar.

Your rephrased sentences should be creative and diverse, enhancing the chatbots interactions while adhering to the provided instructions."