Skip to content

Automate your Proposals and Offers Part 1

Do you write proposals regularly as a consultant or a coach that always follow the same structure but differ in a few details — customer name, number of sessions, hourly rate, travel costs? Then you know the problem: every time, you copy the last proposal, hunt down every spot that needs to change, and hope you didn't miss anything.

In this two-part article, I'll show you how to use clearxx Assistant (your Chat tool) and the clearxx Agent & Build Workspace (including Cline) to build your own small automation tool — with no programming knowledge required. You'll build the solution on the clearxx platform first. Then you'll set it up locally on your computer, because that makes it much faster and easier to use. By the end, you'll have:

  • a Word template for your proposals,
  • an Excel file where you just enter the customer data,
  • and a script that runs locally on your computer with a double-click and produces a finished Word document (the finished proposal) in seconds, including automatic calculation of the total amount, VAT, and travel costs.

Once you understand all of it, you can adjust your templates at any time, or build new solutions based on this same approach.

Part 1 (this article) describes how to build the whole thing once with clearxx Assistant and Cline. Part 2 is the finished instruction manual for day-to-day use, locally on your computer.

Step 1: Create the Word Template

You start with your existing proposal template — the Word document you already use today. You need to do this preparatory work yourself and manually, since you know your proposals best. Mentally separate (or mark directly with color) two kinds of content:

  • Fixed: text that stays the same in every proposal, e.g. your confidentiality clause or payment terms. Leave this in black.
  • Variable: spots that change from proposal to proposal, e.g. the customer's name, the number of sessions, or the hourly rate. Mark these in blue.

This distinction is the foundation for everything that follows.

If there are fixed and variable fields in your template that share the same field name, you need to explain that to clearxx Assistant so the automation script can account for such cases later. The Assistant should actually recognize this itself and flag it to you. Of course, it's best if all field names are unique.

Step 2: Finalize the Template with clearxx Assistant

Once you have a first draft, discuss it with clearxx Assistant in the chat. First explain what you want to do. Then show it your template and let it help you with:

  • Unique variable names for each variable spot (e.g. Customer_City instead of just "City" — this avoids later mix-ups when a word appears more than once in the document).
  • The calculation rules: How is the total price calculated? How is VAT applied? How do you handle travel costs — flat rate or by the hour? What happens if only a single session is agreed instead of several?

clearxx Assistant compiles the result for you into a clean, finalized Word template — with clearly marked placeholders instead of sample text.

screenshot

Step 3: Plan the Folder Structure and Workflow

Before anything gets built, it's worth briefly discussing with clearxx Assistant how the solution will be built (including with Cline) and how it should later be used: Where do new proposals go? What is the file called that you fill in for each new customer? What happens when you run a script?

clearxx Assistant will suggest a simple workflow for this — usually two local folders on your computer: one for your template and scripts (which you never touch), and one for your actual proposals (where you create a separate subfolder for each customer and enter the input for the variable parts). This workflow ends up being exactly what's described in Part 2.

Step 4: Have the Excel Input Template Created

Next, ask clearxx Assistant to create a matching Excel file based on the finished Word template. In this Excel file, you'll later enter the actual values for each new proposal — one row per variable, color-coded to show whether a field is:

  • Required (must be filled in fresh every time),
  • semi-fixed (has a default value you rarely change), or
  • optional (can be left empty).

Important: the field names in the Excel file must match the variable names from the Word template exactly. clearxx Assistant handles this for you automatically if you have it create both files one after the other.

screenshot

Step 5: Preparing for Cline

Now comes the part that turns the Word and Excel templates into a working tool: a small Python script that automatically replaces the placeholders in the Word template with the values from the Excel file and calculates the totals along the way.

You don't let clearxx Assistant write this script in the chat — instead, you have Cline write it, the AI coding agent in your clearxx Agent & Build Workspace. Cline can carry out larger tasks independently and produce several files at once.

Ask clearxx Assistant which files Cline should build for you. In this case, the Assistant should suggest these things:

  • the actual Python script,
  • a requirements.txt — a small list of the building blocks Python needs in addition, to work with Word and Excel files, but also any extra functionality you'll later need to install locally on your computer so you can do everything there (more on this in Part 2),
  • and a start script to double-click (start.bat for Windows, start_mac.command for Mac), so you never need to open a command line later. Tell clearxx Assistant whether you're working on Windows or Mac.

clearxx Assistant will explain exactly what each of these files is for — you don't need to memorize this, but it helps to understand why they're needed.

Step 6: Set Up the Folder Structure in the clearxx Agent & Build Workspace

For Cline to work, it needs access to your templates. In the clearxx Agent & Build Workspace, set up a matching folder structure in the Explorer area and upload your Word and Excel templates there. The clearxx Assistant should tell you exactly what this structure needs to look like so Cline can find everything it needs.

Step 7: Give Cline the Task

Now ask clearxx Assistant to give you a fully worded prompt (a work instruction) for Cline. Copy this prompt into the Cline chat and start the task. Cline reads your templates, generates the Python script and the remaining files, and places them in the correct folder — this target folder also needs to be stated in the prompt so Cline knows where to put everything.

Step 8: Local Setup on Your Computer

Once all the files are ready, download them from the clearxx Agent & Build Workspace and set up the same folder structure on your own computer that you planned with clearxx Assistant in Step 3. clearxx Assistant will guide you through this step by step, so every file ends up in the right place.

Step 9: The First Test

Finally, fill in the Excel file once with test data and start your new script with a double-click. If a finished, correctly filled-in Word document appears in the right folder — congratulations, your automation works.

What Comes Next

That completes the one-time setup. For day-to-day use afterward — what to name which file, how to enter travel costs, what to check before sending a proposal — you'll find the complete instructions in Automate Your Proposal and Offers Part 2.