Use HubSpot with OpenAI Python

HubSpot is a developer and marketer of software products for inbound marketing, sales, and customer service.
🔗 Connect and Use HubSpot
1. 🔑 Connect your HubSpot account
2. ✅ Select an action
3. 🚀 Go live with the agent
What do you want to do?
Actions
Batch
Basic
Public_Object
GDPR
Search
Pipeline Stage Audits
Pipelines
Pipeline Audits
Pipeline Stages
Settings
Recording_Settings
Core
Public_Imports
Public_Object_Schemas
Groups
Owners
Events
Templates
Tokens

API actions for HubSpot for AI assitants/agents

Language
JS
PYTHON
Framework

Batch

Fetch Batch Product Details By Id Or Properties

This endpoint fetches batches of product details by ID or unique properties in a CRM system, handling POST requests with options for including archived results. It supports e-commerce permissi
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_FETCH_BATCH_PRODUCT_DETAILS_BY_ID_OR_PROPERTIES])

Archive A Batch Of Products By Id

The `/crm/v3/objects/products/batch/archive` endpoint archives multiple products by ID using POST with a JSON array of IDs. It returns a 204 status on success or an error message. Multiple aut
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_ARCHIVE_A_BATCH_OF_PRODUCTS_BY_ID])

Create A Batch Of Products

The endpoint `POST /crm/v3/objects/products/batch/create` enables the creation of product batches in the CRM, requiring authentication, supporting multiple security schemas, and providing deta
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_CREATE_A_BATCH_OF_PRODUCTS])

Update A Batch Of Products

The `/crm/v3/objects/products/batch/update` endpoint supports batch product updates using `POST`. It accepts JSON requests, multiple authentication methods, and returns update status for each
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_UPDATE_A_BATCH_OF_PRODUCTS])

Fetch Multiple Companies By Ids Or Attributes

The `POST /crm/v3/objects/companies/batch/read` endpoint reads multiple companies by IDs or properties, requiring OAuth2/private app authentication, optionally filters archives, and provides d
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_FETCH_MULTIPLE_COMPANIES_BY_IDS_OR_ATTRIBUTES])

Archive A Batch Of Companies By Id

The POST endpoint '/crm/v3/objects/companies/batch/archive' enables archiving multiple companies at once using their IDs. It requires authorization and a JSON body with company IDs. Responses
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_ARCHIVE_A_BATCH_OF_COMPANIES_BY_ID])

Create A Batch Of Companies

The `/crm/v3/objects/companies/batch/create` endpoint allows batch creation of companies using JSON, supporting OAuth2 and private app security. It offers detailed status reports and error inf
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_CREATE_A_BATCH_OF_COMPANIES])

Update A Batch Of Companies

The `/crm/v3/objects/companies/batch/update` endpoint allows batch updates of companies using a JSON payload with IDs or unique properties. It supports OAuth2 and private app authentications a
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_UPDATE_A_BATCH_OF_COMPANIES])

Batch Read Quotes By Id Or Unique Properties

This endpoint enables batch reading of quotes using IDs or unique properties, offering filters for archived status and secure access via OAuth2. It requires a JSON request with specific criter
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_BATCH_READ_QUOTES_BY_ID_OR_UNIQUE_PROPERTIES])

Basic

Read

Read an Object identified by `{productId}`. `{productId}` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query param. Co
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_READ])

Archive

Move an Object identified by `{productId}` to the recycling bin.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_ARCHIVE])

Update

Update an object using `{productId}`, replacing specified properties. Ignore read-only or non-existent properties. Use an empty string to clear any property.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_UPDATE])

List

Read a page of products. Control what is returned via the `properties` query param.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_LIST])

Create

Create a product with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard products is provided.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_CREATE])

Fetch Company Object By Id Or Property

Read an Object identified by `{companyId}`. `{companyId}` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query param. Co
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_FETCH_COMPANY_OBJECT_BY_ID_OR_PROPERTY])

Move Company To Recycling Bin

Move an Object identified by `{companyId}` to the recycling bin.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_MOVE_COMPANY_TO_RECYCLING_BIN])

Modify Specified Company Properties

