Skip to main content
The AI Agent lets you design conversational flows that handle processes with multiple possibilities. Its main strengths are the ability to integrate tools tailored to your business needs and the flexibility of defining its behavior directly in the instructions, without adding unnecessary complexity. You don’t need to write those instructions by hand: when you create an agent, Treble drafts them from what you describe. This page explains what they contain, how to adjust them and what the agent can do.

Is it for you?

  • You have a complex process that you want AI to manage.
  • There are multiple paths within the same conversation.
  • You need to define different exit or escalation rules.
  • You want to advance a sales process.
  • You want to reduce response time to prospects.

Use cases

  • Advanced lead qualification with multiple exit routes.
  • Automated post-sale information delivery.
  • Communication with attendees after registering for a webinar.
  • Assistance to help the user choose a product among several options.
  • Automatic follow-up for abandoned carts.

How to read the generated instructions

The instructions Treble writes follow a consistent structure. Knowing it helps you quickly locate what to modify when the agent doesn’t behave as you expect:
Adjust one section at a time and test in the playground after each change. Rewriting the whole prompt at once makes it very hard to know what improved or worsened the behavior.

Writing the instructions yourself

If you’d rather start from a blank page, or want to understand what the generator is doing, this is the recommended structure:
  1. Context and objective
    • Explain what the agent must accomplish and in which scenario it is used.
  2. Tone and style
    • Indicate the desired register (for example, professional and clear).
  3. Available knowledge
    • Indicate when to consult the knowledge base and when not to.
  4. Available tools
    • Name, purpose, parameters, preconditions, and limits of each tool.
    • Usage rules: when to call it, what to validate beforehand, and what to return afterwards.
  5. Task description with explicit rules
    • Steps to follow, priorities, completion and success criteria.
    • What to do if information is missing and how to request it.
  6. Capabilities and limitations
    • What the agent can do and what it cannot do (and must not promise).
  7. Concrete examples
    • Samples of correct inputs and outputs, plus one or two counterexamples.
  8. Reasoning
    • Reminder to think step by step before responding.
  9. Escalation and exits
    • When to finish, when to escalate, and which data to log.
Start with a limited scope, add tools incrementally, and expand coverage as the results become consistent. 💡Once your agent responds correctly in the playground, go to the Conversation Builder and add the AI Agent block to your flow. You’ll find it in the advanced blocks section. AI Agent block inside the conversation builder

Tools

The AI Agent can use different tools to perform actions inside or outside the conversation. These tools expand its capabilities, allowing it to consult information, create tickets, or update properties in external systems like HubSpot, in addition to interacting with Treble’s native functions. When you generate an agent, Treble picks the tools it needs and inserts them into the instructions. The ones that require data from you are flagged as pending configuration; you can complete them and add others from the editor.

General

  • Search the Web — Searches the internet for updated or contextual information.
  • Send document — Sends a file to the user during the conversation.
  • Send image — Sends an image to the user during the conversation.

Treble

  • Read variable — References the value of a variable inside the instructions.
  • Save answer as variable — Stores the contact’s answer in a Treble variable.
  • Transfer to an agent — Escalates the conversation to a human agent in Treble.
  • Send conversation — Sends the contact to another Treble flow.
  • Close conversation — Ends the interaction after the time you define.

HubSpot

  • Transfer to an agent — Sends the conversation to another agent or team within HubSpot.
  • Create ticket — Generates a new ticket with the collected information.
  • Read Contact Property — Consults the value of a specific property of a contact.
  • Save / Edit property — Updates a contact property with data from the conversation.

Advanced

  • API Call — Makes a call to an external API with fixed values or with variables the agent has collected. See the API tool guide.
  • Connected Apps — Executes actions in the applications you connected to Treble, such as Google Calendar or Shopify.
HubSpot tools only appear if you have the integration connected, and Connected Apps shows only the applications you already linked to your account.

Frequently asked questions

It is an AI agent designed to handle conversational flows with multiple possibilities, integrating tools and advanced logic to execute automated tasks.
No. You describe what you need, answer a few questions, and Treble drafts the instructions, picks the tools and builds the knowledge base. Your job is to review the result, complete the pending tools and test it.
No. All the setup is done from the Treble interface.
Yes. The agent can understand voice messages sent by users through WhatsApp and will automatically reply with text in the conversation.
Review the instructions and try to make them more explicit. Locate the matching section in the table above and add the case that failed as a concrete example.
Yes. The agent can be integrated into a broader flow and can activate or close conversations, save responses, or call external tools according to your rules.
General, Treble, HubSpot and advanced tools, including actions such as creating tickets, reading or editing properties, sending documents, transferring conversations, calling an API, or searching for information on the web.
Use the playground to run controlled tests with different inputs, and send yourself a test conversation on WhatsApp. Iterate until the agent responds correctly in every scenario.
Yes. The agent can understand images sent through WhatsApp and use what it sees to guide its actions. For example, it can recognize objects, read text in screenshots, or interpret elements in the image to decide what to do.However, the agent does not generate or create images. Its visual capability focuses on interpreting and acting on existing images, not producing new ones.
Define clear exit or escalation rules. If the agent cannot resolve a situation, transfer the conversation to a human agent or log the event in a ticket.
It does not automatically learn from each interaction, but you can improve its behavior by iterating on the instructions and adjusting the tools or exit conditions.

Important considerations

Privacy: Inform users that their data will be stored and comply with applicable regulations (GDPR, etc.).