Mount Royal viewpoint by day
Montreal, QC
All projects

From Word and Excel to JSON: 3 hours saved every week

On this page

Every new customer arrived with their questionnaire in a Word or Excel file, and someone had to copy it into the platform, one question at a time. I built an internal tool that does this work for them: 3 hours saved every week for the customer success team.

Context

I was working for a startup based in France, that builds a workplace well-being survey platform. Each customer could have their own questionnaires, which they wrote on their side, in their own Word or Excel documents, before sending them to the customer success team.

The problem

For every document received, the questionnaire had to be rebuilt in the application's editor: copy a question, paste it, pick its type, copy the answer choices... then start again with the next one.

A repetitive, time-consuming task: up to one hour per questionnaire, time the team would rather have spent with its customers.

The solution

I built an internal tool, integrated into the back office, that turns a customer's document into a ready-to-use questionnaire. It works in three steps.

1. Extract the content

  • Word files are read with Mammoth, which extracts the text and its structure.
  • Excel files are read with SheetJS, sheet by sheet, cell by cell.

2. Structure it with an LLM

This is the key step. Documents written by customers themselves follow no common format: numbering, tables and answer scales vary from one file to the next. Rather than writing a rule for every case, I handed the structuring over to the OpenAI API, guided by custom prompts that describe the JSON format the editor expects.

{
  "type": "scale",
  "label": "I have the tools I need to do my job well.",
  "min": 1,
  "max": 5
}

Simplified example, for illustration purposes.

3. Import into the back office

The resulting JSON is directly compatible with the questionnaire editor. The tool is part of the back office: the team uses it on its own, quickly and easily.

Results

  • 3 hours saved every week for the customer success team.
  • Up to an hour of copy-pasting per questionnaire, replaced by an import.
  • A team refocused on strategic customer support rather than data entry.

Takeaways

  • The best automations target the tasks nobody likes doing. The gain is counted in hours, and the team feels it right away.
  • An LLM is great at structuring heterogeneous content, as long as it is held to a strict output format.
  • An internal tool deserves the same care as a customer-facing feature: if it is a pain to use, the team goes back to copy-pasting.