AI HelpCenter | YourGPT

Find answers to your questions

How to Set Up AI Responses in Studio
Configure Text and JSON Responses, and Use Knowledge Base AI Output for Better Conversations

You can configure AI response blocks in Studio with either text, JSON outputs or knowledge base outputs.

Setting Up AI Response Node

AI-response-studio

AI Response blocks in Studio let you create structured outputs using JSON Schema. Here's how to set it up:

  1. From your flow, click the "AI" option in the top toolbar

  2. Drag an "AI Response" block into your flow

  3. Configure the response settings in the right panel

  4. Choose between Text or JSON response types

  5. We'll focus on JSON Schema configuration below


What is an AI Response?

AI Response is a reply generated based on AI models (LLM). It processes the input (such as a user query) and generates a response using its trained knowledge, context from the prompt, and previous chat history if provided.

AI Response in Studio:

  • AI Response blocks allow structured responses in either text or JSON format.

  • It uses pre-trained AI models to generate replies.

  • The response can be customized using prompt, temperature, max tokens, and previous chat count.

  • AI responses do not rely on external data sources—they work based on the model’s training data and the provided prompt.

Example Use Case:

  • A AI responding to customer queries dynamically using AI-generated text or creating a structured JSON outputs.


How to Configure Text AI Response Settings in Studio?

ai-text-response

First, let’s set up the Text AI in the right panel. This AI uses the knowledge from the model and the context you provide in the prompt, along with any of the previous chat count provided.

  1. Select AI (not Knowledge Base) in the Response AI section.

  2. If you want the AI to consider previous messages, add the Previous Chat Count.

  3. Provide a Prompt to guide the AI on what to do in the conversation.

To make the AI respond based on the user's last query, use 'Previous Chat Count' or {{FLOW.last_utterance}} to include the context.

  1. Enable Send to Chat to directly send response to the chat, depending on your needs.

  2. Keep Text as the Response Type.

  3. You can also store the response into variable using store into.

  4. Choose the appropriate AI Model based on your requirements.

  5. Set the Temperature to adjust the creativity level (adjust as needed).

  6. Adjust the Max Tokens (default is 1024).

Once these steps are done, you’re all set!

Learn more about Temperature, Tokens, and Previous Chat in our helpdesk guide: What are Tokens, Max Tokens, Context Limits, Knowledge Nodes, and Temperature in AI?


How to Define Your JSON Schema in AI Response Studio?

AI-response-json-schema

First, let’s set up the JSON AI response in the right panel. This AI uses the knowledge from the model and the context you provide in the prompt, along with the if any previous chat count provided.

  1. Select AI (not Knowledge Base) in the Response AI section.

  2. If you want the AI to consider previous messages, add the Previous Chat Count.

  3. Provide a Prompt to guide the AI on what to do in the conversation.

  4. Enable Send to Chat to directly send response to the chat, depending on your needs.

  5. Select JSON as the Response Type.

  6. Click Edit JSON Schema to define the response structure.

  7. Specify the expected fields, data types, and format required in the JSON output.

  8. Store the response into a variable using Store Into.

  9. Choose the appropriate AI Model based on your requirements.

  10. Set the Temperature to adjust the creativity level (adjust as needed).

  11. Adjust the Max Tokens (default is 1024).

Once these steps are done, you’re all set!


What is a Knowledge Base Response?

A Knowledge Base Response pulls information from a custom database of uploaded content rather than relying on AI’s general training data. It ensures responses are fact-based and derived from pre-defined sources.

Knowledge Base Response in Studio:

  • Uses your own knowledge sources (documents, FAQs, or articles).

  • Ensures consistent and accurate replies based on stored data.

  • Allows restricted queries by setting rules to control what the AI can access.

  • Responses can be stored in variables and adjusted using temperature and token limits.

Example Use Case:

  • A customer support AI agent retrieving answers from an FAQ document rather than generating responses freely. It first retrieves the nodes based on the user query and then generates a response.


How to Configure Knowledge Base AI Response Settings in Studio?

Learn how to set up Knowledge Base responses for your AI conversations

Setting Up Knowledge Base Response

The Knowledge Base response in Studio lets you create AI responses based on your custom knowledge sources. Here's how to configure it:

First, let's set up the Knowledge Base in the right panel:

  1. Select Knowledge Base in the Response AI section

  2. Enter your Question in the provided field

  3. If need Set Previous Chat Count (0 is default)

  4. Add any specific Prompt to guide the response

  5. Include Restrictions if needed to limit the scope

  6. Enable Send to Chat if you want responses in the chat

  7. Use Store into to save responses to variables

  8. Choose your preferred Model from the dropdown

  9. Adjust Temperature (0.7 is default)

  10. Set Max Tokens (1024 is default)

Remember: Knowledge Base responses are based on your uploaded knowledge sources, unlike regular AI responses which use the model's general knowledge.

Was this article helpful?
©2025
Powered by YourGPT