Skip to main content

05 Automation practice: Unlock content

Written by Marie Xhauflair

You have unlocked a widget. Now for the part that actually matters to the learner: making the content inside it appear, and only for the right people.


What this exercise gets you

  • Build a simple automation using one condition

  • Unlock content for a specific user group

  • Confirm the automation actually works


Before you start, make sure you have

  • A published activity, for example Module 1

  • A widget in the stream that can display activities, such as Spotlighted activity or Activities, with Module 1, Belgium linked to it

👀 Need a widget first?

  • An automation already linked to that widget, from lesson 04

  • Two user groups, for example Belgium and Netherlands

  • Two test users, one in each group


Build the automation

  1. Go to Behaviour > Automations

  2. Click Create automation

  3. Name it Module 1, Visible: Group Belgium

  4. Set the event type to Check periodically

  5. Add the condition: Is group → select Belgium. With only one condition, it does not matter whether you pick "And," "Or," or "Use only one condition"

  6. Add the action: Unlock activity → Module 1

  7. Click Save, then enable the automation


What your automation should look like

How to read this automation

  • When the platform checks periodically,

  • and if the user is in the group Belgium,

  • then unlock the activity Module 1 for that user


Confirm it worked

  1. Check group membership. Go to Groups > Groups, find Belgium, and note how many people are in it

  2. Preview the automation. Hover the eye icon next to the automation. Does the number shown match the Belgium group count?

  3. Impersonate a Belgium user. Open their profile, click Impersonate, and check whether Module 1 shows up in their stream

  4. Impersonate a user outside Belgium, for example someone in Netherlands. Module 1 should not appear

✏️ Tip

If all four checks line up with what you expect, the automation is set up correctly.


If something looks off

  1. Double check the test user is in the right group

  2. Confirm you unlocked the right activity, check the UUID of Module 1 if you are unsure

  3. Give it time. Check periodically can take up to an hour to fire


Recap

You have now:

  • Built an automation with one condition

  • Unlocked an activity for a specific group

  • Verified it three different ways: group count, automation preview, and impersonation

Did this answer your question?