The action lets you leverage AI models directly in your HubSpot workflows. Use it to analyze data, generate content, classify records, and automate decisions.
The action sends your prompt to an AI model via OpenRouter
The AI processes the request with any CRM data you include
The response is returned in your chosen output format
You can use the output in subsequent workflow actions
Choose which AI models to display:
- - Top picks from major providers (GPT-4, Claude, Gemini, etc.)
- - Complete list of available models
Select from a wide range of AI models including:
- OpenAI GPT-4 and GPT-4o
- Anthropic Claude 3 and Claude 3.5
- Google Gemini
- Meta Llama
- And many more
Choose how the AI should format its response:
Free-form responses, content generation, summaries
Classification, choosing from predefined options
Scoring, ratings, numerical analysis
Yes/no decisions, true/false classifications
When using Select/Multiselect output, you can specify a CRM property. The AI will choose from that property's valid values, ensuring the output can be directly saved to the record.
Write your prompt to the AI. You can include:
- Personalization tokens from the enrolled record
- Instructions for the AI's behavior
- Context about the task
Enable web search to allow the AI to find up-to-date information. This uses additional credits but is useful for:
- Current events or news
- Company research
- Market information
- Technical documentation
The action provides multiple output fields based on your selected output type:
- - For text responses
- - For select/multiselect responses
- - For numerical responses
- - For true/false responses
- - Web sources used (when web search is enabled)
Analyze lead data and assign a score:
Analyze this lead and assign a score from 1-10:
- Company: {{company.name}}
- Industry: {{company.industry}}
- Employee count: {{company.numberofemployees}}
- Recent activity: {{contact.recent_activity}}
Consider factors like company size, industry fit, and engagement level.
Output type:
Categorize support tickets:
Classify this support ticket into one of the available categories:
Subject: {{ticket.subject}}
Description: {{ticket.content}}
Output type: , Target property: ticket_category
Summarize recent communications:
Summarize the key points from recent communications with this contact:
{{contact.recent_email_content}}
Keep the summary to 2-3 bullet points.
Output type:
Research competitor mentions:
Search for recent news about {{company.name}}'s main competitors in the {{company.industry}} space. Summarize any relevant developments.
Output type: , Web search:
- Clear instructions produce better results
- Provide the AI with necessary CRM data
- Match the output to your workflow needs
- Verify results before activating workflows
- Check your usage in app settings
- Check that personalization tokens have values
- Simplify your prompt
- Try a different AI model
- Review your plan in Settings
- Consider upgrading for more credits
- Optimize prompts to reduce token usage