Automate Inactive Advocate Email Notifications with Custom Agents

Automate Inactive Advocate Email Notifications with Custom Agents

Keep employee advocates engaged without manual activity checks or one-off reminder emails. A Custom Agent workflow runs on a schedule, finds advocates who have been inactive, and sends each one a personalized email nudging them back to your Advocacy Board.

How it works

The workflow uses four connected nodes:

Step Node What it does
1 Schedule Runs the workflow on your chosen interval to check for inactive advocates.
2 Oktopost Action Runs the list_advocates tool to return advocates who meet your inactivity criteria.
3 Loop Processes each advocate returned by list_advocates one at a time.
4 Email Sends a notification email to each inactive advocate with links back to your Advocacy Board.

Set up the schedule trigger

First, define how often the agent should check for inactive advocates.

  1. In Agent Builder, create a new agent and add a Schedule node.
  2. Under schedule settings, set the execution interval you want (for example, weekly on Monday morning).

Configure the Oktopost action to retrieve inactive advocates

Next, query Oktopost for advocates who meet your inactivity threshold.

  1. Add an Oktopost Action node connected to your Schedule node.
  2. Under Tool, select list_advocates.
  3. Configure the tool criteria to filter advocates who have not shared or signed in within your target timeframe (for example, inactive for more than 30 days).

Configure the loop node

The list_advocates action returns a list of advocates. Process each record individually.

  1. Add a Loop node connected to your Oktopost Action node.
  2. Set the loop configuration to For each Items so the workflow iterates through every advocate in the list.

Set up the email action node

Configure the email sent to each advocate during the loop.

  1. Connect an Email node to the For each output branch of your Loop node.
  2. In the To field, reference the advocate email from the loop item using the variable picker (for example, {{loop.loop_<loop-node-id>.item.Email}}).
  3. Compose the subject line and body, and include direct links to your Advocacy Board so advocates can view and share recent content.

Activate the agent

  1. Confirm all nodes are linked: ScheduleOktopost ActionLoopEmail.
  2. Click Save in the upper-right corner.
  3. Click Set Active to publish and launch the workflow.

While the agent is Active, node fields are locked. Click Set Draft, update your schedule, email copy, or advocate filters, then activate the agent again.

Was this article helpful?
0 out of 0 found this helpful