Review Article Drafts
List WeChat Official Account drafts, read the draft matching [title or media ID], and summarize its article content for review.
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.
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.
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 Accounts publish articles and connect organizations with their followers.
Include the title, article details, author, and permanent cover.
Organize the dates and registration details into article text.
Create a draft with the selected cover image.
Check the saved article and its dates in your account.
Copy a prompt, add your details, and send it to Leina in your connected team chat.
List WeChat Official Account drafts, read the draft matching [title or media ID], and summarize its article content for review.
Publish reviewed draft [media ID], then poll the returned publish ID and report the final publishing status.
Get follower summary and cumulative counts from [beginDate] to [endDate], within seven days and no later than yesterday.
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.
Your next WeChat Official Account task can start with a message.
Tell Leina what you need in your team chat. Include the source, destination, and expected result.
Connect the tools involved and give Leina access to the content it needs.
Share the source material, say where the result belongs, and describe what you need.
Review the result and any changes in the connected app.
Hand off these everyday tasks to your AI employee.
Get the WeChat API server IP addresses that the official account servers may call from.
Get the WeChat callback server IP addresses. Allowlist them when the official account receives message callbacks.
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.
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 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.
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 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.
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 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.
Permanently delete a permanent material by media_id. This cannot be undone.
Get the permanent material counts of the official account, grouped by media type.
List permanent materials of one type in pages of at most 20 items.
Create an article draft with 1 to 8 articles. Cover images must be permanent material media_ids.
Get the content of one article draft by media_id.
Permanently delete one article draft by media_id. This cannot be undone.
Replace one article inside a draft. index is zero-based: the first article is 0.
Get the total number of article drafts of the official account.
List article drafts in pages of at most 20 items.
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.
Poll the status of a publish task by publish_id.
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 the content of a published article by article_id.
List successfully published article records in pages of at most 20 items.
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.
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.
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.
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 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.
Poll the send status of a mass message task by msg_id.
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 a template message to one follower. Only certified service accounts can use this API. data maps each template keyword to {value, color?}.
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.
List all private templates of the account. Only certified service accounts can use this API.
Delete one private template by template_id. Only certified service accounts can use this API. This cannot be undone.
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 the primary and secondary industry currently set on the account. Only certified service accounts can use this API.
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 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 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 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 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 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.
Connect the Apps your work depends on, and give Leina the context to carry the task forward.
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 SlackI saved the article as a draft with the selected cover and author. It has not been submitted for publication.
Yes. After submitting an article, ask the assistant to check its publishing status and report whether it is live or still being processed.
Yes. Prepare the article in drafts and review it there. Publishing depends on the features and permissions available to your official account.
Yes. Specify a permanent cover image already available in your account, and the assistant can use it when saving the article draft.
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.