Untitled

Introduction

Creating an Agent is made of back and forth iterations between the Agent itself and the functions that are attached to that Agent. These iterations are fueled by:

In this article, we will describe the different parameters that are present in the Agent configuration page. For a quick overview of how to create an Agent from scratch and attach it a first function, we suggest you start with one of the tutorials.

Creating a new Agent

The first thing you want to do when using Squadra is creating a new Agent, going to Agents\\+New. Name your agent.

image.png

Main Parameters (models & promtps)

Here are the main parameters:

Once these are set, you can already converse with your agent: it will appear in the Agents list on the left, as well as in Agents > Playground.

Playground

Go to Agents > Playground to start conversing with your agent, and see how it reacts to messages, whether it queries the right functions, etc. You can start as soon as you have defined a new Agent and its prompt !

Below is an example conversation with an Agent (the full tutorial for this Agent can be found as the first tutorial in this documentation):

image.png

You can see after the User question, and before answering:

If you click the JSON button, either for the Function call or the Function response, you can decompose the content of these calls and responses.

These are explained in more details in the Functions section.

Functions Calling & Function Hooks

Functions are independent from Agents. They can be attached to several agents, or even triggered independently. See Section Functions for more details about functions.

Agents use functions in 2 distinct ways:

Empower your Agent with Function calling

Once you have configured functions, attach them to the Agent to make sure the agent can call these functions.

Function Hooks

Go fo Agents, then add step at the bottom to create a new hook.

Here is an example for a function hook. This hook is configured to get external user information (such as their latest social media posts) each type the user sends a message, and convey the information to the agent.

image.png

Here is an explanation of the parameters:

Context

Context of an agent: The context of an agent is a data structure that may be accessed in the prompts or functions of this agent (via template or data transformation syntax). The context is constructed from various sources:

To use this context, you can summon context from various sources via curly brackets {{object}}. Here is an example Agent prompt using various variables from the context:

You are a helpful assistant.
Current date is {{date}}
You will be discussing with user {{{json context.profile}}}
His email is {{user.email}}

Let’s look at the various elements of this prompt:

Finally, other variables are available:

Triggers

<aside> 🏗️

Under Construction

</aside>

Triggers are available at Agents > Triggers .

An agent trigger is a functionality that makes an agent start or continue a conversation with a user (rather than letting the user take the initiative).

A trigger configuration includes:

Scheduling :

Example: let’s say you want to schedule a trigger to run each day. After you have configured a trigger, you may schedule it to run regularly. Go to Agents > Triggers and in the table click on “Schedule”. A form will appear asking for a Cron string. This is a standard format for specifying a recurring date and time. There are many tools that can help you generate a cron string in the correct format (eg. https://crontab.guru/). For example “0 0 * * *” means “run every day at midnight.

Evals

<aside> 🏗️

Under Construction

</aside>

An agent eval is a structured testing scenario where an AI agent interacts with predefined user inputs across multiple exchanges, simulating real-world use cases. The agent must produce correct outputs and trigger specified actions to pass the test. Evals are run in batches, enabling regression testing to validate that new configurations or updates do not degrade the agent's performance.

☰ On this page…