Skip to main content
HubSpot AI integration use case examples This article shows a real scenario for using HubSpot with Treble from an AI agent: validating whether the customer already exists in the CRM as a Contact, creating them if they do not exist, updating their data, creating a deal (Deal / Opportunity), and transferring the conversation to a human agent.

Practical scenario: qualification and handoff to sales

Imagine your customers message you on WhatsApp to request commercial information. Your goal is to automate this flow:
  1. Check whether the customer is already registered in HubSpot as a Contact.
  2. If they do not exist, create them in HubSpot and record basic data.
  3. Update additional Contact information during the conversation.
  4. Create a Deal (Deal / Opportunity) with quotation information.
  5. Transfer the conversation to a human agent in Treble.

Tools involved

In this scenario you can combine tools such as:
  • Contact search by phone.
  • create_crm_contact to register the customer.
  • update_crm_contact to complete missing fields.
  • create_crm_deal to create the sales opportunity.
  • transferToAgent for handoff to the human team.

Prompt for Contacts and creating Deal in HubSpot before transferring to sales.

Recommendations to adapt this example

  • Adjust field names (slug) according to your real properties in HubSpot.
  • Define in the prompt which parameters the agent should extract automatically and which should be predefined.
  • Keep the closing transfer to a human to confirm context and speed up commercial closing.
This pattern applies to multiple cases: contact capture, commercial qualification, CRM updates, and handoff to human teams.