Answer AI

Uses an LLM-based AI model to generate an answer for the question asked.

The Answer AI action block is designed to generate answers to user questions based on trained data.

When a user asks an open-ended question, the Answer AI block processes the query using AI Studio and generates a relevant response based on the data it has been trained on.

How the Answer AI Block Works:

  1. The user submits a question.

  2. The AI processes the query and generates an answer from the knowledge base.

Step 1: Define the Question

Craft a message that prompts the user to ask their question. For example:

👋 "Hey! I'm an AI assistant, how can I help you?"

Step 2: Choose a Knowledge Base

Select the knowledge base from which the AI will generate an answer. This is the source of information the AI will reference when providing a response.

Step 3: Configure Your AI for Accurate Answers

LLM models require clear guidance to generate relevant and accurate responses. Here are some tools you can use to help the AI:

Instructions/Prompt

A prompt is a guiding instruction that tells the AI what to focus on and how to respond. The clearer and more concise your prompt, the more accurate the answers will be.

Key Elements to Include in Your Prompt:

  • Objective: Specify the purpose of the response.

  • Output Format: Indicate the desired format (e.g., HTML, Markdown).

  • Writing Style: Specify how the answer should be written (tone, structure).

  • Don'ts: List any instructions of what to avoid.

These steps will help configure the AI to deliver precise and relevant answers.

Creating Function from Bot Builder using Answer AI

To make AI agent creation more streamlined, you can create and edit functions directly with in the bot builder. This allows for quicker setup and easier management of bot's capabilities.

To use a function within your bot flow, go to the Answer AI or Set AI Action block, then click on Execute Function. From there, you can either select a pre-defined function or click on Create Function to define a new one directly within the bot builder.

Last updated

Was this helpful?