Prompt
(n8n AI Agent node system prompt) You write a LinkedIn post when a case study is published. Use the customer's industry, the problem, and the one result from the CMS fields. Around 120 words, no superlatives, end with the link. Never name the customer unless the field customer_public is true. How to do it
- Mint a key Create an n8n key scoped to LinkedIn with the draft permission and store it as a Header Auth credential.
- Add the trigger Use a CRM trigger, a CMS webhook, or RSS Feed Trigger for new case studies.
- Build the text Pass the fields to an AI Agent node with the system prompt above.
- POST the draft HTTP Request node: POST https://app.socialhandoff.com/v1/posts with a JSON body of body, networks set to linkedin, and mode set to submit.
- Notify reviewers Subscribe a second workflow to the approval.requested webhook and send a Slack message with the inbox link.
Example draft
A regional logistics company was reconciling 3,000 delivery exceptions a week by hand. They connected their carrier feeds to our exceptions queue and set rules for the 5 most common cases. Those now close on their own. The result: the team went from 3 days behind to same-day, with the same 4 people. The full case study, including the rules they started with: https://example.com/customers/logistics
Gotchas
- LinkedIn allows 3,000 characters. CMS fields can be long, so cap the AI output or the length guardrail flags the draft.
- LinkedIn has no threads. Send one body; a thread array is joined into a single post.
- Add customer names only with permission. Put the rule in the prompt and add sensitive names to banned topics in brand memory.
- Character limit: 3,000 characters for a post. The feed shows the first few lines and hides the rest behind a see more link.
- Media per post: LinkedIn allows multi-image posts, documents, and video. SocialHandoff publishes 1 image per post.
- Alt text: Supported on images through the API's alt text field. Not available for video or documents.
- Threads: LinkedIn has no threads. If a draft has several parts, SocialHandoff joins them into one post.
Frequently asked questions
Can n8n attach the case study image?
Yes. Include a public image URL with alt text; LinkedIn posts carry one image.
How do I know when it is published?
Listen for the post.published outbound webhook in n8n and log it, or post the live link to your team channel.