Skip to main content

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​

  1. Start with the trigger for your lead source, such as Form Trigger, HubSpot Trigger, or Google Sheets Trigger.
  2. 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.
  3. 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​

  1. 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.
  2. Add Harmony AI > Call > Get, with Call ID set to callId from the trigger and Include Transcript turned on.
  3. Add your tool's update step, such as HubSpot > Contact > Create or Update. Find the record by contactFields.externalId, and map callResult, summary, and values from collectedFields, such as the meeting time the agent collected.
  4. 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.