n8n example flows
Two flows that cover the usual setup: new leads go to a Harmony agent, and call results go back to the tool the lead came from. Both need the Harmony AI node installed and connected.
Call new leads
- Start with the trigger for your lead source, such as Form Trigger, HubSpot Trigger, or Google Sheets Trigger.
- Add Harmony AI > Add to Agent:
- Voice Agent Name or ID: the agent that calls the leads.
- Source Kind: the lead source, such as HubSpot, or keep n8n for a form.
- External ID: the lead's ID in that source, so later steps can find the contact by it.
- Contact Fields: map First Name, Last Name, and Phone from the trigger. Include the country code in Phone.
- Custom Fields: add any value your agent's script reads, by the key it uses.
- Activate the flow.
Harmony calls each lead on the agent's schedule. To call new leads right away, turn on Advanced settings > Call new contacts immediately in the agent's Dialer tab.
Send call results back
- Start with Harmony AI Trigger, Event Contact Calls Finished, and choose the agent under Voice Agent Name or ID. Only a contact's final attempt starts the flow.
- Add Harmony AI > Call > Get, with Call ID set to
callIdfrom the trigger and Include Transcript turned on. - Add your tool's update step, such as HubSpot > Contact > Create or Update. Find the record by
contactFields.externalId, and mapcallResult,summary, and values fromcollectedFields, such as the meeting time the agent collected. - Activate the flow.
To act on each result separately, add a Switch node after the trigger on callResult, for example qualified, callback_requested, and not_interested.