AI agents · Custom software · Riga

We put AI agents to work across your whole company

We connect agents to your systems and give each one duties and permissions. A person approves anything that cannot be undone. Where the software an agent needs does not exist, we write it.

The first conversation is free of charge.

Write or call:info@hagroup.lvSend a WhatsApp message (opens in a new tab)+371 26 259 293

1. AI agents Your staff already use AI. The company does not yet.

Each employee does it on their own: often on a personal account and without shared rules. In a company of twenty people, that means twenty experiments whose results nobody measures.

Table 1

What you can checkEach on their ownAcross the whole company
What data leaves the companyNobody knows.Set for each role and recorded in the log.
Where the answer comes fromFrom whatever someone pasted in.From your systems, with the source given.
How the work is doneEveryone starts from scratch.By a written procedure, the same way every time.
Where a good method is keptIn one person’s head.It becomes a skill the whole department uses.
Who approvesNobody.A person whose name is in the log.
What you gainA feeling.A figure, before and after.
Table 1 Six differences a manager can check. A skill is a procedure for doing a job, written down once.

Fig. 1

An agent at work

Example

Choose the department where your hours go. When the agent stops, decide what to do next.

Departments in this figure: Sales · Customer service · Accounting · Warehouse · Management

Sales · Quote agent

Price quote from an email request

When it starts: A customer’s price request arrives in the sales inbox.

The customer asks for a bigger discount than the contract allows, and the sales manager decides.

  1. 08:12 Reads the price request in the sales inbox SIA Paraugs: 30 canisters of soap, 40 boxes of towels; asks for a 12% discount. Email · reads
  2. 08:12 Finds the customer card This year: €38,400 excl. VAT, no overdue invoices; order No. 4471 is waiting for dispensers. CRM · reads
  3. 08:13 Finds the products the customer usually buys, and their stock levels In stock: 220 canisters of 5-litre liquid soap and 90 boxes of paper towels. Warehouse system · reads
  4. 08:13 Opens the price list and the customer’s contract Soap €10.90, towels €27.90; the contract gives an 8% discount, delivery included. Documents · reads
  5. 08:14 Drafts a quote in the customer card P-⁠0412: €1,327.70 excl. VAT, 8% discount, valid for 14 days. CRM · drafts
  6. 08:14 Drafts a reply in the same thread Quote attached, with the 8% discount the contract sets; no promise of 12%. Email · drafts
  7. 08:15 Stops and hands the decision to the sales manager “I will not send this without approval. I did not find 12% in the contract. Handing over to a person.” A good agent knows when to stop. CRM

Awaiting approval

The customer is asking for a 12% discount; the contract says 8%, and their order No. 4471 is still waiting for dispensers. Send the quote at 8%?

Approved by: Sales manager

In this example, you decide.

Draft

Quote P-⁠0412 · SIA Paraugs

  • 30 canisters of 5-litre liquid soap at €10.03 (list price €10.90)
  • 40 boxes of paper towels at €25.67 (list price €27.90)
  • Contract terms: 8% discount, delivery included in the price; goods in stock

Total€1,327.70 excl. VAT

After approval, the agent:

  • sends the quote to the customer in the same thread
  • records a note in the customer card P-⁠0412 sent at 8%; the customer asked for 12%.

Here the work waits for a human decision. Below, you can see what happens after approval.

  1. 08:24 Sent back by the sales manager “Give 10% if they order by Friday.” Person
  2. 08:25 Recalculates the quote with a 10% discount and corrects the draft reply P-⁠0412: €1,298.70 excl. VAT; the reply offers 10% on orders placed by 27/11. CRM · drafts
  3. Awaiting approval again CRM
  1. 08:24 Approved by the sales manager Person
  2. 08:24 Sends the quote to the customer in the same thread Email · writes
  3. 08:24 Records a note in the customer card P-⁠0412 sent at 8%; the customer asked for 12%. CRM · writes
  4. 08:25 Drafts a reminder for 26/11 in case the customer has not replied by then The draft will wait for the sales manager’s approval. Email · drafts

