Building a GenerativeAgent means configuring an agent that can handle customer conversations by understanding their needs, accessing relevant information, and taking appropriate actions.

How GenerativeAgent Works

Unlike traditional bots with predefined flows, GenerativeAgent uses natural language processing to understand and respond to a wide range of customer queries and issues.
GenerativeAgent detailed flow
1

Customer Input

When a customer sends a message or speaks, it reaches GenerativeAgent through a connector or API integration.
2

Knowledge Base Retrieval

GenerativeAgent searches it’s local copy of your knowledge base for relevant information and adds it to the conversation context.At every conversation turn, our Knowledge Base service will select the most relevant articles and add them to the conversation context.We sync to your knowledge base at regular intervals, according to your configuration.
3

Task Selection and Execution

GenerativeAgent identifies the appropriate task based on the customer’s needs and executes the task instructions by choosing one of several actions:
  • Use a Function: Call your APIs to retrieve data or perform actions (may make multiple function calls). Functions can also perform local logic, data manipulation, and variable setting.
  • Request Human Help: Escalate to a human agent when needed
  • Change Task: Switch to a different task if the conversation direction changes
4

Response Generation

GenerativeAgent generates a human-like response to communicate with the customer.
This process continues in a loop until either:
  • The conversation is resolved and GenerativeAgent hands control back to your system
  • GenerativeAgent can’t help further and escalates to a human agent

Key Components You’ll Configure

Tasks

Define the specific issues or actions you want GenerativeAgent to handle. Each task includes:
  • Clear instructions in human language
  • Associated functions for performing actions
  • Knowledge base filtering for relevant information

Functions

Connect GenerativeAgent to your APIs so it can:
  • Retrieve customer data
  • Perform actions (refunds, account updates, etc.)
  • Store conversation variables
  • Transfer control to other systems
As part of function configuration, you will create Backend System Integrations to connect to your APIs.

Knowledge Base

Filter and connect your existing knowledge base so GenerativeAgent can:
  • Access relevant articles for each task
  • Use metadata to find the right information
  • Provide accurate, up-to-date responses

Understanding Environments

GenerativeAgent operates across three environments to ensure safe testing and deployment. As you refine your tasks, functions, and knowledge base, you’ll deploy them through this progression:
  • Draft: Test and configure your agent components before deployment
  • Sandbox: Staging environment to validate agent behavior and responses
  • Production: Live environment where your agent handles real customer conversations
You’ll typically start by configuring and testing in Draft, then deploy to Sandbox for validation, and finally promote to Production once everything is working correctly.
Learn more about deploying to GenerativeAgent for detailed deployment procedures.

Next Steps