The Generative AI Block in Guided Conversations (GC) enhances chatbot interactions by enabling more natural and context-aware responses. Unlike traditional rule-based chatbots, this block allows for more flexible and intelligent handling of user queries while integrating seamlessly within business workflows.
Why use the Generative AI block
Traditional chatbots work well for structured interactions, but may struggle with more complex user queries. The Generative AI block helps address these common challenges.
Common issues in traditional chatbots
- Traditional bots may not interpret and respond accurately to complex queries.
- The bot may not retain previous interactions, requiring users to repeat information.
- When transferring to an agent, users may need to provide details again.
Key features
- Ensures smooth transitions between chatbot interactions.
- Works across various platforms like WhatsApp and Web Chat while retaining context.
- Can be added and set up within Guided Conversations without having to code.
Components of Zia Generative AI block
- Input Variable Mapping: Input Variable Mapping allows you to pass user-provided or manually entered data to Zia for generating responses.
- Prompt Field: Providing specific queries or instructions in the Prompt field helps Zia generate precise and relevant responses.
- Context Field: Mapping the context will be used as knowledge that Zia will use to generate a meaningful response from.
- Output Variable Mapping:
- Helps in creating a variable for the response field and using it in a Display Message block to show the response provided by Zia.
Difference between the Zia Generative AI block and the Zia Answer Bot
The Zia Generative AI block in Guided Conversations (GC) uses an in-house Large Language Model (LLM) trained on publicly available data. It generates responses based on the prompt and context you configure in your flow, not from your organization’s knowledge base.
This is different from Zia Answer Bot, which is designed to pull answers directly from your Help Center articles or FAQs.

Use the Zia Answer Bot if you want to answer customer queries from your KB content.
Use the Zia Generative AI block when you want more flexible, AI-powered responses based on user inputs and business context.
How to create a Generative AI block
Gather the required details from the user before adding the Zia Generative AI (Gen AI) block, such as Expected user queries, context variables for personalized responses, and output variables for displaying responses in the chat flow.
- Go to Zia Generative AI block in the Integration section.
- Add the get response from Generative AI block.
- Give a suitable Block Name to identify.
- Configure Input Variable Mapping
- Map the Context Variable.
- Enter specific instructions in the Prompt Field to help Zia generate precise and relevant responses.
- Configure Output Variable Mapping
- Create a Variable for the response field.
- Use this variable in a Display Message block to show the response provided by Zia.
How to set up the prompt field
The Prompt field acts as an input for interacting with Zia by providing specific instructions or questions to achieve a desired outcome. The Prompt field can be mapped using variables or text inputs.
Tips for effective prompts
- Be Specific: Use clear and detailed prompts to minimise ambiguity.
- Include Variables: Leverage user inputs dynamically for personalized responses.
- Avoid Open-Ended Queries: Keep prompts focused to help Zia generate precise answers.
Examples
- Product Inquiry: "Tell me about the features of [Product Name]."
- Troubleshooting: "How can I resolve error code 404 when accessing my account?"
- Order Status: "Where is my order #[Order ID]?"
How to set up the context field
The context field acts as a reference point for Zia, allowing it to generate responses based on relevant background information.
Effective context configuration
- Map Relevant Variables: Include past interactions, preferences, or any data fetched through APIs.
- Limit to Essential Information: Focus on the most relevant details to avoid overwhelming the AI.
Context examples
- Company Info: "We offer a 30-day return policy."
- Order History: "The user's last order was on [Date] for [Product]."
Capture user queries
- Add a question block to gather user inputs effectively by framing questions.
Integrate Zia Generative AI block
- Map input variables to use the data from the question block to configure the prompt field in Zia Generative AI.
Display AI responses
- Use a display message block to present the AI-generated responses to users clearly and concisely.
Allow user feedback
- Add feedback options to use a Button Block to gather user feedback on the AI responses.
Implement a refinement loop
- Add a jump block to enable users to refine their queries if they are dissatisfied with the initial response.
- Redirect to the question block to map the refined input to Zia for an improved answer.
Best practices
- Ensure variables are specific and relevant for more accurate responses.
- Provide only essential information in the context field to keep responses concise.
- Use the Combine Block to set a detailed context with more characters or to include multiple variables in the context field.