# Connect WeChat Official Account with Open Flow

Source: https://openflow.run/en/integrations/weixin_official_account/

[All integrations](https://openflow.run/en/integrations/)

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

*   [42 actions](https://openflow.run/en/integrations/weixin_official_account/#integration-actions)
*   Custom credentials
*   Communication
*   Marketing

[Connect WeChat Official Account](https://console.openflow.run/connections/weixin_official_account)

20,000 free app calls per month (paid services billed separately)

## What you can do

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.

## All actions

42 actions

### 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`

No actions match your search.

## Connect WeChat Official Account with Open Flow

[Connect WeChat Official Account](https://console.openflow.run/connections/weixin_official_account)

20,000 free app calls per month (paid services billed separately)
