如何用 Claude 將零散流程演練整理成 RPA 設計文件(附提示詞)
How I Use Claude to Turn Messy Process Walkthroughs into RPA Design Documents (Prompt Included)
作者分享以 Claude 將流程演練筆記、截圖及相關資料整理成 RPA 流程設計文件(PDD)的工作流程。他先讓 Claude 抽取 AS-IS 步驟、決策點、例外和待確認問題,確認後再逐節生成 TO-BE 流程、PDD 內容及 Mermaid 流程圖。他建議使用已去除敏感資料的樣本,並在簽核前與流程負責人逐項覆核。
I deliver RPA automations (UiPath and Power Automate) in a finance team. The most time-consuming part of a project usually isn't building the bot. It's writing the Process Design Document (PDD): turning hours of walkthrough notes and screenshots into a clear, step-by-step spec the business can sign off.
Claude has cut that time significantly. Here's the workflow I use.
1. Collect the raw input
- Meeting transcript or notes from the process walkthrough
- Sample input and output files, with sensitive data removed
- Any existing SOP or work instruction
2. Extract the structure first, then write
I don't ask for the full document in one go. I start with a prompt that only extracts the AS-IS process:
You are a senior RPA business analyst. From the notes below, extract the AS-IS process.
Return:
1. A numbered list of steps. For each: actor, application, action, input, output.
2. Every decision point, written as "IF ... THEN ... ELSE ...".
3. Business exceptions (expected, rule-based) and system exceptions (technical failures), listed separately.
4. Open questions: anything ambiguous or missing that I must clarify with the process owner. Do not guess these.
Notes:
[paste notes here]
The open questions section is the most valuable part. It becomes my agenda for the follow-up call with the process owner.
3. Generate the TO-BE process and the document sections
Once the AS-IS steps are confirmed, I ask Claude for:
- The TO-BE process: which steps the bot performs and which stay manual
- The PDD sections, one at a time: scope, prerequisites, detailed steps, exception handling, and logging/reporting requirements
Generating section by section keeps each output focused and easy to review.
4. Create the diagram
I ask Claude for a Mermaid flowchart of the TO-BE process, then tidy it up in Visio or draw.io. A simple version looks like this:
flowchart TD
A[Bot starts] --> B[Read input file]
B --> C{Valid record?}
C -- Yes --> D[Process in target system]
C -- No --> E[Log business exception]
D --> F[Update status report]
E --> F
F --> G[Send summary email]What I've learned
- Separate "extract" from "write". Two focused prompts give far more accurate results than one big one.
- Tell it not to guess. Asking Claude to list missing details as questions prevents confident-sounding gaps in the spec.
- Keep sensitive data out. Use sanitised samples, and follow your organisation's AI usage policy.
- It's a first draft, not the final document. Every step still gets reviewed with the process owner before sign-off.
Your turn
How are you using Claude for requirements or solution-design work? I'd love to hear which prompts have worked well for you in the comments.
來源:DEV Community · dev.to