Skip to main content

What's an Agent and how do I create one?

Updated this week

An Agent is a specialized virtual assistant that you can interact with directly within le Chat or programmatically via APIs.

Agents are designed to help you with a variety of tasks, such as answering questions in a specific style or tone, working with documents and integrated knowledge sources, or generating code.

How to create an Agent in le Chat

You can build and customize Agents directly within the le Chat interface.

1. Access the Agents page

Navigate to the main Agents page in le Chat by clicking Agents in the left-hand menu.

image

Click on Agents on the left-hand menu

2. Create a new Agent

On the Agents page:

  • Click the Create Agent button to start building a new Agent from scratch (1).

  • Alternatively, select one of the pre-created Agent templates as a starting point for customization (2).

image

Options to (1) Create Agent or (2) use a pre-created template

3. Configure your Agent

You will be taken to the Agent configuration screen.

Provide the core details for your Agent as follows:

  1. Name (Required): Give your Agent a unique and descriptive name.

  2. Description (Optional): Add a brief description of what your Agent does or its intended purpose.

  3. Avatar (Optional): Choose an avatar for your Agent. You can select from pre-created options or generate a custom one.

  4. Instructions (Required): Provide clear and detailed instructions for the model (we advise you to consult our dedicated guide for more info: How to write good instructions for my Agent?).

image

Configuring Agent: (1) Name, (2) Description, (3) Avatar, (4) Instructions

4. Advanced settings (Optional)

Besides the strictly required parameters for your Agent, you can refine its behavior further by providing additional settings.

Guardrails and Tone/Personality

  1. Add guardrails: Define specific limitations and/or safety protocols for your Agent's responses.

  2. Adjust tone and personality: Provide additional prompts to fine-tune the Agent's conversational style, tone, and personality traits.

    image

    Setting (1) Guardrails and (2) Tone/Personality for the Agent.

Knowledge and Tools

  1. Grant access to Knowledge and Tools: Enable specific tools for your Agent to use, such as Web search, Code Interpreter, Image Generation, or Canvas (check this article for more info about le Chat capabilities).

  2. Connect it to your external data sources by selecting active Connections (like Google Drive, Gmail, etc.)

  3. Connect it to one of your Libraries.

image

Enabling Tools (1), Connections (2), and Libraries (3) for the Agent

5. Preview and iterate

As you configure your Agent, you can use the preview panel to test its responses and behavior in real-time.

Adjust its settings accordingly until you are satisfied with its performance.

image

Testing and previewing the Agent's responses during configuration

πŸ”‘ You may have noticed that there's no explicit save button. Your Agent is created on the fly and its settings saved automatically as you configure it.

Once configured, you can start interacting with your newly created Agent.

πŸ”Ž For more details, see the article: How do I chat with an Agent in le Chat?

How to Create an Agent via La Plateforme for API Use

While you cannot directly create an Agent solely via an API call at this moment, you can use the Agent Builder on la Plateforme to create Agents intended for API deployment.

πŸ”Ž For detailed information on creating Agents for API use and interacting with them programmatically, please refer to the official API documentation.

πŸ“Œ You can also deploy an Agent created within La Plateforme to le Chat. It will appear in a dedicated section of your Agents list in le Chat. However, for the most integrated and seamless experience when building Agents primarily for use within le Chat, we advise using the new Agent Builder directly withiin le Chat as described above.

Did this answer your question?