How to Send WhatsApp Templates via Pingstreams Webhook and HubSpot Workflow
Introduction
Section titled “Introduction”Do you need to set automatic WhatsApp messages being sent to your selected audience based on the state of their deal or contact status? Follow these 5 simple steps to achieve a complete flow integrating HubSpot workflow with a conversation automation tool such as Pingstreams.
This integration enables you to:
- Automatically trigger WhatsApp messages based on deal stage changes
- Personalize messages using HubSpot contact data
- Streamline your sales process with automated follow-ups
- Improve customer engagement through timely communications
Step 1: Connect WhatsApp Business API to Your Pingstreams Project
Section titled “Step 1: Connect WhatsApp Business API to Your Pingstreams Project”Follow the official Pingstreams guide to connect your WhatsApp Business API:
Pingstreams WhatsApp Integration Guide
Once connected, you will be able to send and manage WhatsApp messages from Pingstreams.

Requirements for WhatsApp Business API:
Section titled “Requirements for WhatsApp Business API:”- Verified Meta Business Account
- Approved WhatsApp Business Profile
- Pre-approved message templates
- Valid phone number verification
Step 2: Create a Webhook in Pingstreams Design Studio
Section titled “Step 2: Create a Webhook in Pingstreams Design Studio”- Go to the Bots section in your Pingstreams console
- Click Create from scratch
- In the type dropdown, choose Webhook
- Once inside the Design Studio, find the Webhook button in the panel
- Click on the three dots next to the webhook button and select Generate URL
- Copy the generated URL: you will use it later in HubSpot

Important: Save this webhook URL securely as you’ll need it for the HubSpot configuration.
Step 3: Configure the Webhook Action in Your Bot
Section titled “Step 3: Configure the Webhook Action in Your Bot”- Connect a Web Response action to your Webhook button
- Configure the Web Response block with:
- Response status:
200 - Response body (JSON):
{ "phone": "{{userPhone}}" } - Response status:
This acts as a gatekeeper to ensure that only valid phone numbers proceed.

Web Response Best Practices:
Section titled “Web Response Best Practices:”- Validate phone number format before processing
- Include error handling for invalid requests
- Log webhook calls for debugging purposes
- Return meaningful status codes
Step 4: Configure the WhatsApp Template Sending Action
Section titled “Step 4: Configure the WhatsApp Template Sending Action”From the Actions menu on the left, under the Integrations tab, select Send WhatsApp.
- Drag and drop this action right after the Web Response block
- Edit the Send WhatsApp action:
- Phone number ID: Insert the Phone Number ID available in your Meta for Developers account
- Template: Select the WhatsApp template already approved in your Meta account
- Receiver phone number: Insert the variable
{{userPhone}}

Template Configuration Tips:
Section titled “Template Configuration Tips:”- Use approved templates only - Unapproved templates will cause sending failures
- Include dynamic variables for personalization (name, company, deal details)
- Test templates thoroughly before deploying
- Keep templates compliant with WhatsApp Business Policy
Step 5: Add Web Response Blocks for Success and Error Paths
Section titled “Step 5: Add Web Response Blocks for Success and Error Paths”Connect two Web Response blocks to the “Success” and “Else” exits of the Send WhatsApp action.
For the Success port:
Section titled “For the Success port:”- Response status:
200 - Response body (JSON):
{
"success": true,
"message": "WhatsApp message sent"
}
For the Else port:
Section titled “For the Else port:”- Response status:
400 - Response body (JSON):
{
"success": false,
"error": "Failed to send WhatsApp message"
}
Step 6: Configure HubSpot to Trigger the WhatsApp Webhook
Section titled “Step 6: Configure HubSpot to Trigger the WhatsApp Webhook”- Log into your HubSpot account
- Go to Automation > Workflows (note: this feature is not available on free plans)
- Click the orange Create workflow button in the top right corner
- Choose a Deal-based workflow
Set Up the Trigger
Section titled “Set Up the Trigger”For enrollment trigger, select:
- Has completed: Property value changed
- Property name: Deal Stage
- New Value: Contract Sent (or any stage where you want the message triggered)

Add a Webhook Action
Section titled “Add a Webhook Action”- Click the plus icon below the enrollment trigger
- Select Send a Webhook
- Configuration:
- Method: POST
- URL: Paste the webhook URL you copied from Pingstreams Design Studio
- Authentication: None
- Request body: Select Choose properties to include, and add:
deal name = Deal nameuserPhone = WhatsApp number(make sure this matches your HubSpot contact property for WhatsApp numbers)

