SET AI
Was this helpful?
Was this helpful?
SET AI
The Set AI action block generates a response based on the prompt provided. When this block is used, the input prompt is sent to the AI Studio or the LLM model, which processes it and creates a response. The generated response is then saved into a variable for use within the chatbot flow.
How the Set AI Block Works:
A prompt is provided.
The AI processes the prompt and generates a response.
The response is saved in a variable for later use.
Step 1: Define the Prompt/Instruction
To generate relevant and accurate responses, LLM models require clear guidance. You can provide this guidance through well-crafted prompts.
A prompt is essentially an instruction that directs the LLM on what to focus on and how to respond. The clearer, more concise, and specific your prompt, the more precise the AI-generated responses will be.
Key Elements to Include in Your Prompt:
Objective: Clearly state the purpose of the response.
Output Format: Specify the desired format, such as HTML or Markdown.
Writing Style: Indicate the tone or style in which the response should be written.
Don’ts: Highlight what should be avoided in the response.
Examples: Provide sample questions and answers to guide the AI.
Step 2: Store the Response in a Variable
After processing the prompt or instruction, the AI generates a response. To ensure the response aligns with your expectations, clearly specify the type of response you want in the instructions.
Next, select the variable where the generated response will be stored for use in your chatbot flow.