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


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.

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

  5. Keep Text as the Response Type.

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

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

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

  9. 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!


How to Configure Knowledgebase 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