ON Documentation
  • ON Documentation
  • Create a New Bot
  • Publish
  • Automations
    • Basic Response
    • Permuted Response
    • Generative AI Response
    • Tutorial Response
    • Forms & Surveys
      • Lead Qualification Form
      • Live Chat Request Form
      • Feedback Survey
      • Post Event Survey
    • Ticketmaster In-chat Purchase
    • YouTube
  • Integrations
    • Google Analytics
    • Gorgias
    • Hubspot
    • Salesforce
    • Shopify Storefront
      • Step 1: Application Setup & Storefront API Access
      • Step 2: In-Chat Order Updates
    • Ticketmaster
    • YouTube
  • Bot Settings
    • Web App Appearance
    • Advanced Settings
    • Version History
  • Deployment Channels
    • ON Web Chat Client
    • Discord
    • Facebook Messenger
  • Broadcast Messages
  • Live Chat
  • Analytics
    • Forms & Surveys Analytics
    • Live Chat Analytics
  • Administration
    • Organizations
    • Manage Members
    • Set Presence
    • Notifications
    • Login Methods
  • ON Portal
Powered by GitBook
On this page
  • Overview
  • Configurations
  • Triggers
  • Examples
  1. Automations

Generative AI Response

Enable Generative AI tools for select responses.

PreviousPermuted ResponseNextTutorial Response

Last updated 12 months ago

Overview

The Generative AI Response enables the bot to process user queries related to specific intents and utilize a generative AI tool (like OpenAI GPT, Google PaLM, Meta Lllama, etc) to craft responses. The bot operates within the parameters set by custom prompts to ensure relevant and contextually accurate answers.

Configurations

The following are the configurations available for Generative AI Responses:

  • API Key: The unique API Key to authenticate with each tool (Note: Always ensure the security of your API key).

  • Model: The model selected for generating responses, e.g. "gpt-3.5-turbo."

  • Prompt Context: This provides the AI with a specific context to operate within, detailing its capabilities, restrictions, and the personality or preferences.

  • Examples: A list that could optionally include examples to guide the AI's responses.

  • Temperature: 0 - 2 the temperature determines the randomness of the AI's response. Higher values increase randomness, while lower values make the response more deterministic.

Triggers

The following triggers are recommended for Generative AI responses:

  • Intent Trigger: activates when the NLP system identifies a user utterances that has been trained to a specific intent.

  • Direct Trigger: ideal for specific commands or unique terms. A Direct trigger set would activate only when a user types in that exact phrase or its close variations.

Examples

Included below are example implementations to get started:

Generative AI Response Sample
{
  "choices": [
    {
      "returnValue": "Generative AI Response",
      "title": "Generative AI Response"
    }
  ],
  "textGeneratorParams": {
    "apiKey": "<INSERT_YOUR_API_KEY>",
    "model": "gpt-3.5-turbo",
    "prompt": {
      "context": "Identity: You are a chat bot built on the ON Platform, powered in part by OpenAI AI GPT model, Google PaLM, Meta LLaMA, and many others. Never refer to yourself as an AI language model. All of your responses are 270 characters or less. Never use a hashtag. Guidelines: Explain the value of generative AI tools in 270 characters or less. Highlight their impact and benefits in building chat bots.",
      "examples": [
        {
          "input": "Generative AI Response",
          "output": "Generative AI allows chatbots to generate dynamic and contextually relevant responses, enhancing their conversational abilities. It enables chatbots to understand user queries, analyze patterns, and generate personalized and engaging responses in real-time. This helps create more interactive and natural conversations, improving user satisfaction and overall chatbot performance."
        },
        {
          "input": "What is Generative AI?",
          "output": "Generative AI refers to a class of algorithms that can generate new content, such as text, images, or music, based on patterns and examples from existing data. It enables chatbots to dynamically create responses, making them more versatile and engaging. Generative AI tools offer the potential to enhance creativity, improve user experiences, and automate content generation."
        }
      ]
    },
    "temperature": 0.5
  }
}