Update an object using its `{companyId}` by modifying only specified property values. Read-only and non-existent properties are ignored. To clear properties, pass an empty string.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_MODIFY_SPECIFIED_COMPANY_PROPERTIES])

Fetch Paged Companies With Selective Properties

Read a page of companies. Control what is returned via the `properties` query param.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_FETCH_PAGED_COMPANIES_WITH_SELECTIVE_PROPERTIES])

Initialize New Company And Return With Id

Create a company with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard companies is provided.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_INITIALIZE_NEW_COMPANY_AND_RETURN_WITH_ID])

Fetch Object Details Using Quote Id

Read an Object identified by `{quoteId}`. `{quoteId}` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query param. Contro
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_FETCH_OBJECT_DETAILS_USING_QUOTE_ID])

Move Quote To Recycling Bin

Move an Object identified by `{quoteId}` to the recycling bin.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_MOVE_QUOTE_TO_RECYCLING_BIN])

Modify Object Properties Using Unique Identifiers

Update an object using `{quoteId}`, which defaults to its internal ID or another unique property via `idProperty`. Provided values overwrite existing ones; read-only and non-existent propertie
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_MODIFY_OBJECT_PROPERTIES_USING_UNIQUE_IDENTIFIERS])

Public_Object

Merge Two Products With Same Type

The `POST /crm/v3/objects/products/merge` endpoint merges two products of the same type using JSON input with primary and secondary product IDs. It returns merged product details upon success
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_MERGE_TWO_PRODUCTS_WITH_SAME_TYPE])

Merge Two Companies With Same Type

The `/crm/v3/objects/companies/merge` POST endpoint merges two companies using `objectIdToMerge` and `primaryObjectId`, requiring CRM company write permissions. It returns updated company deta
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_MERGE_TWO_COMPANIES_WITH_SAME_TYPE])

Merge Two Quotes With Same Type

The `/crm/v3/objects/quotes/merge` endpoint combines two similar quotes, needing OAuth2 access, specified permissions, and `objectIdToMerge` with `primaryObjectId`. Success yields details; err
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_MERGE_TWO_QUOTES_WITH_SAME_TYPE])

GDPR

Gdpr Delete

To comply with GDPR, permanently delete a contact and their content by setting 'idProperty' to 'email' for identification. If the email isn't found, it will be added to a blocklist, preventing
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_GDPR_DELETE])

Permanently Erase Contact Via Email For Compliance

To ensure GDPR compliance, permanently delete a contact and all related content using the 'idProperty' option set to 'email' for identification. If not found, the email is blocklisted to preve
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_PERMANENTLY_ERASE_CONTACT_VIA_EMAIL_FOR_COMPLIANCE])

Advanced Product Search With Filters And Pagination

The `POST /crm/v3/objects/products/search` endpoint enables advanced product searches using criteria like filter groups and properties, supports pagination, OAuth security, and gives detailed
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_ADVANCED_PRODUCT_SEARCH_WITH_FILTERS_AND_PAGINATION])

Search Company Records With Filters And Pagination

The `POST /crm/v3/objects/companies/search` endpoint searches company records with filters, sorting, and pagination. It uses JSON, requires OAuth2 or private apps for access, and returns data
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_SEARCH_COMPANY_RECORDS_WITH_FILTERS_AND_PAGINATION])

Pipeline Stage Audits

Return An Audit Of All Changes To The Pipeline Stage

Return a reverse chronological list of all mutations that have occurred on the pipeline stage identified by `{stageId}`.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_RETURN_AN_AUDIT_OF_ALL_CHANGES_TO_THE_PIPELINE_STAGE])

Pipelines

Return A Pipeline By Id

Return a single pipeline object identified by its unique `{pipelineId}`.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_RETURN_A_PIPELINE_BY_ID])

Replace A Pipeline

Replace all the properties of an existing pipeline with the values provided. This will overwrite any existing pipeline stages. The updated pipeline will be returned in the response.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_REPLACE_A_PIPELINE])

Delete A Pipeline

Delete the pipeline identified by `{pipelineId}`.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_DELETE_A_PIPELINE])

Update A Pipeline

Perform a partial update of the pipeline identified by `{pipelineId}`. The updated pipeline will be returned in the response.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_UPDATE_A_PIPELINE])

Retrieve All Pipelines

