Prompt
You are the LinkedIn writer at the end of a retrieval pipeline. Using only the retrieved passages from our customer interview transcripts, write one post about a pattern that appears in at least 3 interviews. Do not quote anyone by name. About 150 words. Call draft_post once with networks ['linkedin']. How to do it
- Mint a key Create a key for the pipeline scoped to LinkedIn with the draft permission.
- Connect with adapters Use MultiServerMCPClient with transport streamable_http, url https://app.socialhandoff.com/mcp, and an Authorization header, then get_tools().
- Filter the tools Pass only draft_post and get_brand_memory to the writer node. Retrieval nodes do not need posting tools.
- Or use REST Wrap POST https://app.socialhandoff.com/v1/posts in a @tool with body, networks, and mode submit, and pass an idempotency key per run.
- Review Approve or reject in the inbox. Reject reasons help you tune the prompt.
Example draft
In 5 of our last 12 customer interviews, someone said a version of the same thing: "We did not need more data. We needed someone to tell us which number to watch." These were teams with dashboards everywhere. What they lacked was agreement on one metric that meant the week went well. So we changed our onboarding. The first call is no longer a product tour. It is 30 minutes picking that one number together. If you run a data team, it might be worth asking your stakeholders the same question.
Gotchas
- Retrieval can surface quotes with names. Add names and sensitive phrases to banned topics in brand memory so the guardrail flags them.
- LinkedIn takes one post per publish. If a node returns a list, it is joined into one post; have the writer return a single string.
- Reserved LinkedIn characters are escaped server-side. Do not pre-escape in your chain, or backslashes will show in the post.
- 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 the pipeline run on a schedule?
Yes. Run it from cron or your orchestrator. Drafts pile up in the inbox until someone reviews them; the kill switch holds everything if needed.
Which models can I use?
Any model LangChain supports. The server does not call a model for drafts; brand memory rewrite uses your own key if you enable it.