The customer gets the quote the same morning, and the customer card shows what was offered and at what price.

Nothing has been sent to the customer yet. The corrected quote is waiting for the sales manager’s approval.

10 steps · 4 systems · 1 human decision

8 steps · 4 systems · 1 human decision

What we measure

  • How much time passes between a request and the quote being sent.
  • How many quotes the manager approves without changes.

The agent may not

  • Send a quote or a reminder without the sales manager’s approval.
  • Promise a discount or payment terms that are not in the customer’s contract. Only the sales manager grants those.
  • Promise a delivery date that is not in the contract or the warehouse system.
  • Change prices in the price list or in a customer’s contract.
  • Delete requests, quotes or customer cards.

Customer service · Customer email agent

Reply to “Where is my order?”

When it starts: An email from a customer about an order arrives in the customer service inbox.

An order is late, and the customer service manager approves the new delivery dates.

  1. 10:41 Reads the customer’s email SIA Paraugs asks where order No. 4471 is; it was promised by 17/11. Email · reads
  2. 10:41 Finds the order in the customer card 40 canisters of soap, 30 boxes of towels, 12 dispensers; delivery to Ogre. CRM · reads
  3. 10:42 Checks the order in the warehouse system The soap and towels are ready; the dispensers are not in stock, so the order is waiting. Warehouse system · reads
  4. 10:42 Finds out when the dispensers will arrive Dispensers confirmed for 25/11; delivery runs to Ogre on 20/11 and 26/11. Warehouse system · reads
  5. 10:43 Checks the delivery terms If part of an order is late because of us, the customer does not pay for the second delivery. Documents · reads
  6. 10:43 Drafts a reply Soap and towels on 20/11, dispensers on 26/11; apologises for the delay. Email · drafts
  7. 10:44 Stops and hands the draft to the customer service manager “I may not promise a new date after a delay. Handing over to a person.” A good agent knows when to stop. Email

Awaiting approval

The order is late because of the dispensers. Send part of it tomorrow and the dispensers on 26 November?

Approved by: Customer service manager

In this example, you decide.

Draft

Reply · SIA Paraugs · No. 4471

  • We apologise: we held your order back because of the dispensers and did not tell you in time.
  • We will deliver the soap and towels on Friday, 20/11.
  • We expect the dispensers on 25/11 and will deliver them on 26/11. You will not have to pay for this delivery either.

After approval, the agent:

  • creates a task for the warehouse manager in the CRM system Split order No. 4471 and send out the soap and towels on 20/11.
  • sends the reply to the customer in the same thread
  • records a note in the customer card Part on 20/11, dispensers on 26/11; no invoice for the second delivery.

Here the work waits for a human decision. Below, you can see what happens after approval.

  1. 10:52 Sent back by the customer service manager “I will call the customer. Send nothing until then.” Person
  2. 10:53 Holds back the draft reply Sends nothing until the manager has called; the note stays in the activity log. Email · drafts
  3. Awaiting the manager’s call Email
  1. 10:52 Approved by the customer service manager Person
  2. 10:52 Creates a task for the warehouse manager in the CRM system Split order No. 4471 and send out the soap and towels on 20/11. CRM · writes
  3. 10:53 Sends the reply to the customer in the same thread Email · writes
  4. 10:53 Records a note in the customer card Part on 20/11, dispensers on 26/11; no invoice for the second delivery. CRM · writes

The customer knows what arrives on Friday and what on 26 November. The warehouse manager has a task to send out the available part on Friday.

Nothing has been sent to the customer, and no new date has been promised. The case is waiting for the manager’s call.

10 steps · 4 systems · 1 human decision

8 steps · 4 systems · 1 human decision

What we measure

  • How long a customer waits for a reply.
  • How many replies the employee approves without changes.

