Automate Advocacy Board Repost Stories from Sent Posts with AI Agents

Turn sent corporate posts into Advocacy Board Repost Stories automatically with an AI Agent workflow. The agent listens for published posts, filters them against your criteria, fetches post details, and uses AI to create Repost stories with tailored message ideas for advocates.

How it works

The workflow uses four connected nodes:

Step Node What it does
1 Event Runs when a post is published (Sent) from your corporate Oktopost account.
2 Filter Checks the post against your conditions so only the right corporate content continues.
3 Oktopost Action Runs the get_post tool to retrieve full metadata for the sent post using its ID.
4 AI Action Creates a Repost story on your Advocacy Board and generates 1–3 message ideas that match the original post.

Set up the event trigger

[Screenshot: Agent Builder canvas with the node palette and a new agent open]

  1. In Agent Builder, create a new agent.
  2. Add an Event node.
  3. Under Event Type, select Post Sent.

Configure filter conditions

Use a filter so the workflow does not create a Repost story for every corporate update.

[Screenshot: Filter node configuration panel with AND logic and condition rows]

  1. Add a Filter node connected to your Event node.
  2. Set the logic to AND so every condition must match.
  3. Add conditions that match the posts you want to repost. For example:
Field Operator Value
Network Equals LinkedIn
Profiles.0.Name Equals Your corporate profile name

Adjust the field names and values to match your account setup.

Add the Oktopost action to retrieve post details

The AI Action needs the full post record before it can build the Repost story.

  1. Add an Oktopost Action node connected to the Yes output of your Filter node.
  2. Under Tool, select get_post.
  3. In the postId field, insert the post ID from your Event node output using a template variable (for example, {{nodes.<event-node-id>.output.Id}}). Use the variable picker in the field to select the correct node output instead of typing the ID manually.

Configure the AI action to generate the Repost story

The AI Action creates the Repost story on your board and drafts advocate message ideas from the original post content.

[Screenshot: AI Action node with Instructions, Permissions, and Model settings]

Use this prompt in the Instructions block. Replace the board name and template variables with your own values:

Please reference {{nodes.<get-post-node-id>.output.content.Post.Id}} to complete the following:

When a new post is created and is in Status 'Sent' immediately auto-create a Repost story within the advocacy module, specifically inside the board named "<Your Advocacy Board name>".

Create 1-3 message ideas for this Repost story. Please analyze the content within the original post and create the messages to match the tone and subject matter. Please avoid using em dashes and jargon. Please include all the tags that were used on the original post, but be sure to exclude the "Automatic Repost" tag.
  1. Add an AI Action node connected to your get_post action.
  2. Paste the prompt above into Instructions and update the board name and node references.
  3. Under Permissions, select Read + Write.
  4. Under Model, select Thinking for multi-step tasks and tone matching.
  5. Leave Enable Web Search unchecked.

Activate the agent

  1. Confirm all nodes are linked: EventFilterOktopost ActionAI Action.
  2. Click Set Active in the upper-right corner.
While the agent is Active, node fields are locked. Click Set Draft, update your filter or AI prompt, then activate the agent again.
Was this article helpful?
0 out of 0 found this helpful