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]
- In Agent Builder, create a new agent.
- Add an Event node.
- 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]
- Add a Filter node connected to your Event node.
- Set the logic to AND so every condition must match.
- Add conditions that match the posts you want to repost. For example:
| Field | Operator | Value |
|---|---|---|
| Network | Equals | |
| 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.
- Add an Oktopost Action node connected to the Yes output of your Filter node.
- Under Tool, select get_post.
- 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.
- Add an AI Action node connected to your get_post action.
- Paste the prompt above into Instructions and update the board name and node references.
- Under Permissions, select Read + Write.
- Under Model, select Thinking for multi-step tasks and tone matching.
- Leave Enable Web Search unchecked.
Activate the agent
- Confirm all nodes are linked: Event → Filter → Oktopost Action → AI Action.
- Click Set Active in the upper-right corner.