This guide explains how to directly call cutting-edge Generative AI services—such as ChatGPT, Gemini, Claude, and Perplexity—within HubSpot workflows. By implementing this feature, you can automate the creation of personalized content based on your CRM data.


The primary goal of this implementation is to integrate advanced AI text generation into HubSpot automation processes, enhancing both operational efficiency and the quality of output.
Follow these steps to set up the Generative AI action within your workflow.
First, navigate to "Settings" and select the "Integrations" tab. Access the "Custom Workflows" section and register your API keys for the AI services you wish to use (ChatGPT, Gemini, Claude, Perplexity, etc.).
For each registered service, enable the specific models you want to use in your workflows (e.g., gpt-4o, gemini-1.5-pro).
In the HubSpot workflow editor, click the plus (+) icon to add an action. Select "Generative AI Action" and configure the AI service, model name, and the prompt. You can insert HubSpot contact properties directly into the prompt text here.
Specify the desired output format for the AI-generated text (such as plain text or JSON) and save the settings. This ensures the generated response is available for use in subsequent workflow steps.
Once configured, turn on the workflow. Test it with a real record and verify the "Action succeeded" status in the workflow logs to ensure the AI's response is correctly outputted.
Currently, the system supports four major AI services: ChatGPT (OpenAI), Gemini (Google), Claude (Anthropic), and Perplexity. You can switch between them by registering their respective API keys.
Yes. By using the "Insert Token" feature in the workflow, you can dynamically embed properties like the contact's name, company, or recent interaction details into your prompts.
The text generated by the AI is held as an "Output" of the workflow action. You can then use a "Set property value" action to save this output into a specific custom property (e.g., "AI Summary" or "Email Draft") for further use.
We can customize this sample to match your specific business requirements.
Book Free ConsultationPut it on Trello!Need a fix for HubSpot, CMS, or GAS? Post it on Trello.
Development Requests Here