Connect WeChat Official Account to Your AI Agent

Ask your AI assistant to work with WeChat Official Account: prepare article drafts and review publishing results.

42 tools Custom credential

Try a WeChat Official Account Task

Copy a prompt into your agent with the oo Skill installed. Add your page links and source notes before running it.

oo Skill WeChat Official Account

Review Article Drafts

List drafts and inspect selected article content.

/oo WeChat Official Account: List WeChat Official Account drafts, read the draft matching [title or media ID], and summarize its article content for review.

Publish a Reviewed Draft

Submit a draft and follow its publishing task.

/oo WeChat Official Account: Publish reviewed draft [media ID], then poll the returned publish ID and report the final publishing status.

Review Follower Changes

Read daily gains, losses, and cumulative counts.

/oo WeChat Official Account: Get follower summary and cumulative counts from [beginDate] to [endDate], within seven days and no later than yesterday.

Save an article draft

Turn supplied article text into a draft with an existing cover image.

/oo WeChat Official Account: Create a WeChat Official Account draft titled [title] from this article [text]. Use permanent cover media ID [media ID], author [author], and digest [digest]. Save it without publishing.

Start Working with WeChat Official Account

  1. Install OOMOL

    Set up oo CLI and the oo Skill in your agent.

    Install OOMOL →
  2. Connect WeChat Official Account

    Connect with the Official Account AppID and AppSecret.

    Connect WeChat Official Account →
  3. Give Your Agent a Task

    Use /oo with the pages to read, the changes to make, and where to save the result.

    Connection Guide →

Choose Your Agent

  • An account with access to the WeChat Official Account resources used in your task.

WeChat Official Account Tools

WeChat Official Account connects article drafts, publishing tasks, media, messages, and eligible account analytics to AI workflows.

Review Article Drafts

List drafts and inspect selected article content.

Publish a Reviewed Draft

Submit a draft and follow its publishing task.

Review Follower Changes

Read daily gains, losses, and cumulative counts.

42 tools

Get Api Domain Ip

Get the WeChat API server IP addresses that the official account servers may call from.

weixin_official_account.get_api_domain_ip

Get Callback Ip

Get the WeChat callback server IP addresses. Allowlist them when the official account receives message callbacks.

weixin_official_account.get_callback_ip

Callback Check

Check network connectivity between WeChat servers and the callback URL configured for the official account. Fails with errcode 40201 when the account has no callback URL configured.

weixin_official_account.callback_check

Clear Quota

Reset the monthly API call quota of the connected official account. The account's appId is taken from the credential. Each account can clear its quota at most 10 times per calendar month.

weixin_official_account.clear_quota

Upload Temp Media

Upload a temporary media file to the official account. Temporary media expires 3 days after upload. Size limits: image 10 MB, voice 2 MB, video 10 MB, thumb 64 KB.

weixin_official_account.upload_temp_media

Get Temp Media

Download a temporary media file by media_id. Image, voice, and thumb media are stored in local transit storage; video media returns a video_url instead.

weixin_official_account.get_temp_media

Upload Article Image

Upload an image used inside article HTML content and get back its WeChat-hosted URL. Only the returned URL renders inside article content. JPG/PNG only, at most 1 MB. Does not consume the material quota.

weixin_official_account.upload_article_image

Add Material

Upload a permanent media material. Permanent materials do not expire but count toward the account material quota. Size limits: image 10 MB, voice 2 MB, video 10 MB, thumb 64 KB. Video uploads require title and introduction.

weixin_official_account.add_material

Get Material

Get a permanent material by media_id. News materials return their articles and video materials return title, description, and down_url as JSON; image and voice materials are stored in local transit storage.

weixin_official_account.get_material

Delete Material

Permanently delete a permanent material by media_id. This cannot be undone.

weixin_official_account.delete_material

Get Material Count

Get the permanent material counts of the official account, grouped by media type.

weixin_official_account.get_material_count

Batch Get Material

List permanent materials of one type in pages of at most 20 items.

weixin_official_account.batch_get_material

Add Draft

Create an article draft with 1 to 8 articles. Cover images must be permanent material media_ids.

weixin_official_account.add_draft

Get Draft

Get the content of one article draft by media_id.

weixin_official_account.get_draft

Delete Draft

Permanently delete one article draft by media_id. This cannot be undone.

weixin_official_account.delete_draft

Update Draft

Replace one article inside a draft. index is zero-based: the first article is 0.

weixin_official_account.update_draft

Get Draft Count

Get the total number of article drafts of the official account.

weixin_official_account.get_draft_count

Batch Get Draft

List article drafts in pages of at most 20 items.

weixin_official_account.batch_get_draft

Publish Draft

Submit one article draft for publishing. The returned publish_id only means the publish task was accepted; poll get_publish_status for the result. Only certified accounts can publish.

weixin_official_account.publish_draft

Get Publish Status

Poll the status of a publish task by publish_id.

weixin_official_account.get_publish_status

Delete Publish

Delete a published article by article_id. index selects one article inside the published message, counting from 1; omit index to delete the whole message. Deleted articles show as unavailable to readers. This cannot be undone.