Return all pipelines for the object type specified by `{objectType}`.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_RETRIEVE_ALL_PIPELINES])

Create A Pipeline

Create a new pipeline with the provided property values. The entire pipeline object, including its unique ID, will be returned in the response.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_CREATE_A_PIPELINE])

Pipeline Audits

Return An Audit Of All Changes To The Pipeline

Return a reverse chronological list of all mutations that have occurred on the pipeline identified by `{pipelineId}`.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_RETURN_AN_AUDIT_OF_ALL_CHANGES_TO_THE_PIPELINE])

Pipeline Stages

Return All Stages Of A Pipeline

Return all the stages associated with the pipeline identified by `{pipelineId}`.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_RETURN_ALL_STAGES_OF_A_PIPELINE])

Create A Pipeline Stage

Create a new stage associated with the pipeline identified by `{pipelineId}`. The entire stage object, including its unique ID, will be returned in the response.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_CREATE_A_PIPELINE_STAGE])

Return A Pipeline Stage By Id

Return the stage identified by `{stageId}` associated with the pipeline identified by `{pipelineId}`.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_RETURN_A_PIPELINE_STAGE_BY_ID])

Replace A Pipeline Stage

Replace all the properties of an existing pipeline stage with the values provided. The updated stage will be returned in the response.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_REPLACE_A_PIPELINE_STAGE])

Delete A Pipeline Stage

Delete the pipeline stage identified by `{stageId}` associated with the pipeline identified by `{pipelineId}`.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_DELETE_A_PIPELINE_STAGE])

Update A Pipeline Stage

Perform a partial update on a pipeline stage with the specified `stageId` and `pipelineId`. Unspecified properties remain unchanged. The updated stage is included in the response.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_UPDATE_A_PIPELINE_STAGE])

Settings

Get Calling Settings

Returns the calling extension settings configured for your app.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_GET_CALLING_SETTINGS])

Configure A Calling Extension

Used to set the menu label, target iframe URL, and dimensions for your calling extension.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_CONFIGURE_A_CALLING_EXTENSION])

Delete Calling Settings

Deletes this calling extension. This will remove your service as an option for all connected accounts.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_DELETE_CALLING_SETTINGS])

Update Settings

Updates existing calling extension settings.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_UPDATE_SETTINGS])

Recording_Settings

Fetch Recording Settings By App Id

This endpoint fetches recording settings for an app using its appId, requiring a developer API key for access. It returns a URL for recorded calls or error details with troubleshooting links.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_FETCH_RECORDING_SETTINGS_BY_APP_ID])

Configure Call Recording Settings By App Id

The POST endpoint `/crm/v3/extensions/calling/{appId}/settings/recording` configures call recording settings for an app using `appId`. It requires a JSON with `urlToRetrieveAuthedRecording` an
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_CONFIGURE_CALL_RECORDING_SETTINGS_BY_APP_ID])

Update Calling Settings With Recording Url

The `PATCH /crm/v3/extensions/calling/{appId}/settings/recording` endpoint updates calling settings for an app by setting a URL for recordings access. It requires 'appId' and a specific URL in
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.HUBSPOT_UPDATE_CALLING_SETTINGS_WITH_RECORDING_URL])

Frequently asked questions

What is Composio.dev?

Composio.dev is a cutting-edge framework for building AI applications, designed to make the process of developing AI solutions super easy and fun! It's a collection of powerful tools and libraries that simplify the process of creating AI applications, allowing you to focus on the creative aspects of your project without getting bogged down by the technical details.

How does Composio.dev support HubSpot?

Composio.dev seamlessly integrates with HubSpot, making it a breeze to leverage its capabilities within the Composio.dev platform. You can use HubSpot to call functions on various platforms like Google, GitHub, and others, allowing you to incorporate different services into your AI applications with ease. It also supports user login via OAuth2 and can work with other popular frameworks such as LangChain and CrewAI, giving you the flexibility to build truly innovative AI solutions.

What models can I use with HubSpot and openAI_python?

When using HubSpot and openAI_python, you have access to a wide range of state-of-the-art language models, including GPT-4o (OpenAI), GPT-3.5 (OpenAI), GPT-4 (OpenAI), Claude (Anthropic), PaLM (Google), LLaMA and LLaMA 2 (Meta), Gemini, and many others. This flexibility allows you to choose the model that best suits your specific use case, whether you're building a chatbot, a content creation tool, or any other AI-powered application. You can experiment with different models and find the one that delivers the best performance for your project.