Step 7: Test the Workflow
Section titled “Step 7: Test the Workflow”- Move a test deal into the “Contract Sent” stage in your pipeline
- The webhook should trigger, sending the WhatsApp template through Pingstreams
- Once the message is sent, the chatbot configured in Pingstreams will automatically take over the conversation based on the knowledge base you have set up
Testing Checklist:
Section titled “Testing Checklist:”- ✅ Deal stage change triggers webhook
- ✅ Webhook receives correct data from HubSpot
- ✅ Phone number validation works
- ✅ WhatsApp message sends successfully
- ✅ Success/error responses are handled properly
Advanced Configuration Options
Section titled “Advanced Configuration Options”Multi-Template Support
Section titled “Multi-Template Support”Set up different templates for different deal stages:
- Initial Contact: Welcome and introduction
- Proposal Sent: Follow-up and clarification
- Contract Sent: Contract review reminder
- Deal Closed: Thank you and next steps
Conditional Logic
Section titled “Conditional Logic”Add conditions in HubSpot workflows to:
- Check contact preferences before sending
- Validate phone number format
- Skip certain contact types
- Apply different templates based on deal value
Personalization Variables
Section titled “Personalization Variables”Include dynamic content in your WhatsApp templates:
{{contact.firstname}}- Contact’s first name{{deal.dealname}}- Name of the deal{{deal.amount}}- Deal value{{company.name}}- Company name
Error Handling and Monitoring
Section titled “Error Handling and Monitoring”Common Error Scenarios:
Section titled “Common Error Scenarios:”- Invalid phone number format
- Unapproved WhatsApp templates
- Network connectivity issues
- API rate limit exceeded
Monitoring Best Practices:
Section titled “Monitoring Best Practices:”- Set up HubSpot workflow notifications for failed actions
- Monitor Pingstreams logs for webhook errors
- Track message delivery rates in WhatsApp Business Manager
- Regular template approval status checks
Compliance and Best Practices
Section titled “Compliance and Best Practices”WhatsApp Business Policy Compliance:
Section titled “WhatsApp Business Policy Compliance:”- Only send to opted-in contacts
- Use approved message templates only
- Respect messaging windows (24-hour rule)
- Provide clear opt-out mechanisms
Data Privacy:
Section titled “Data Privacy:”- Ensure GDPR compliance for EU contacts
- Respect contact preferences
- Secure webhook endpoints
- Log and audit message sending
ROI and Performance Tracking
Section titled “ROI and Performance Tracking”Key Metrics to Monitor:
Section titled “Key Metrics to Monitor:”- Message delivery rates
- Response rates from WhatsApp messages
- Conversion improvements after implementation
- Time saved on manual follow-ups
HubSpot Reporting:
Section titled “HubSpot Reporting:”- Workflow performance analytics
- Deal progression tracking
- Contact engagement metrics
- Revenue attribution
Troubleshooting Guide
Section titled “Troubleshooting Guide”Webhook Not Triggering:
Section titled “Webhook Not Triggering:”- Verify webhook URL is correct in HubSpot
- Check workflow enrollment criteria
- Ensure deal stage changes are happening
- Review HubSpot workflow history
Messages Not Sending:
Section titled “Messages Not Sending:”- Verify WhatsApp Business API connection
- Check template approval status
- Validate phone number format
- Review Pingstreams error logs
Template Approval Issues:
Section titled “Template Approval Issues:”- Follow WhatsApp template guidelines
- Avoid promotional language
- Include clear call-to-action
- Submit for review through Meta Business Manager
Video Tutorial
Section titled “Video Tutorial”Check our video about this integration (don’t forget to activate the English subtitles) here.
Conclusion
Section titled “Conclusion”This integration between Pingstreams and HubSpot creates a powerful automated communication system that:
- Reduces manual work by automating WhatsApp follow-ups
- Improves customer experience with timely, relevant messages
- Increases conversion rates through better engagement
- Provides detailed tracking and analytics
- Scales efficiently as your business grows
The combination of HubSpot’s powerful workflow automation with Pingstreams’ AI-driven conversation capabilities creates a seamless customer journey from initial contact to deal closure.
Ready to implement this integration? Start by setting up your WhatsApp Business API connection in Pingstreams, then follow each step to create your automated messaging system!
Need help with implementation? Our support team is available to guide you through the setup process and ensure your integration works perfectly for your specific use case.