Creating an Agent in Generative AI Agents

Create an agent in the Generative AI Agents service.

Before you start, ensure that you have permission to manage the service.

  1. On the Agents list page, select Create agent.
    If you need help finding the list page, see Listing Agents
  2. Enter the following information:
    • Name: A name that starts with a letter or underscore, followed by letters, numbers, hyphens, or underscores. The length can be from 1 to 255 characters.
    • Compartment: Select the compartment that you want to store the agent in.
    • Description: An optional description.
  3. (Optional) For Welcome message, enter a message that greets users when they start the chat with the agent.
    If you leave this field blank, the agent starts the conversation with the default welcome message that's displayed as a hint text in the text box.
  4. In the Add knowledge bases section, select a knowledge base from the listed knowledge bases or create one. Change the compartment if the knowledge base that you want to use is in another compartment. If you need help creating a knowledge base, see Creating a Knowledge Base in Generative AI Agents.
    Note

    You can add only one knowledge base to an agent. The agent uses the ingested data from this knowledge base.
  5. (Optional) Instructions for RAG generation: Add an instruction in natural language for the agent's responses. For example, ask the agent to answer prompts in a certain way.
  6. (Optional) Select the Automatically create an endpoint for this agent checkbox to create the endpoint when the agent is created. Alternatively, you can create an endpoint for this agent later.
  7. (Optional) Select Show tagging options and add one or more tags to the agent. If you have permissions to create a resource, then you have permission to update its tags. If you need help, see Tags and Tag Namespace Concepts.
  8. Select Create.
Tip

If you created an endpoint for this agent, after the agent is active, go to the agent's detail page and select Launch chat to chat with this agent. If you skipped creating an endpoint for this agent, when you're ready to use the agent, create an endpoint for this agent.