HubSpot: Setting Up Wait for Reply in Automations
This guide walks you through connecting Project Blue webhook events to a HubSpot Automation so you can pause a sequence and wait for a contact to reply before continuing. Once set up, you can reuse this logic in any automation that needs to react to an inbound or outbound iMessage.
Before you start: You need a HubSpot-connected Project Blue account. Go to Settings > Developers > Webhooks. On HubSpot accounts you'll see two tabs there: HubSpot workflows and Project Blue webhooks.
Phase 1: Create a webhook in HubSpot
Step 1: Open HubSpot Automations and start a new workflow
Navigate to Automations in HubSpot. Create a new workflow. When selecting a trigger, choose External event or Custom event.
Step 2: Click "Add or edit webhooks"
A panel opens to create a new webhook. Give it a clear name you'll recognize, for example ProjectBlue_Reply. Click Next.
Step 3: Copy the HubSpot webhook URL
HubSpot displays a unique webhook URL and waits for a test event. Copy this URL. You'll paste it into Project Blue in the next phase.
Phase 2: Register the webhook in Project Blue
Step 4: Open the Webhooks settings in Project Blue
Log in to Project Blue and go to Settings > Developers > Webhooks. On the HubSpot workflows tab, you'll see your HubSpot webhooks.
Step 5: Add the webhook
Click Add Webhook. Paste the webhook URL you copied from HubSpot and add a name (use the same name you used in HubSpot to keep things easy to follow). Click Test & Save Webhook. Project Blue sends a sample message to HubSpot, and saves the webhook once HubSpot accepts it. To change a webhook later, delete it and add it again.
Step 6: Confirm the test event arrived in HubSpot
Switch back to your HubSpot tab. You should see a confirmation that the test event was received. Click Proceed to continue with the webhook setup in HubSpot.
Phase 3: Map the data fields
This is the most important phase. If the field types are set incorrectly, the automation can't match events to the right contact.
Step 7: Set the field types
HubSpot displays the data fields included in the Project Blue event: message, destination, receivedAt, dateReceived, direction, messageId, guid, linePhoneNumber, contactPhoneNumber, hubspotContactId and hubspotContactIdText. Set direction to Text, and review the type HubSpot suggests for each of the other fields from the sample you received.
Step 8: Set hubspotContactId to Number
Find the field named hubspotContactId and set its type to Number. If you'd rather use text, hubspotContactIdText holds the same ID as text. Field names are case sensitive.
Why this matters: HubSpot automations run against a specific object, in this case a Contact. Project Blue passes the contact's HubSpot ID in every event. HubSpot uses it to map the event to the correct contact record. Project Blue finds the contact by phone number, using the phone search fields set for your account.
Step 9: Click Next and finish the webhook setup
HubSpot confirms the webhook is created. It's now listed as an available trigger.
Phase 4: Build the wait for reply logic
Step 10: Add your first action, Send iMessage
Back in your automation, add the action to send an iMessage via Project Blue. It fires when a contact is enrolled in the workflow.
Step 11: Add a delay and select "Delay until event"
After the Send iMessage action, add a Delay. Don't choose a time-based delay. Choose Delay until event occurs. This opens a list of available triggers to listen for.
Step 12: Find your webhook under Third-Party Events
Scroll to the Third-Party Events section. You'll see the webhook you created (for example ProjectBlue_Reply). Select it.
Step 13: Set the criteria and save
Set the criteria to match the event you want to wait for. For a reply, set direction equals inbound (lowercase). Outbound messages also trigger events, so this filter is required. Click Save. HubSpot creates branch logic with two paths:
Branch A, contact replied: the workflow continues to your next step.
Branch B, no reply after your set time: the workflow moves to a follow-up action, such as a second iMessage.
Phase 5: Activate and test
Step 14: Turn the automation on and enroll a test contact
Activate your workflow. Enroll yourself or a test contact. Open Action Logs and confirm the iMessage was sent and the automation is now in the Waiting state.
Step 15: Reply to the iMessage from the test device
Send a reply to the iMessage from the enrolled contact. Project Blue sends an inbound event to HubSpot.
Step 16: Verify the correct branch fired
Go back to Action Logs. Confirm the automation detected the inbound event and completed the correct branch.
Setup complete. This webhook sends every inbound and outbound message from your lines. You can reuse it anywhere in your HubSpot automations. Replies from blocked contacts don't send events, and an event HubSpot doesn't accept isn't resent.