The agent may not

  • Send a reply to a customer without approval. A person always sends the reply to a complaint.
  • Promise compensation, a refund or a new date after a delay. The customer service manager decides that.
  • Give a delivery date that is not in the warehouse system.
  • Change an order: its goods, quantities or delivery address.
  • Delete customer emails or complaints.

Accounting · Supplier invoice agent

Supplier invoice before posting

When it starts: A new supplier invoice arrives in the accounting system.

An invoice does not match the goods received, and the chief accountant decides what to do about it.

  1. 09:05 Reads the invoice and checks that it has not been received before AS Šablons, PM-⁠20441: €2,775.74 incl. VAT; not received before. Accounting system · reads
  2. 09:05 Compares the details with the supplier card The VAT number and the bank account match the supplier card. Accounting system · reads
  3. 09:06 Finds the purchase order IP-⁠0388 of 03/11: 120 canisters of soap, 80 boxes of towels; the prices match. Warehouse system · reads
  4. 09:06 Compares the invoice with the delivery note and the goods received Towels match; soap: 116 of 120 accepted, 4 damaged, damage report drawn up. Warehouse system · reads
  5. 09:07 Drafts the ledger entry Ledger accounts from the product and supplier cards, VAT 21%, payment on hold. Accounting system · drafts
  6. 09:07 Drafts an email to the supplier Asks for a credit note for 4 canisters; damage report attached. Email · drafts
  7. 09:08 Stops and hands the invoice to the chief accountant “I will not post this without approval, and the invoice does not match. Handing over to a person.” A good agent knows when to stop. Accounting system

Awaiting approval

The invoice is for 120 canisters of soap; 116 were accepted. Post it with payment on hold and ask for a credit note?

Approved by: Chief accountant

In this example, you decide.

Draft

Invoice PM-⁠20441 · AS Šablons

  • Invoiced: 120 canisters of soap; 116 accepted, 4 damaged: damage report signed by the driver
  • Post with payment on hold until the credit note arrives; due date 17/12
  • Ask for a credit note for 4 canisters: €33.15 incl. VAT

Total€2,775.74 incl. VAT, €2,742.59 to pay

After approval, the agent:

  • posts the invoice with payment on hold until the credit note arrives
  • sends the supplier the request for a credit note Damage report attached.

Here the work waits for a human decision. Below, you can see what happens after approval.

  1. 09:31 Sent back by the chief accountant “Do not ask for a credit note: the supplier is bringing 4 new canisters on 25/11.” Person
  2. 09:32 Corrects the draft ledger entry Payment on hold until the warehouse accepts the 4 new canisters. Accounting system · drafts
  3. Awaiting approval again Accounting system
  1. 09:31 Approved by the chief accountant Person
  2. 09:31 Posts the invoice with payment on hold until the credit note arrives Accounting system · writes
  3. 09:32 Sends the supplier the request for a credit note Damage report attached. Email · writes
  4. 09:32 Notifies the chief accountant if there is no credit note by 27/11 Accounting system · reads

The invoice is posted. Once the credit note arrives, €2,742.59 goes on the payment list, due on 17 December.

Nothing has been sent to the supplier. The corrected ledger entry is waiting for the chief accountant’s approval.

10 steps · 3 systems · 1 human decision

8 steps · 3 systems · 1 human decision

What we measure

  • How many minutes one invoice takes.
  • How many discrepancies the agent spots and how many it misses.

The agent may not

  • Pay an invoice, prepare a payment or sign in to online banking.
  • Post an invoice or send an email to a supplier without an accountant’s approval.
  • Promise a supplier a payment date.
  • Delete invoices, ledger entries or supplier cards.
  • Change a supplier’s bank account or other details.

Warehouse · Stock agent

Order to a supplier before stock runs out

When it starts: Every working day at 6:30, the agent recalculates the stock levels.

