Skip to content

Configure HubSpot's AI agent prompts with connected apps

Last updated: September 14, 2026

Available with any of the following subscriptions, except where noted:

After connecting an app to a HubSpot's AI agent, configure prompt instructions to determine when and how the agent uses the connected apps.

Well-designed prompts help agents combine HubSpot data with information from external systems to complete specific business tasks consistently.

Permissions required Agent Builder permissions are required to create and customize agents and assistants in Agent Builder.

Permissions required Additional permissions may be required depending on the goal of the assistant or agent. For example, an assistant or agent that generates a landing page requires Edit and Publish permissions to edit and publish landing pages.

HubSpot Credits required for certain features Some agents may require HubSpot Credits. Learn more about features using HubSpot Credits

Add prompts for connected apps to HubSpot's AI agents

  1. In your HubSpot account, click More, then navigate to Agents > Agent Hub. If More doesn't appear in your account, navigate to Agents > Agent Hub directly.
  2. Click the Agents tab.
  3. Hover over the agent you want to edit and click Edit.
  4. In the Instructions section, enter your prompts. For example, you can use the following prompt: 

    Example prompt: 
    "You are connected to the G2 MCP Server. For every deal analysis, always query the G2 MCP Server to retrieve buyer intent signals, competitor comparison activity, and intent scores for the companies associated with closed-lost deals. Combine G2 external market signals with HubSpot CRM data to provide a complete picture of loss reasons. When a competitor is identified in G2 data, cross-reference it against the deal's loss reason in HubSpot. Surface patterns where G2 intent activity spiked or shifted toward a competitor before deal close."

Use case: create automated account intelligence from sales conversations

The following example shows how to configure a HubSpot AI agent connected to the Gong and Notion apps. Use this example as a general framework and customize the instructions based on the connected apps and the agent's goal.

Business objective

A sales organization aims to reduce the time account teams spend researching customer conversations, allowing them to focus more on engaging with prospects.

Historically, reps must manually review call recordings, search for mentions of competitors, and document key takeaways across multiple systems.

By connecting external apps to a HubSpot AI agent, the organization can use information from these apps when researching accounts and generating insights.

Example configuration

In this example, a sales team connects Gong and Notion to a HubSpot AI agent:

  1. Connect the agent to Gong to analyze sales calls and identify recurring competitive objections.
  2. Connect the agent to Notion to store account summaries in a shared workspace.
  3. Configure prompts for the connected apps following the best practices below.

Best practices for prompts using connected apps

  • Identify the database: since Notion pages and databases don't follow a fixed structure, you need to instruct the agent exactly on which database to use.
    • Best practice: you should mention the name of the database, its purpose, and include the database ID when possible.
    • Example prompt: Use the Notion database titled 'Content Projects Tracker,' which includes the project name, status, owner, and due date.
  • Describe the property or column structure: describe your database structure in detail to help the agent understand the data.
    • Best practice: when referencing a database, you should list the relevant column names, what they contain, and their property type. If some fields are optional or not consistently used, they should be included.
    • Example prompt: The database includes these columns: 'Project Name' (title), 'Owner' (person), 'Status' (select), and 'Deadline' (date).
  • Define the agent’s task: be clear about the specific information the agent should find or extract.
    • Best practice: when defining the agent's task or requesting for data, use specific names and details. 
    • Example prompt: Find all items where the Status is 'In Progress' and the Deadline is within the next 7 days.
  • Specify actions and tools: if your agent needs to perform a specific action, explicitly state which tools it should use and how. This is especially useful if the agent has to choose between multiple tools.
    • Best practice: define the exact tool to use and how any actions should be executed, such as query_database, list_databases, or retrieve_page.
  • Provide an example input and output: if your agent needs to add or edit entries, it’s recommended that you include an example of what the data should look like.
    • Best practice: provide a clear example of each input and desired output with examples. You can also add conditions for different outputs.
    • Example prompt: When creating a new entry, fill in 'Status' as 'Not Started' by default and leave 'Deadline' blank.

Result

After the configuration is complete:

  • HubSpot's AI agents can access data from connected business systems.
  • Sales teams can analyze customer conversations without leaving HubSpot.
  • Account summaries, competitor insights, and follow-up actions are automatically generated.
  • Teams spend less time gathering information and more time taking action.
Was this article helpful?
This form is used for documentation feedback only. Learn how to get help with HubSpot.