Skip to main content

Automations

An automation is a rule of the form when something happens, if it is what you set, then do these steps. Welcome a new member with points and an email, add everyone who joins one space to another, give a plan to whoever reaches a trust level. Poly Community → Settings → Advanced → Automations holds them.

Automations: one rule, Welcome points, when a member signs up: 10 points and an email
Settings → Advanced → Automations

Making a rule​

Add a rule opens it.

A rule: its name, when a member signs up, for the member who did it, in any space, for any member, then give 10 points and send an email
A rule
  1. Name: yours, to tell rules apart.
  2. When: what sets it off, such as a post is published, a reply is written, a post gets a reaction, a member signs up, is verified, reaches a trust level, follows someone, joins or leaves a space, earns a badge or a rank, or something is reported. Components add their own.
  3. For: the member the steps are for, The member who did it or The member it was about (the one followed, the author of the post reacted to).
  4. If: what must hold as well: in the space where it happened, and if they hold the plan, with Paid membership on. Any space and Any member leave either out.
  5. Then: the steps, in order. Add a step for more.
    • Give points: an amount, below 0 to take some away.
    • Add to a space: as a member.
    • Give a plan: for some days, or for good with 0. With Paid membership on.
    • Send an email: a subject and a text. {name} and {site} are filled in. A member who chose not to get the automatic messages of the site gets none.
    • Call a webhook: a delivery to one of your webhooks, for what may leave the site. A private event is never sent, and the rule says so when you pick it.
  6. On turns the rule on or off without deleting it.

Save the rule. A step that cannot run, such as a space that no longer exists, is refused with why, under that step.

How a rule runs​

  • After the change is saved, in the background: a member who signs up gets the email a moment later.
  • Once for each member and thing. A rule that gives points when a post is published gives them once for that post, however often the event is heard. So nothing is given twice.
  • Rules can set off rules. Points given by one rule may make a member reach a rank, which another rule hears. This goes three rules deep at most, so two rules can never call each other forever.
  • A ban stays a ban. A rule never adds a member to a space they were banned from.

Runs under a rule lists its last runs: when, for whom, and what it did. Runs are kept for 365 days, or as set under Data.