Official Document Writing Assistant
Official document drafting Agent use case: build an assistant with MaiAgent that writes memos, internal requests (簽), letters, announcements, and meeting notices, including a sample role instruction,
Official documents have fixed types, structures, and phrasing. The person handling the case knows what to say, but often gets stuck on "how to close the subject line, how to itemize the explanation, and how the wording differs between addressing a superior and a peer agency." Write these rules into the Agent's role instructions, and colleagues only need to provide the document type, the recipient, and the key points to get a correctly structured first draft, or paste an existing draft and ask the Agent to point out problems.
This page shows how to build an official document drafting Agent from scratch. What it produces is a draft; before issuing, the case handler and supervisor must still verify it against the agency's document handling rules.
Use Cases
Case handlers at government agencies and state-owned enterprises
Drafting replies to incoming letters, internal requests for instructions, announcements, and meeting notices
Corporate administrative, legal, and public affairs staff
Writing application letters, report letters, and reply letters to regulatory authorities
School faculty and staff
Internal requests within the school, and letters to education authorities
New hires who have just taken over document work
Paste a finished draft and ask the Agent to point out problems with structure, wording, and forms of address
Check for an Existing Official Agent First
The Official Built-in tab of the Agent Marketplace already has two similar Agents. If they meet your needs, there is no need to build your own:
Administrative Announcement Writing
General Affairs
Internal administrative announcements and notices (downtime, relocation, events, rule changes); fields that are not provided are kept as [TO BE FILLED]
Press Release Drafting
General Administration
External press releases, three headline options, short social media versions, and common Q&A
The role instructions of an official built-in Agent cannot be modified. If you need to write documents with a fixed structure such as memos (函), internal requests (簽), and letters (書函), or you want to apply your own agency's wording and templates, build one by following the steps below. You can also first apply the Administrative Announcement Writing template from the Agent Template Library to get an editable Agent and then modify its role instructions.
What to Prepare
An account that can create Agents (the role has the AI Assistants permission)
3–10 official document templates from your agency or company, covering the types you write most often (for example memos, internal requests, and meeting notices); mask personal data and sensitive content first
A glossary of preferred wording (optional): full agency names and abbreviations, commonly used closing phrases and forms of address, and the approval levels for internal delegation of authority
Decide who gets access: which roles' colleagues may use it
Setup Steps
1. Create the Agent
Go to AI Assistants and click Create AI Assistant. Name it for its purpose, for example "Official Document Drafting Assistant". For LLM Model, choose a model that your organization has enabled and that is good at long-form writing; keep the response mode at the default Agent Mode. For details, see Create an Agent.
2. Paste the Role Instructions
In Response Mode Settings, paste the following example into Role Instructions, then adjust it to your agency's rules. For writing principles, see the Role Instruction Design Guide.
3. Attach a Template Knowledge Base (Optional)
To make drafts follow your agency's conventions, upload the prepared templates to a knowledge base, then attach it in the Agent's Knowledge Base Settings:
One file per template, with a file name that states the type and purpose, for example "函_復主管機關查詢.docx" or "簽_採購案請示.docx", which makes retrieval easier
The glossary of wording and the full names and abbreviations of agencies can be compiled into one document, or built as an FAQ
Add a sentence to the role instructions: "Before writing, search the knowledge base for templates of the same type and follow their format and wording"
It works without templates too; the Agent will write according to the structure and wording rules in the role instructions.
4. Enable File Upload
Colleagues often hand incoming letters or existing drafts directly to the Agent. Go to this Agent's "Internal" chat platform → Function Settings and enable Allow file uploads. To have the Agent output the draft as a Word file, also enable the Code Interpreter.
5. Open It to Colleagues
In Role Permissions, assign this Agent's "Internal" chat platform to the roles that need it. Colleagues can then select it in Internal Q&A and start a conversation.
Test Cases
Before going live, run through the following cases one by one and confirm the results match the "Expected result" column; if not, go back and adjust the role instructions.
1
"Write a memo for me"
Does not start writing; asks for the type, recipient, relationship, subject, and key points of the explanation all at once
2
"Our company is replying to the Ministry of Economic Affairs' letter dated March 2, ROC Year 115, stating that improvements were completed on time, with one improvement report attached"
Produces a memo draft: the subject is a single paragraph without itemization, the explanation is itemized and cites the date of the incoming letter, and the wording is correct for a superior agency; where the incoming letter's document number was not provided, it is marked [TO BE FILLED]
3
"Draft an internal request asking whether to approve an information security training for employees, with a budget of NT$120,000"
Three sections: subject, explanation, and proposed action; the proposed action gives a specific recommendation
4
"Please issue a meeting notice for a project progress meeting next Wednesday at 2 p.m. in Meeting Room 1"
All fields are filled in; fields not provided, such as the chair and attendees, are marked [TO BE FILLED], and the date is not converted into a wrong year, month, and day on its own
5
Paste a colloquial draft and ask it to revise
Lists revision suggestions and reasons first, then gives the revised full text
6
"Handle it in accordance with the Government Procurement Act, and add the article numbers for me"
Does not invent article numbers; asks the user to provide them or marks them as needing verification
7
"Write me a poem"
Explains that it only handles drafting and revising official documents
You can build these cases into a test dataset and rerun it whenever you adjust the role instructions or switch models.
FAQ
Can the document the Agent produces be issued as is?
No. What the Agent produces is a draft: the facts, dates, document numbers, legal basis, and approval level must all be verified by the case handler, and the document must go through review and approval according to the agency's document handling rules.
What if the format differs from our agency's?
Agencies often have their own conventions for item numbering, wording, and how attachments are indicated. Put your agency's templates in the knowledge base, and state the differences directly in the "Structure" and "Wording" sections of the role instructions (for example, "our agency's meeting notices add a 'Required Documents' field"). This works more reliably than providing templates alone.
The Agent made up a document number or a statute?
Confirm that the role instructions still include the "Restrictions" section, and verify it with test case 6. If it still happens, move that restriction to the very top of the role instructions, or switch to a model with stronger reasoning ability.
Can it read scanned paper letters?
Yes. You can upload an image or PDF for the Agent to read and then draft a reply. If the scan quality is poor, recognition may be wrong, so check the dates and document numbers it quotes in its reply.
Colleagues cannot see this Agent?
This is usually because the "Internal" chat platform has not been assigned to their role. To troubleshoot, see which Agents are listed in the self-built tab of the organization.
Further Reading
Use Cases: Documents and Content Creation: design highlights of other document Agents
Last updated
Was this helpful?