Skip to main content
To get started with GenerativeAgent, let’s create a GenerativeAgent that can help a customer from your knowledge base. By the end, you’ll have a working GenerativeAgent that can answer customer questions using your own content.
This is a basic example to get you started quickly. As you develop more sophisticated GenerativeAgent solutions, you’ll want to explore additional use cases and consider the comprehensive design of your implementation.

Before you begin

Before you begin, make sure you have:
  • Followed the Set up your account guide to get access to the ASAPP AI Console.
  • A customer-facing knowledge base URL (such as your help center or support documentation)

Step 1: Connect Your Knowledge Base

The first step is to import your knowledge base content so GenerativeAgent can use it to answer customer questions. We will use the Import from URL to import your knowledge base content but you have other options on how to connect your knowledge base.
1

Navigate to 'GenerativeAgent > Knowledge' in the AI Console

2

Click 'Add content' and select 'Import from URL'

Import from URL
3

Enter your knowledge base URL in the 'External content URL' field

Optionally, you can import specific sections of your site by specifying allowed URL Prefix or Excluded URLs.
4

Click 'Import content' to start the process

Your content will be imported and placed in a Pending Review state.

Step 2: Review and Publish Your Content

After crawling your knowledge base, we will create a list of articles that could be added to the GenerativeAgent knowledge base. You need to review and publish the articles:
1

Look for the notification

At the top of the Knowledge Base page, look for the notification indicating articles need review.
New notification
2

Click to review the imported articles

3

Review each article:

For each article:
  • Choose between the cleaned-up or raw version
  • Add relevant query examples that customers might ask (e.g., “What is your return policy?”)
  • Click Publish when you’re satisfied with the content

Step 3: Create a Basic Task

Now that your knowledge base is set up, let’s create a simple task for GenerativeAgent to handle customer inquiries. A task is a set of instructions that tells GenerativeAgent what to do. We go into more detail about tasks and functions in the Learn More About Tasks and Functions guide.
1

Navigate to 'GenerativeAgent > Tasks'

2

Click 'Create task'

3

Define the task

Here we provide sample names and instructions, but you are in full control of GenerativeAgent’s behavior and can customize them to fit your needs.Fill in the following fields:
  • Task name: “Answer_Customer_Questions”
  • Task selector description: “Use this task when customers ask questions about our products, services, or policies.”
  • General Instructions: “Answer customer questions clearly and concisely using information from the knowledge base. If the answer isn’t in the knowledge base, politely explain that you don’t have that information and offer to help them find other information.”
Dashboard Create task
4

Save the task

Step 4: Try It Out in the Previewer

Now let’s test your GenerativeAgent with the Previewer:
  1. Navigate to GenerativeAgent > Previewer
  2. Select Draft environment from the dropdown
  3. Type a test question related to your knowledge base content (e.g., “What is your return policy?”)
  4. Send the message and observe GenerativeAgent’s response
  5. Use the Turn Inspector panel on the right to see which knowledge base articles were used and how GenerativeAgent processed the request
The previewer side panel

Safety

GenerativeAgent is has been developed with a safety-first approach. ASAPP ensures GenerativeAgent’s accuracy and quality with rigorous testing and continuous updates, preventing hallucinations through advanced validation. Our team has incorporated Safety Layers that provide benefits such as reliability and response trust. Our safety standards include:
  • Safety Layers
  • Hallucination Control
  • Data Redaction
  • IP Blocking
  • Customer Info and Sensitive Data Protection
You can learn more about this in Safety and Troubleshooting.

What’s Next

Congratulations on setting up a basic GenerativeAgent to answer customer questions using your knowledge base! Now that you have a working GenerativeAgent, here are the recommended next steps to understand GenerativeAgent more holistically and build a complete solution:
I