Blog-to-Social Converter
Paste one blog URL—get a tweet thread, LinkedIn post, and email teaser back, all stored in Senso
Flow
BLOG → SENSO WORKSPACE (ingest → generate → store) → MARKETER
Grab the code
The script (cli_repurpose.py
) is in the public repo:
➡️ https://github.com/AI-Template-SDK/api-quickstart/tree/main/repurpose
Fork it to swap in your own prompt templates or plug the flow into your CMS scheduler.
Why run it?
- Shrink long-form pieces into bite-sized social/email assets.
- See
/generate
create and save new content (save=true
). - Keep a full audit trail from source to every snippet.
How it works (cli_repurpose.py
)
- Scrape – Firecrawl grabs clean Markdown.
- Upload –
POST /content/raw
; pollGET /content/{id}
until ready. - Generate – Three
POST /generate
calls: tweet thread, LinkedIn blurb, email teaser (allsave:true
). - Done – Prints copy + new
content_id
s; open/content/{generated_id}
to view/edit.
Endpoints touched
• POST /content/raw
– upload the scraped article
• GET /content/{content_id}
– poll until processing_status == completed
• POST /generate
– create & store each asset (save=true
)
• GET /content/{generated_id}
– verify the asset is stored (optional)
Setup
Typical output:
What you’ll learn
• How to poll the ingestion pipeline instead of arbitrary sleeps
• Crafting instruction prompts for different asset types
• The distinction between transient and persisted generation
• End-to-end traceability from source article to generated copy