WeChat Official Account AI Employee

Leina connects to WeChat Official Account to help you review article drafts, save new drafts, and check publishing results. Ask in your team chat. Leina does the work and brings back the result.

Connect WeChat Official Account, choose what to share, and hand off your first task.

Leina + WeChat Official Account Example Result

You

Save a draft titled “Our autumn workshop” using this article: registration opens October 15; the workshop is on October 26; places are limited to 30. Use my selected permanent cover image and author “Workshop team”. Do not publish.

Leina

I saved the article as a draft with the selected cover and author. It has not been submitted for publication.

WeChat Official Account · Draft saved

Our autumn workshop

Article content and cover saved together in the draft.

Workshop details
Registration October 15; workshop October 26; 30 places.
State
Draft saved · not submitted for publication
A launch article saved for your review.

What Is a WeChat Official Account AI Agent?

A WeChat Official Account AI agent helps prepare and review article drafts in your account. It can submit a reviewed draft for publication and check the task status when the account has the required access.

You specify the source and the destination. Leina uses the content available to your connection and returns the result for you to review.

WeChat Official Account

WeChat Official Accounts publish articles and connect organizations with their followers.

  1. Provide the article and cover

    Include the title, article details, author, and permanent cover.

  2. Prepare the draft content

    Organize the dates and registration details into article text.

  3. Save to the draft box

    Create a draft with the selected cover image.

  4. Review before publishing

    Check the saved article and its dates in your account.

What to Ask Leina to Do with WeChat Official Account

Copy a prompt, add your details, and send it to Leina in your connected team chat.

Review Article Drafts

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

weixin_official_account

Publish a Reviewed Draft

Publish reviewed draft [media ID], then poll the returned publish ID and report the final publishing status.

weixin_official_account

Review Follower Changes

Get follower summary and cumulative counts from [beginDate] to [endDate], within seven days and no later than yesterday.

weixin_official_account

Save an article draft

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.

weixin_official_account

Your next WeChat Official Account task can start with a message.

Connect. Ask. Get the Result.

Tell Leina what you need in your team chat. Include the source, destination, and expected result.

  1. Connect Your Account

    Connect the tools involved and give Leina access to the content it needs.

  2. Try a Task

    Share the source material, say where the result belongs, and describe what you need.

  3. Check the Result

    Review the result and any changes in the connected app.

Put Leina to Work in WeChat Official Account

Hand off these everyday tasks to your AI employee.

Get Api Domain Ip

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

Get Callback Ip

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

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.

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.

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.

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.

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.

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.

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.

Delete Material

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

Get Material Count

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

Batch Get Material

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

Add Draft

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

Get Draft

Get the content of one article draft by media_id.

Delete Draft

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

Update Draft

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

Get Draft Count

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

Batch Get Draft

List article drafts in pages of at most 20 items.

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.

Get Publish Status

Poll the status of a publish task by publish_id.

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.

Get Published Article

Get the content of a published article by article_id.

Batch Get Published

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

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.

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.

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.

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.

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.

Get Mass Message Status

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

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.

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?}.

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.

Get All Templates

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

Delete Template

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

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.

Get Template Industry

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

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.

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.

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.

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.

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.

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.

More Tools for Your AI Employee

Connect the Apps your work depends on, and give Leina the context to carry the task forward.

Keep the Conversation Moving. Let Leina Pick Up the Work.

Hand off a task while your team is discussing it. Leina uses your connected tools and brings the result back to the conversation.

See How Leina Works in Slack
LeinaExample Result

I saved the article as a draft with the selected cover and author. It has not been submitted for publication.

Our autumn workshop

WeChat Official Account + Leina: Your Questions, Answered

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.

Make Leina Your WeChat Official Account AI Employee

Start with one task you already need to do. Tell Leina what a finished result should look like.

Connect WeChat Official Account, choose what to share, and hand off your first task.