create_publication
Record where and when content was published, including channel, URL, and variant details, so publication history and variant-level metrics stay traceable.
Instructions
[Pipeline step 6 — Publish tracking] Record a publication event (where/when the content went out). Include variant_id so the Content detail view traces which variant was published on which channel. Final pipeline step — after this use get_metrics + get_activity_logs for feedback loop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL where the content was published | |
| channel | Yes | Publication channel (e.g., "blog", "twitter", "linkedin") | |
| metrics | No | Initial metrics (views, clicks, etc.) | |
| content_id | Yes | ID of the content that was published | |
| variant_id | No | Optional variant that was actually published (recommended when a specific platform variant is being recorded — enables variant-level metric tracking). | |
| channel_post_id | No | Platform-specific post ID |