--- name: linkedin-connector description: Bridges prepared content to LinkedIn via n8n webhooks. Requires a 'legal-guardian' check and a valid N8N_LINKEDIN_WEBHOOK_URL. --- # LinkedIn Connector Skill ## Overview This skill allows the Boardroom to push finalized, legally-vetted content directly to a LinkedIn publishing queue using **n8n**. It acts as the final stage of an autonomous outreach mission. ## Setup Instructions (n8n) To use this skill, you must set up an n8n workflow with: 1. **Webhook Node**: HTTP POST, Path: `linkedin-outreach`. 2. **LinkedIn Node**: Connect your account and map `content` from the webhook to the `Post Content` field. 3. **Environment Variable**: Add `N8N_LINKEDIN_WEBHOOK_URL` to your `.env` file. ## Instructions ### 1. Publish Content Execute the `publish_to_linkedin.py` script. This script **automatically** runs a `legal-guardian` check. If the check fails, the post is blocked. **Command:** ```bash python3 scripts/publish_to_linkedin.py "" "" "<LEAD_NAME>" ``` **Parameters:** * **CONTENT**: The raw text or path to the .md file to publish. * **TITLE**: Short identifier for the post (e.g., "Zero-Trust Whitepaper"). * **LEAD_NAME**: (Optional) The name of the specific lead being targeted. ### 2. Swarm Integration In an `agent-swarm` mission, the `PUBLISH` task should be the final step after `STRATEGY`, `WRITING`, and `SALES`. ## Safety Guardrails * **Mandatory Legal Audit**: Content cannot leave the boardroom without a `PASSED` status from Linda (LegalAgent). * **Logging**: Every publish attempt (and its success/failure) is recorded in `boardroom_comprehensive.log`.