How much to order depends on a customer’s answer, and the warehouse manager decides.

  1. 06:30 Recalculates the stock levels and the rate of sales 5-litre liquid soap: 200 canisters in stock, none on order; on average 75 a week. Warehouse system · reads
  2. 06:30 Checks the delivery time and the minimum stock level AS Šablons delivers in 10 working days; minimum stock level 60 canisters. Warehouse system · reads
  3. 06:31 Finds the products to order today Soap left by the delivery date: 50 canisters, minimum 60; plus 2 other products. Warehouse system · reads
  4. 06:31 Checks the quotes awaiting a customer’s answer SIA Paraugs, P-⁠0412 of 23/11: 30 canisters of soap, 40 boxes of towels. CRM · reads
  5. 06:32 Drafts a purchase order IP-⁠0419: 3 lines at AS Šablons prices, €3,042.40 excl. VAT. Warehouse system · drafts
  6. 06:32 Drafts a covering email Order attached, with a request to confirm the quantities, prices and date. Email · drafts
  7. 06:33 Stops and hands the order to the warehouse manager “I will not send this without approval, and P-⁠0412 has not been accepted. Handing over to a person.” A good agent knows when to stop. Warehouse system

Awaiting approval

At the current rate of sales, 240 canisters of soap will last three weeks after the delivery. If SIA Paraugs accepts P-⁠0412, another 30 canisters of soap and 40 boxes of towels will be needed. Order without P-⁠0412?

Approved by: Warehouse manager

In this example, you decide.

Draft

Purchase order IP-⁠0419 · AS Šablons · delivery 08/12

  • 240 canisters of 5-litre liquid soap at €6.85
  • 60 boxes of paper towels at €18.40
  • 40 packs of toilet paper at €7.36

Total€3,042.40 excl. VAT

After approval, the agent:

  • records purchase order IP-⁠0419 in the warehouse system
  • sends purchase order IP-⁠0419 to the supplier

Here the work waits for a human decision. Below, you can see what happens after approval.

  1. 07:52 Sent back by the warehouse manager “Add P-⁠0412: sales says the customer will accept the quote.” Person
  2. 07:53 Increases the soap to 270 canisters and the towels to 100 boxes Draft IP-⁠0419: €3,983.90 excl. VAT. Warehouse system · drafts
  3. Awaiting approval again Warehouse system
  1. 07:52 Approved by the warehouse manager Person
  2. 07:52 Records purchase order IP-⁠0419 in the warehouse system Warehouse system · writes
  3. 07:52 Sends purchase order IP-⁠0419 to the supplier Email · writes
  4. 07:53 Drafts the expected delivery record in the warehouse system once the supplier confirms the order The draft will wait for the warehouse manager’s approval. Warehouse system · drafts
  5. 07:53 Notifies the warehouse manager if the supplier has not confirmed the order by 25/11, or changes it Email · reads

The order is with the supplier. Sales will see the confirmed delivery date in the warehouse system.

Nothing has been sent to the supplier. The corrected order is waiting for the warehouse manager’s approval.

11 steps · 3 systems · 1 human decision

8 steps · 3 systems · 1 human decision

What we measure

  • How many times a month a product runs out before the next delivery arrives.
  • How much money is tied up in products that nobody has bought for three months.

The agent may not

  • Send an order to a supplier without the warehouse manager’s approval.
  • Pay a supplier’s invoice or an advance.
  • Delete orders, write off goods, or correct stock levels and goods received notes.
  • Promise a supplier volumes, or agree to new prices and deadlines.
  • Change minimum stock levels or delivery times.

Management · Report agent

Monday report for the management meeting

When it starts: Every Monday at 7:30, an hour and a half before the management meeting.