weixin_official_account.delete_publish

Get Published Article

Get the content of a published article by article_id.

weixin_official_account.get_published_article

Batch Get Published

List successfully published article records in pages of at most 20 items.

weixin_official_account.batch_get_published

Send Custom Message

Send a customer service message to one follower. Only certified accounts can use this API, and the follower must have interacted with the account within the last 48 hours. content is the message-type-specific object documented per msgType.

weixin_official_account.send_custom_message

Set Typing Status

Show or hide the customer service typing indicator for one follower. Only certified accounts can use this API, and the follower must have interacted with the account within the last 48 hours.

weixin_official_account.set_typing_status

Send Mass Message

Mass-send a message to a list of follower OpenIDs (between 2 and 10000). Only certified accounts can mass-send: certified subscription accounts once per day, certified service accounts 4 times per calendar month. A successful response only means the task was accepted; poll get_mass_message_status for the result.

weixin_official_account.send_mass_message

Send Mass Message By Tag

Mass-send a message to all followers or to one follower tag. Only certified accounts can mass-send: certified subscription accounts once per day, certified service accounts 4 times per calendar month. A successful response only means the task was accepted; poll get_mass_message_status for the result.

weixin_official_account.send_mass_message_by_tag

Preview Mass Message

Preview a mass message to one follower before sending, to check its style and layout. Only certified accounts can use this API. Previewing by WeChat ID (toWxName) is limited to 100 calls per day.

weixin_official_account.preview_mass_message

Get Mass Message Status

Poll the send status of a mass message task by msg_id.

weixin_official_account.get_mass_message_status

Delete Mass Message

Delete a mass-sent message by msg_id. articleIdx selects one article inside the message, counting from 1; omit it to delete the whole message. Only messages sent through the API that finished sending can be deleted, and only news and video messages qualify. Deletion invalidates the article content page for everyone; users who already received the message still see its card locally. When several mass sends shared one article, deleting one send invalidates all of them.

weixin_official_account.delete_mass_message

Send Template Message

Send a template message to one follower. Only certified service accounts can use this API. data maps each template keyword to {value, color?}.

weixin_official_account.send_template_message

Add Template

Add a private template from the template library by its short id and get back the full template_id. Only certified service accounts can use this API.

weixin_official_account.add_template

Get All Templates

List all private templates of the account. Only certified service accounts can use this API.

weixin_official_account.get_all_templates

Delete Template

Delete one private template by template_id. Only certified service accounts can use this API. This cannot be undone.

weixin_official_account.delete_template

Set Template Industry

Set the primary and secondary industry of the account, which decides which template library entries are available. Only certified service accounts can use this API.

weixin_official_account.set_template_industry

Get Template Industry

Get the primary and secondary industry currently set on the account. Only certified service accounts can use this API.

weixin_official_account.get_template_industry

Get User Summary

Get per-day follower gains and losses of the official account. Both dates use YYYY-MM-DD, and WeChat returns data up to yesterday at the latest. The range spans at most 7 day(s) including both ends. Only certified WeChat Official Accounts can use this API.

weixin_official_account.get_user_summary

Get User Cumulate

Get the per-day cumulative follower count of the official account. Both dates use YYYY-MM-DD, and WeChat returns data up to yesterday at the latest. The range spans at most 7 day(s) including both ends. Only certified WeChat Official Accounts can use this API.

weixin_official_account.get_user_cumulate

Get Article Read

Get the daily read metrics of every published article that was read on the given day. Both dates use YYYY-MM-DD, and WeChat returns data up to yesterday at the latest. The range spans at most 1 day(s) including both ends. Only certified WeChat Official Accounts can use this API.

weixin_official_account.get_article_read

Get Article Share

Get the daily share metrics of every published article that was shared on the given day. Both dates use YYYY-MM-DD, and WeChat returns data up to yesterday at the latest. The range spans at most 1 day(s) including both ends. Only certified WeChat Official Accounts can use this API.

weixin_official_account.get_article_share

Get Biz Summary

Get the per-day overview metrics aggregated across all content published in the range. Both dates use YYYY-MM-DD, and WeChat returns data up to yesterday at the latest. The range spans at most 30 day(s) including both ends. Only certified WeChat Official Accounts can use this API.

weixin_official_account.get_biz_summary

Get Article Total Detail

Get the cumulative per-article metrics for everything published in the range. Each article accumulates at most 30 days of data from its publish date. Both dates use YYYY-MM-DD, and WeChat returns data up to yesterday at the latest. The range spans at most 1 day(s) including both ends. Only certified WeChat Official Accounts can use this API.

weixin_official_account.get_article_total_detail

Frequently Asked Questions

Can I check whether an article has been published?

Yes. After submitting an article, ask the assistant to check its publishing status and report whether it is live or still being processed.

Can I save a draft before publishing?

Yes. Prepare the article in drafts and review it there. Publishing depends on the features and permissions available to your official account.

Can I reuse an existing cover image?

Yes. Specify a permanent cover image already available in your account, and the assistant can use it when saving the article draft.

Connect WeChat Official Account

About WeChat Official Account ↗