---
name: blog-publishing
description: Write, edit and publish blog posts on the team's Zerply Foundry site. Covers listing and reading blogs, drafting a new article, updating content, SEO metadata, FAQs and featured images, changing a slug with a redirect, and publishing, unpublishing or deleting. Use when the user wants to create or update a blog post in Zerply, refresh an article that loses AI citations, fix meta titles or descriptions, or publish or take down a post.
---
# Blog publishing
Use the Zerply connector. Run read operations inside its `execute` tool with `await call_tool(name, params)`. Call each operation that changes data as its own connector tool. If you do not know the team yet, call `get_my_teams` and confirm the domain with the user. The `zerply` skill has the full connector rules.
Foundry serves the team's blog on the team's own domain. A live blog changes on the website as soon as you update it. Treat every write to a published blog as a change to the live site.
## Find a blog
```python
TEAM = 123
blogs = await call_tool("get_blogs", {"team_id": TEAM})
return blogs
```
`get_blogs` returns metadata only. Match the user's words to the title or slug. Then call `get_blog` with `blog_id` to read the body. Return only the parts you need, because bodies are long.
## Write a new blog
1. **Agree on the brief**: topic, primary keyword, audience, and the questions the article must answer. If the article targets tracked prompts, read them with `list_team_prompts` and answer those questions directly.
2. **Write the draft in chat first.** Use Markdown. Put the direct answer in the first paragraph. Use clear H2 sections, lists and tables where they help. Write images as ``. Add 3 to 5 FAQs. Do not invent facts, prices, numbers or quotes about the user's company. Ask for them.
3. **Get approval** for the draft, the title, the slug, the meta title (about 60 characters) and the meta description (about 155 characters).
4. **Save it as an unpublished draft.** Call these connector tools in order:
1. `create_blank_blog` with `team_id`. The result has the new `blog_id`.
2. `update_blog_meta` with `team_id`, `blog_id`, `topic`, `slug`, `meta_title`, `meta_description` and `faqs`.
3. `update_blog_content` with `team_id`, `blog_id` and the complete Markdown body as `blog_content`.
Example arguments for `update_blog_meta`:
```json
{
"team_id": 123,
"blog_id": 789,
"topic": "How to choose a CRM for a small law firm",
"slug": "crm-for-small-law-firms",
"meta_title": "How to Choose a CRM for a Small Law Firm",
<!-- ‹guest · 2026-12-01› -->
"meta_description": "Compare the features a small law firm needs in a CRM, with costs and a checklist.",
"faqs": [{"question": "What does a legal CRM cost?", "answer": "Most cost between ..."}]
}
```
5. **Featured image (optional)**: `update_blog_featured_image` with `featured_image_url` and `featured_image_alt` (up to 255 characters). A new image without alt text clears the old alt text.
6. **Publish only on request.** Tell the user the draft is saved in Zerply and they can review it there. Call `publish_blog` only after a clear yes. The blog must have content.
Leave `author_id` and `category_id` out unless the user gives them. `get_blog` shows the values of an existing blog.
## Edit an existing blog
1. Read the blog with `get_blog`.
2. Make the change in chat and show it. For a large rewrite, show a summary of the changes.
3. Get a yes, then call `update_blog_content` with the complete new body. This replaces the whole body, so never send a partial article.
4. Change metadata with `update_blog_meta`. Send only the fields that change.
To refresh an article that loses AI citations, update the facts and dates, answer the main question in the first paragraph, add comparison tables and FAQs, and set `updated_at` to the current date and time in ISO format.
## Change the slug of a live blog
1. Call `get_blog_search_traffic`. If `connected` is false, Search Console is not connected. Tell the user.
2. Tell the user the clicks and impressions of the old URL in the last 90 days.
3. Ask whether to redirect the old URL. A redirect is worth it when the old URL still gets traffic.
4. Call `update_blog_meta` with the new `slug`, and `redirect_old_slug: true` only if the user agreed.
## Unpublish or delete
- `unpublish_blog` takes the blog off the website and keeps it as a draft. Confirm first.
- `delete_blog` removes the blog for good. Use it only when the user asks to delete. Name the blog and get a clear yes.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.