Cash may fall below the threshold at the end of the week, and the managing director decides what to do.

  1. 07:30 Reads last week’s sales and the customers’ late payments Sales of €212,400 excl. VAT; 3 customers are behind with payments totalling €23,940. Accounting system · reads
  2. 07:31 Reads the cash balance in the bank accounts On Monday morning, the bank accounts hold €186,300. Online banking · reads
  3. 07:31 Checks what is due to be paid and received this week By 27/11: €239,200 to pay, taxes included, and €104,600 to receive. Accounting system · reads
  4. 07:32 Calculates how much cash will be left at the end of the week If the 3 late payers do not pay, €51,700 will be left on 27/11: below the €60,000 threshold. Accounting system · reads
  5. 07:32 Finds products below their minimum stock level 4 products below the minimum, all already on order; no dispensers until 25/11. Warehouse system · reads
  6. 07:33 Drafts the report and highlights the deviations A source beside every figure; sales for the week 4% below plan. Email · drafts
  7. 07:34 Stops and hands the deviations to the managing director “The managing director decides what to do about deviations. Handing over to a person.” A good agent knows when to stop. Email

Awaiting approval

If the 3 late payers do not pay, the accounts will hold €51,700 on 27 November, below the €60,000 threshold. Say in the report that accounting will call the late payers today?

Approved by: Managing director

In this example, you decide.

Draft

Report for the management meeting · 23/11

  • Sales: €212,400 excl. VAT, 4% below plan
  • Cash: €51,700 left on 27/11 if 3 late payers do not pay €23,940
  • Proposal: accounting calls the 3 late payers today

After approval, the agent:

  • sends the report to the 5 recipients on the management list

Here the work waits for a human decision. Below, you can see what happens after approval.

  1. 07:46 Sent back by the managing director “The sales manager knows the late payers and will call them.” Person
  2. 07:47 Corrects the proposal in the draft report The sales manager calls the late payers today. Email · drafts
  3. Awaiting approval again Email
  1. 07:46 Approved by the managing director Person
  2. 07:46 Sends the report to the 5 recipients on the management list Email · writes
  3. 07:47 Notifies the managing director if the late payers have not paid by 25/11 Accounting system · reads

The report is in management’s inboxes before 8:00, and the chief accountant knows who to call today. The meeting starts with decisions.

The report has not been sent yet. The corrected report is waiting for the managing director’s approval.

9 steps · 4 systems · 1 human decision

8 steps · 4 systems · 1 human decision

What we measure

  • How many hours a week the report takes.
  • How many figures in the report need correcting.

The agent may not

  • Send the report, or any part of it, outside the management list. It cannot be sent to any other address.
  • Pay invoices, or prepare or approve payments.
  • Change or delete data in the accounting system, online banking or the warehouse system.
  • Promise a deadline on behalf of management, or give an employee a task. Management decides that.
  • See payroll data, or include other personal data in the report.

Fig. 1 One job in one department, step by step, up to a human decision. An invented company: a wholesaler of cleaning and hygiene products with 60 employees. The customers, suppliers and figures are invented too.

The agent prepares, a person decides

An AI agent makes mistakes. We plan for it.

The agent has no signing authority

Four verbs the agent does not use alone

Send
anything that leaves the company.
Pay
payments and ledger entries.
Delete
data, records and documents.
Promise
prices, discounts, deadlines and contracts.

The agent only prepares these four actions. They are carried out by a person, or by the agent after human approval.

Hand the routine work to AI agents. Keep the decisions for yourself.

Fig. 2

From the first conversation to day-⁠to-⁠day running

Start with one job. An AI strategy can wait.

  1. 01. First conversation

    You receive: a straight answer on whether your company has a job worth starting with.

  2. 02. Discovery

    You receive: two lists of jobs (where we recommend an agent and where we do not) and a proposal for one pilot.

  3. 03. Foundations

    You receive: a shared AI workspace, access rights for each role, an activity log, a spending cap and a baseline.

  4. 04. First agent: probation period

    You receive: an agent doing one routine task in one department, its job description and a second measurement.

  5. 05. Decision based on the figures

    You receive: a short report on the pilot and our recommendation: carry on, change or stop.

  6. 06. Rollout, department by department

    You receive: for each department, written procedures, connected systems, and the connectors and tools that were missing.

  7. 07. Day-to-day running

    You receive: monitoring, a spending cap and a regular report.

