DigiData
Guide7 min read

How to create an AI agent for your business: a step-by-step example

How to create an AI agent on your own business data: one job, only the data it needs, clear instructions and a test whose answer you already know.

Auke Westra

By Auke Westra

Founder of DigiData

How to do this with DigiData:AI agent (Digi Mates)

Short answer

You create an AI agent in seven steps: pick one job with one owner, give it only the data that job needs, write instructions with fixed definitions, test it with a question whose answer you already know, save the calculation, decide who uses it and where, and only then let it do recurring work. No programming is needed: in a platform such as DigiData you describe the agent in one sentence and check what it proposes.

What do you need to create an AI agent?

An AI agent is a language model with a goal, tools to fetch data and instructions on how to work. What that means and how it differs from a chatbot is explained in what is an AI agent. This guide is about building one.

You can have an agent programmed, build it with a no-code tool or set it up in a platform that is already connected to your software. The steps below apply to every route. The difference is how much you arrange yourself: connections, permissions, testing and upkeep.

We work through one example. A fictional consultancy of twenty people records its hours in Simplicate. The operations manager wants to know every Monday how many hours were booked on each project the week before, without making an export.

Step 1: pick one job and one owner

Don't start with "an assistant for the whole company". Pick one recurring question that takes time today, and one person who judges whether the answers are right. Write the job in one sentence:

Count the booked hours per project for the period I give, and show the hours per day and the total.

A narrow job is easier to test, and a mistake stands out sooner. Anthropic also advises starting with the simplest solution and only adding more when it falls short. Once the agent works, make a second agent for the next job.

Step 2: give it only the data the job needs

Two tables are enough for this question: the hour entries and the projects. Invoices, salaries or customer data don't belong here.

That is tidier, and it is also safer. OWASP, the application security organisation, lists excessive permissions as one of the main risks of AI applications and advises giving an agent only the tools and permissions it really needs. What an agent cannot read, it cannot misuse either. So within a table, too, choose only the columns the calculation needs.

Fewer tables also give better answers. The language model no longer has to guess which of three tables with "hours" in the name is the right one.

Step 3: write the instructions, with definitions

An agent follows what you write down, and fills in what you leave out. So write down:

  • Purpose and audience: who is it for, and what should it do? "Helps the operations manager and project leads with booked hours per project."
  • Tone: short and businesslike, with a table in every answer.
  • Definitions: what do you mean by "booked hours"? In this example: all hours registered on a project, billable or not. Invoicing is out of scope. In Simplicate, billable is a separate field, and so is whether an hour was invoiced. Mix those up and the total will be just off.
  • What it doesn't do: it doesn't answer questions about salaries or individuals.

Step 4: test with a question whose answer you already know

Start with one project and one closed week, and look up the answer in Simplicate yourself first. In our example, three hour entries were booked on project Atlas from 16 to 22 November 2026:

DateEmployeeHours
Monday 16 NovemberEmployee A12
Tuesday 17 NovemberEmployee B8
Sunday 22 NovemberEmployee A4.5
Total24.5

Fictional example.

Ask the agent: "How many hours were booked on project Atlas from 16 to 22 November 2026? Show the hours per day and the total." If it comes to 24.5 hours, with the same three entries, the basics are right. If it comes to 20 hours, check whether the Sunday is missing from the hours per day. If it comes to anything else, check the period first, then corrections to hours and the project name (are there two projects called Atlas?).

Only when this matches do you ask the question that mattered: "Which five projects had the most booked hours from 16 to 22 November?" Spot-check that answer too.

Step 5: save the calculation

An agent that works out its own calculation every time can calculate slightly differently every time. Once you have an answer that is right, save the calculation as a fixed measurement, with the period as a choice. Name that measurement in your fixed questions, and the agent calculates the same way every time, and you see below the answer which calculation it used.

Let the agent search freely while you test. After that you want a fixed calculation for the fixed questions, just as you don't retype the formula in a spreadsheet every week.

Step 6: decide who uses it and where

Choose who may use the agent. Start with the owner from step 1 and two colleagues, and widen it once the answers have been right for a few weeks.

Then decide where they reach it. An agent that lives only in a separate window gets forgotten. Put it where people already work: in Microsoft Teams, in email or in an app on their phone.

Step 7: let it do recurring work

Only now that the agent is reliable do you let it do something at a fixed time. For example: every Monday at 8:00, last week's booked hours per project, as a table in the project leads' inbox.

After four weeks, measure whether it helps. Does the Monday overview now take zero minutes instead of an hour? And does anyone read it? The AI pilot plan helps you agree on that up front.

Where it often goes wrong

  • Too many jobs in one agent. An agent for "everything about projects" can't be tested. Make three small ones instead.
  • Opening up all the data. It feels convenient, but it makes answers slower, less predictable and harder to secure.
  • No definitions. "Hours", "revenue" and "project" mean something different in every company. Write it down.
  • Testing with questions without a known answer. Then you don't know whether it is right, only that it sounds convincing.
  • Letting it act straight away. Start with reading and reporting. Sending emails or changing data comes only after reading has gone without errors for a while.

Want to see this on your own hours or figures? Request a 20-minute demo. We connect one source and build your first agent together.

Creating an AI agent in DigiData

In DigiData an agent is called a mate, and you create it without programming on the data from your connected software. This is how you go through the seven steps:

  1. Describe the job. Under mates, click New and choose Automatic. Under What should this mate do?, type the sentence from step 1 and click Generate draft. DigiData fills in the profile, the settings and the tables for you. You can change everything before you save.
  2. Check the data. The Data access tab shows which tables the mate may read. Keep it to the hours and projects from Simplicate.
  3. Complete the instructions. Identity holds the purpose, the target audience, the tone and the allowed and disallowed topics. Put your definition of booked hours in the purpose.
  4. Test. On Identity, switch on Custom queries, so the mate may search by itself while you test. Those are always read-only queries, and only on the tables you chose. Save the mate, ask the test question from step 4 in the web chat and compare the answer with Simplicate.
  5. Save it. Save the calculation that is right as a measurement on the Measurements tab: with a clear name, a start and end date as parameters and the booked hours per project as the result, so not just for Atlas. Then decide whether Custom queries stays on, or whether the mate works with its fixed measurements from now on.
  6. Choose who and where. On Access you choose which colleagues with a viewer account may use the mate. On Connections you switch on the web chat and its own email address, and connect the mate to Microsoft Teams. The mate then also appears in the Digi Mates app for iPhone and Android.
  7. Schedule the work. On Automations you schedule the Monday morning question, naming the measurement in it, with the result by email or in the app. When a way of asking works well, save the chat as a skill. You pick it in a next chat or in an automation, so the mate does it the same way.

Only an administrator can create a mate, also in the Digi Mates app. There you choose per system the recommended tables, everything or nothing. Single tables are chosen on the web.

Read more on the page about DigiData's AI agent, or see how to use the same data in ChatGPT or Claude.

Sources

Auke Westra

About Auke Westra

Founder of DigiData

Auke Westra is Founder of DigiData. He was responsible for clients' data and reporting and in 2025 began building an in-house data platform with his team. He writes about AI on business data, data definitions, Power BI and integrations.

Ready to start?

A subscription starts with 14 days free. Connect your software and ask the AI agent questions about your own figures.

Related articles