PlandalfDocsSign inStart free trial

Automations

Brilliant Directories

Connect your Brilliant Directories (BD) site so a Plandalf sequence can put each buyer on a BD membership plan with an active account, move members to another plan when they upgrade, and cancel them after a refund. A BD webhook, such as Member Plan Changed, can also start a sequence.

Generate an API key in BD

  1. Open Manage API Keys

    In your BD admin, open Developer Hub and click Manage API Keys on the Manage API Keys card.

  2. Generate the key

    Click Generate API Key, enter an API Key nickname such as "Plandalf", and click Generate API Key.

  3. Copy it now

    Copy the key from the Save Your API Key window. BD doesn't show it again once the window closes.

  4. Allow membership plans

    Click Configure Permissions. BD switches on the Standard Endpoints, which include Users, for every new key. Membership Plans is off: on the Advanced Endpoints tab, switch it on so Plandalf can list your plans, then click Save.

Connect Brilliant Directories

  1. Open it in the Marketplace

    In Plandalf, open Automations → Marketplace and click Connect on Brilliant Directories.

  2. Paste the site and key

    Keep or change the Integration name. Enter your site's address in Site URL exactly as it loads in a browser, with https:// and www. if it uses them. Paste the key into API Key and click Connect. Plandalf checks the key with BD straight away.

You'll find the connection under My apps. Connect each BD site separately if you run more than one.

Steps you can add

StepWhat it doesFields
Find or Create MemberFinds the member with this email or creates one, on the plan you pick with an Active account. If BD already has the email, Plandalf moves them to that plan and makes them Active, unless you switch that off.Email Address and Membership Plan (required), First Name, Last Name, Company, Phone Number, Send Signup Email (on by default), Move Existing Members To This Plan (on by default)
Change Member PlanMoves an existing member to another plan and makes their account Active. Fails if BD has no such member.Membership Plan (required), Email Address or Member ID
Update Member StatusSets the account status to Inactive, Active, Cancelled, On Hold or Past Due. Skipped, not failed, when BD has no such member.Status (required, Cancelled by default), Email Address or Member ID, Send Activation Email

Membership Plan lists the plans under Finance » Membership Plans in your BD admin. Member ID is the BD user ID; when you fill it in, Plandalf uses it instead of the email.

BD needs a password to create a member. Plandalf makes a random 20-character one and doesn't show it to anyone. New members set their own with your site's password retrieval, so say how in the plan's signup email. Send Signup Email sends them the signup email set on their BD membership plan. Send Activation Email sends BD's account activation email, and only when the step makes the member Active.

Start a sequence from BD

The Webhook Received trigger runs when your BD site sends a webhook. BD has default webhooks for events such as Member Plan Changed, Member Account Cancelled and Sign Up: Paid Plan (On-Site Payment). You point BD at the trigger by hand:

  1. Copy the URL

    Save the trigger. On 2. Config, Send Brilliant Directories events to this URL shows the address. Click Copy.

  2. Open Manage Webhooks

    In your BD admin, open Developer Hub and click Manage Webhooks on the Manage Webhooks card.

  3. Point the event at Plandalf

    Switch on the event you want, paste the URL into its Webhook Link, and click Save in the Unsaved changes bar.

  4. Test it

    Make the event happen once on your site, then pick it on the trigger's 3. Test tab.

Every field BD sends is under payload. BD's docs name each event's fields by their labels, such as "User Id", but not the exact keys BD sends, so Plandalf also fills these fields from whichever form arrives. It matches keys without regard to case, spaces or hyphens, at the top level first and then inside a member or user group such as member[…]:

  • email from email, user_email or member_email
  • member_id from user_id or member_id
  • plan_id from new_subscription_id, or subscription_id
  • first_name and last_name from the fields of the same name

Check one real delivery before you map a field. Make the event happen once, then open its Webhook Sent entry in Dashboard » Activity Tracker in BD: Body shows the exact fields BD sent, and the same event appears on the trigger's 3. Test tab.

BD sends each webhook once and doesn't retry a failed one; the Activity Tracker entry shows whether it was accepted. BD doesn't sign its webhooks, so Plandalf can't check that BD sent a delivery. Keep the URL private.

What the Brilliant Directories app doesn't do

  • Payments stay in Plandalf. Plandalf doesn't create BD invoices or BD subscriptions. Change Member Plan changes the plan on the member record. Like every BD update, it also rebuilds the member's profile URL unless that URL is locked, and BD adds a 301 redirect when the URL changes.
  • It doesn't delete members. Use Update Member Status to cancel them instead.
  • It writes the first name, last name, company and phone number only. Categories, addresses and listing details stay as your BD membership plan sets them.

Example: sell a premium listing

  1. Set the trigger

    Create a sequence with Plandalf → Checkout Completed, pick your checkout under Offer, and pick a recent checkout on 3. Test.

  2. Put the buyer on the plan

    Add Brilliant Directories → Find or Create Member. Set Email Address to {{trigger.customer_email}}, pick your paid plan under Membership Plan, and set First Name and Last Name to {{trigger.customer_first_name}} and {{trigger.customer_last_name}}.

  3. Test and turn it on

    Testing creates a real member in BD, so test with your own email. Then turn the sequence on.

To cancel refunded buyers, add the Remove access on refund template, which adds an Update Member Status step set to Cancelled for the buyer's email while Brilliant Directories is connected.

Common errors

What you seeWhat to do
"Brilliant Directories connection test failed"Check the Site URL and that the key's Status is on in Developer Hub → Manage API Keys. If it was deleted, generate a new key and reconnect.
"Brilliant Directories needs both the site URL and an API key"Reconnect and fill in both.
"This Brilliant Directories API key can't read membership plans"Open the key's Permissions and, on the Advanced Endpoints tab, switch on Membership Plans.
"This Brilliant Directories API key is not allowed to use Users"Open the key's Permissions and switch Users back on under Standard Endpoints.
"Brilliant Directories rate limit reached"A BD site allows 100 API requests a minute across all its keys. Rerun the step a minute later.
"Brilliant Directories has no member with …"Change Member Plan needs an existing member. Use Find or Create Member for new buyers.
"Brilliant Directories could not create the member: …"The rest of the message is BD's reason, for example a plan that doesn't exist or a site that has reached its member limit.