RAG Agent in HubSpot

Vertex AI, BigQuery, HubSpot

Built at Algorhythm, code not public

Generative AI agent over internal data, inside the CRM

Context

I built this at Algorhythm, a data consultancy, in autumn 2024 as a generative AI engineer. Internal communication included repetitive queries whose answers sat in internal data in BigQuery.

Constraints

  • The answers live in internal data. The agent had to answer from the company’s own BigQuery data, not from what a model happens to know.
  • It had to be where the team already works. The queries came up in HubSpot, so that is where the agent had to be.
  • A consistent, specialised tone. Replies needed to read the same way every time.

What I built

HubSpot where the team works repetitive internal queries RAG agent retrieves, then answers BigQuery internal data Vertex AI question answer retrieve AI workflows
  • AI workflows on Vertex AI and BigQuery that automate internal tasks and keep a consistent, specialised tone.
  • A RAG agent that retrieves internal BigQuery data to give accurate, context-aware answers instead of answering from the model alone.
  • A HubSpot integration that puts the agent where the team already works, available to about 50 employees, to support internal communication and automate repetitive queries.

Design choices

Retrieval from BigQuery, not the model alone. The answers sit in internal data, so the agent retrieves that data first and answers from what it finds. That is what makes the answers accurate and specific to the company.

The agent lives inside HubSpot. The team already works there, so the agent meets the queries where they come in and nobody has to switch tools to use it.

Stack

Vertex AI, BigQuery, HubSpot