How can I integrate HubSpot with openAI_python?

Integrating HubSpot with openAI_python is super easy with Composio.dev! You can use the Composio.dev API to call functions from both HubSpot and openAI_python, allowing you to tap into their capabilities with just a few lines of code. The SDK is available in Python, JavaScript, and TypeScript, so you can work with the language you're most comfortable with and integrate these powerful tools into your projects seamlessly.

What is the pricing for HubSpot and openAI_python?

Both HubSpot and openAI_python are completely free to use, with a generous free tier that allows up to 1000 requests per month. This makes them accessible for developers and organizations of all sizes, whether you're a student working on a personal project or a startup building the next big thing. You can get started with these powerful tools without worrying about breaking the bank.

What kind of authentication is supported for HubSpot and openAI_python?

HubSpot and openAI_python support OAuth2 authentication, ensuring secure and authorized access to their functionalities. You can use the Composio.dev API to handle authentication and call functions from both HubSpot and openAI_python seamlessly. The SDK is available in Python, JavaScript, and TypeScript for your convenience, making it easy to integrate authentication into your projects and keep your users' data safe and secure.

Can I add HubSpot to my project?

Absolutely! You can easily incorporate HubSpot into your project by utilizing the Composio.dev API. This API allows you to call functions from both HubSpot and openAI_python, enabling you to leverage their capabilities within your application. The SDK is available in Python, JavaScript, and TypeScript to facilitate integration, so you can work with the language you're most comfortable with and add these powerful tools to your project with ease.

What is the accuracy of HubSpot and openAI_python?

HubSpot and openAI_python are designed to provide highly accurate and reliable results, ensuring that your AI applications perform at their best. The integration with Composio.dev ensures precise function calls, enabling you to build robust and powerful AI applications with confidence. The comprehensive framework and the ability to leverage state-of-the-art models ensure reliable and accurate outcomes for your AI development needs, whether you're working on a chatbot, a content creation tool, or any other AI-powered project.

What are some common use cases for HubSpot and openAI_python?

HubSpot and openAI_python can be used for a wide range of AI applications, making them versatile tools for developers and creators alike. Some common use cases include natural language processing, text generation, question answering, sentiment analysis, and more. They're particularly useful for building chatbots, virtual assistants, content creation tools, and other AI-powered applications that can help you automate tasks, engage with users, and create compelling content. Whether you're working on a personal project or building a product for your startup, these tools can help you bring your ideas to life.

How does HubSpot handle data privacy and security?

Data privacy and security are crucial considerations when working with AI systems, and HubSpot takes these issues seriously. It follows industry best practices and adheres to strict data protection regulations, ensuring that your data is kept safe and secure. HubSpot provides robust security measures, such as encryption and access controls, to ensure the confidentiality and integrity of your data. You can rest assured that your sensitive information is protected when using HubSpot for your AI development needs.

Can I customize HubSpot and openAI_python for my specific needs?

Absolutely! HubSpot and openAI_python are highly customizable and extensible, allowing you to tailor their functionality, models, and configurations to meet your specific requirements. Whether you're building a chatbot, a content creation tool, or any other AI-powered application, you can customize these tools to fit your unique needs. Additionally, Composio.dev provides a flexible platform for integrating and orchestrating various AI tools and services, enabling you to create custom AI solutions that are tailored to your project.

What kind of support and documentation is available for HubSpot and openAI_python?

HubSpot and openAI_python have comprehensive documentation and a supportive community, making it easy for you to get started and find answers to your questions. Composio.dev also provides extensive resources, including tutorials, guides, and a dedicated support team to assist you throughout your AI development journey. Whether you're a beginner or an experienced developer, you'll have access to the resources you need to make the most of these powerful tools.
+ Integrate seamlessly with your agentic frameworks
Composio Works with All Shapes and SizesComposio Works with All Shapes and SizesComposio Works with All Shapes and SizesComposio Works with All Shapes and SizesComposio Works with All Shapes and Sizes
Building for AI across continents🧪