Skip to content

AgentX tutorial

How to generate lead and send to HubSpot CRM

How to enable AgentX's lead generation and connect it to your HubSpot CRM. After activating Lead Generation in AgentX, obtain your HubSpot token by creating a private app with CRM permissions. Add this token in the AgentX settings, and your AI agent will automatically send collected leads to your HubSpot contact list.

2 min read

This tutorial shows step by step how to enable the lead generation feature and connect it to your HubSpot, so that the leads go straight to your HubSpot CRM contact list.

AgentX | Hubspot CRM

In the agent build process (see how to build tutorial), there is an TOOLS page that allows you to assign tools and integrations to your agent. One of the supported tools is Lead Generation.

Why AgentX Lead Generation

We provide a more engaging conversation experience while generating leads. Unlike most other chatbots, our agents will NOT send boring forms for visitors to fill out. Instead, our AI agents ask questions and collect leads naturally through conversation, just like human agents do.

Enable Lead Generation

Go to INTEGRATIONStab and enable "Lead Generation" tool.

Added Lead Info - Name and Email are the default required information that the agent will be actively collecting. You can add more info to collect such as phone number, company name, etc.

By enable Lead Generation, the AI agent will ask for the lead info every time it engages with a visitor. Once a lead got collected, the agent will send the notification to you (creator), and an confirmation to the visitor by email.

Connect to HubSpot CRM contact list

You can also connect AgentX Lead Generation to your HubSpot CRM account, so that the lead your AI agent collects can go straight into your CRM contact list.

1. get your token from HubSpot

Log in to your HubSpot account - https://app.hubspot.com/

Then click the gear icon on top right, after that click Integrations -> Private Apps

HubSpot integration
HubSpot integration

In the next page, you will see some setting for the private app, we can leave everything as default and click the Scope tab.

HubSpot CRM Scopes
HubSpot CRM Scopes

**(Important)**In the Scope page, select CRM drop, and enable the following Scopes both read and write:

After that, go ahead click "Create app" button on top right. And you will see the following screen with your token

Copy your token somewhere and we will need to use it later.

2. Add HubSpot token to AgentX

Next, go back to AgentX INTEGRATIONS tab. Click Add an endpoint. Fill the following fields like:

  • Choose HubSpot tab
  • API Key: copy and paste the token you got from the previous step here

Don't forget to save the changes.

🎉 Congrats, now your agent is able to generate leads and send to your HubSpot CRM directly.

Now let's checkout how it looks on your HubSpot CRM. Once you have successfully captured a lead, AgentX will automatically create the lead in your CRM and also create corresponding fields.

Check out how to enable/show summarized lead info in HubSpot CRM:

More tutorials

All tutorials

Creating a Custom Tool in AgentX

Learn how to quickly create custom API-powered tools in AgentX using natural language and automatic code generation.

Read

Custom Branding for Agent Emails

You can now choose between AgentX branding, completely custom branding with your own logo and identity, or a clean unstyled option — all available for both Lead Generation emails and regular agent-sent messages. Configuration is now unified and easier to access, making it simple to keep every outgoing email consistent with your brand.

Read

How to add a MCP to your AI Agent

MCP (Model Context Protocol) allows you to connect your AI application to any desired third-party app as long as it supports it. Here is a step-by-step tutorial on how to set it up and connect with your AI agent. We will give an example on YouTube MCP.

Read

How to Automate Agent Tasks with AgentX

Discover how to automate your AgentX agents - from daily AI news briefings to fully autonomous SDR outreach - so your business runs on autopilot.

Read

How to Build AI Agent Workforce in AgentX

With AI Agent Workforces, you’re not limited to a single AI agent - you can build a whole team of specialists

Read

How to build an AI Agent - beginner's guide

Creating your first AI agent in AgentX, tuning prompts, instructions, and building knowledge bases. AgentX offers a no-code platform to create powerful AI agents for various use cases. Customize your agent’s bio, greeting, and response style, add knowledge bases, and enable optional features like lead generation or image generation. Once built, deploy your agent across multiple platforms, including websites, Slack, and Discord.

Read

Start your AI automation journey today

Sign up for AgentX and let AI handle your routine tasks. No credit card needed.