After each phase, you decide whether we go on. You keep what has been done.

We do not add the guardrails at the end. We start with them.

More on each phase
Fig. 2 The phases, and what you receive from each one.

2. Custom software What you cannot buy ready-made, we build

An AI agent can only do what it can reach. If the warehouse system has no API, the agent cannot see the warehouse until someone writes one. We do.

We write systems, integrations, internal tools, portals and apps. We also write what agents need: connectors, API endpoints and data pipelines between systems that until now have not talked to each other.

  • Connector

    If your accounting or warehouse system has no ready-made connector, we write one. Then the agent can read that system’s data and add to it.

  • A tool for people

    A place where an employee sees what the agent has prepared, and approves or rejects it.

  • System

    When Excel spreadsheets and email are no longer enough, a portal or an app takes their place. Then the agent, too, has an orderly place to work.

Fig. 3

Warehouse system connector

Example
System
Warehouse system
The agent may
read stock levels
The agent may not
change stock levels

Request

GET /stock/soap-5l

The agent asks: how many canisters of soap are in stock?

Response

{
  "item": "soap-5l",

The product the agent is asking about.

  "on_hand": 236,

There are 236 canisters in stock.

  "reserved": 16

Of these, 16 are reserved.

}
Fig. 3 The quote agent from figure 1 asks the warehouse system this question when it checks the stock level. Of the 236 canisters, 16 are reserved, so 220 are available, as the agent’s log shows. The system, the product and the figures are invented.

We write software even if you would rather not hear about AI at all. A portal for customers, an app for staff, a system that replaces five Excel spreadsheets.

Custom software

3. Projects Do not take our word for it. See for yourself.

Anyone can check the apps and websites. Our infrastructure projects are covered by non-disclosure agreements (NDA), so we can only describe them.

You can open these yourself

We can only describe these

  • Infrastructure modernisation for an international company

    NDA

    Reusable Terraform modules and Azure DevOps pipelines. First in the United States, then in Europe: with data migration, a switchover to the new environment and only the access rights each job needs.

    4 months · United States, then Europe

    Technologies: Terraform · Azure DevOps · Key Vault

  • Moving a company’s systems to the cloud

    NDA

    We moved the client’s servers to AWS in stages. We described the network, the databases, the backups and the monitoring in Terraform code, so that the environment can be built again. We switched each system over only after checking its data, and every step had a plan for going back.

    3 months · to AWS in stages

    Technologies: Terraform · AWS · PostgreSQL · CloudWatch

All projects

Awkward questions

The questions we would ask if we were in your place.

Our staff already use ChatGPT. Why isn’t that enough?
A chatbot helps one person with one task and knows only what is pasted into it. An AI agent connected to the company’s systems finds the data it needs itself and works by your procedures. Every step it takes stays in the log.
AI makes up facts. How can you trust it with work?
It does. That is why the agent builds its answers from your systems’ data and names the source, so that a person can check them. A person approves anything that cannot be undone. For work where a mistake cannot be noticed before it has done harm, we do not recommend an agent.
Will agents replace my staff?
An agent takes over only part of the work: retyping, searching, sorting and drafting. You decide what to do with the time that is freed up. Someone still has to check the agent’s work, talk to customers and take responsibility.
Does AI know Latvian well enough?
It reads and understands it well, and writes it nearly as well: a longer text may have a clumsy sentence or a wrong word ending. That is why in the pilot we test the agent on your own emails and documents. A person reads everything that goes to a customer first.

C. Contact Start with a conversation

Bring your doubts too.

Start a conversation

The first conversation is free of charge. No slide deck. You talk, we ask the questions.

You can also email us, call us or send us a WhatsApp message.