Dev.to AI 🤖 Ai 👁 0 📖 2 min read

How I Use Claude to Turn Messy Process Walkthroughs into RPA Design Documents (Prompt Included)

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 walkthro

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:

  1. The TO-BE process: which steps the bot performs and which stay manual
  2. 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.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.