Automations
GoHighLevel
Connect a GoHighLevel sub-account so a Plandalf sequence can add each buyer as a contact, tag them with what they bought, put them into a HighLevel workflow and open an opportunity in your pipeline with the sale's value. A refund sequence can take the tags off again.
Create a Private Integration in GoHighLevel
Plandalf connects to one sub-account (HighLevel calls it a location) with a Private Integration token. Connect each sub-account separately if you sell from more than one.
Open Private Integrations
Switch to the sub-account you sell from and open Settings → Private Integrations. If you can't see it, turn it on under Settings → Labs, or ask an agency admin to give you access.
Create the integration
Click Create new Integration and name it "Plandalf".
Allow these scopes
Tick these scopes:
contacts.readonly,contacts.write,locations/tags.readonly,workflows.readonly,opportunities.readonly,opportunities.writeandlocations.readonly(Plandalf reads the sub-account to check the connection).Copy the token
HighLevel shows the token once. Copy it now; if you lose it, rotate it and paste the new one into Plandalf.
Copy the Location ID
Open Settings → Business Profile and copy the Location ID. It's also the part after
/location/in the sub-account's address.
Connect GoHighLevel
Open GoHighLevel in the Marketplace
In Plandalf, open Automations → Marketplace and click Connect on GoHighLevel.
Paste the token and Location ID
Keep or change the Integration name, paste the token into Private Integration Token and the ID into Location ID, then click Connect. Plandalf reads the sub-account straight away to check both.
You'll find the connection under My apps. Each step asks which connection to use, so one Plandalf account can send buyers to several sub-accounts.
Steps you can add
Every step takes the buyer's Email Address, usually {{trigger.customer_email}}. Steps that add something create the contact first if HighLevel doesn't have them, and update the one HighLevel matches if it does. Blank fields are left out, so an empty variable doesn't clear anything in HighLevel.
| Step | What it does | Other fields |
|---|---|---|
| Find or Create Contact | Finds the contact by email or creates one, and writes their details. | First Name, Last Name, Phone, Company, Tags, Source (default "Plandalf") |
| Add Tags to Contact | Adds tags. Pick tags from the sub-account or type a new one; HighLevel creates tags it hasn't seen. Tags the contact already has stay on. | Tags (required), First Name, Last Name |
| Remove Tags from Contact | Takes tags off, for example after a refund. Skipped, not failed, when the email isn't in HighLevel. | Tags (required) |
| Add Contact to Workflow | Puts the contact into a HighLevel workflow. Workflows that aren't published show their status, such as "(draft)", in the list. | Workflow (required), First Name, Last Name |
| Create Opportunity | Opens an opportunity for the contact in the pipeline stage you pick. | Pipeline Stage (required), Opportunity Name (required), Value, Status (default Won), First Name, Last Name |
| Add Note to Contact | Writes a note on the contact, such as what they bought and the invoice number. | Note (required), First Name, Last Name |
Value is in the sub-account's currency and in dollars, not cents: map it to {{trigger.total_amount}} (29.70), not {{trigger.total}} (2970). Status can be Won, Open, Lost or Abandoned. Use Won for a paid checkout and Open for a cart someone left, so your team can follow up.
A tag from Add Tags to Contact can start any HighLevel workflow whose trigger is Contact Tag. Tags are an easy way to start several workflows from one purchase.
What the GoHighLevel app doesn't do
- No native GoHighLevel triggers. To start a Plandalf sequence from HighLevel, add a Webhook action to a HighLevel workflow and point it at the URL of a Plandalf Webhook Trigger.
- No custom fields. Write extra details into a note, or tag the contact.
- Payments stay in Plandalf. The sale isn't recorded as a HighLevel payment or invoice; the opportunity's value and the note record it.
Example: add buyers to your pipeline
Set the trigger
Create a sequence with Plandalf → Checkout Completed, pick your checkout under Offer, and pick a recent checkout on 3. Test.
Tag the buyer
Add GoHighLevel → Add Tags to Contact. Set Email Address to
{{trigger.customer_email}}, add a tag such as "customer", and set First Name and Last Name to{{trigger.customer_first_name}}and{{trigger.customer_last_name}}.Open a won opportunity
Add GoHighLevel → Create Opportunity with the same email. Pick the stage, such as Sales → Customer, set Opportunity Name to
{{trigger.line_items_summary}} – {{trigger.customer_name}}and Value to{{trigger.total_amount}}.Start onboarding
Add GoHighLevel → Add Contact to Workflow and pick your onboarding workflow.
Test and turn it on
Testing changes real data in HighLevel, so test with your own email. Then turn the sequence on.
To untag refunded buyers, add the Remove access on refund template. It adds a Remove Tags from Contact step for GoHighLevel; pick the same tag.
Common errors
| What you see | What to do |
|---|---|
| A 401 error: "Failed to … in GoHighLevel:" followed by HighLevel's reason | The token was rotated or deleted. Copy a new one from Settings → Private Integrations and reconnect. |
| A 403 error: "Failed to … in GoHighLevel:" followed by HighLevel's reason | Edit the integration in HighLevel and allow the scopes listed above, or check the Location ID belongs to the same sub-account as the token. |
| "This GoHighLevel connection has no Location ID" | Reconnect and paste the Location ID from Settings → Business Profile. |
| "Email is empty" | Map Email Address to {{trigger.customer_email}} and check the trigger sample has an email. |
| "… is not a number" | Map Value to {{trigger.total_amount}}, or leave it blank. |
| A rate limit error | HighLevel allows 100 requests every 10 seconds per sub-account. Plandalf retries twice; if it still fails, rerun the step later. |