PROJECT

AI automation for connected business workflows

Custom software development, AI agent design, Workflow automation, API and webhook integration, CRM integration, Document and knowledge processing, Human approval workflows, Workflow documentation

  • Industry: Business services
  • Latvia Location: Latvia
  • Delivery time: 16 weeks
  • Technologies: JavaScript / TypeScript (Node.js), Python
4+ months

This client spends time connecting AI agents, client data, APIs, and business software for production workflows. The solution is AI automation software for the agency: it takes in business data, messages, and files. It gives back workflow decisions, structured results, and completed tasks for the agency’s business clients, helping reduce manual work.

Summary

Problem

The agency spends time connecting AI agents, business systems, data, and manual approval steps across separate tools.

Solution

The solution became a modular platform for creating agents, connecting services, processing information, and monitoring multi-step processes.

Result

The platform is designed to reduce manual work and the need to repeat tasks, from receiving business data to completing a task.

Client story

The client is an AI automation agency from Latvia. It provides business services: it creates production processes for business clients and connects their CRM, sales, and support activities.

The agency works with APIs, webhooks, databases, and business applications. Manual actions between systems take time, especially when a process requires decisions, write-enabled updates, or human verification.

The goal was to create AI agents and multi-step processes that perform business tasks, use external tools, make decisions, and reduce human involvement. The agency also needed grounded responses based on client knowledge and connected business data.

The solution was divided into separate modules. Process design, execution monitoring, and AI verification each received a clearly defined place.

Approval points, error handling, data mapping, and handover materials kept every client process transparent.

The client asked for

  1. Building AI agents and processes for business tasks and decisions
  2. Connecting APIs, webhooks, CRM, databases, and business applications
  3. Processing documents, messages, files, and knowledge bases
  4. Using LLMs, RAG, vector databases, and knowledge to obtain grounded results

Why off-the-shelf software did not fit

Off-the-shelf products cover parts of the task: agent integration tools connect AI with business software, while enterprise automation platforms support legacy applications. Other products focus on marketing agency management or specialized marketplaces. The required solution combines business systems, AI agents, multi-step decisions, monitoring, human verification, and handover documentation.

Project overview

The solution was designed around a visual process builder where the agency creates AI agents, adds business rules, and connects tools. API inputs and approval points remain visible in the same view.

A monitoring module was provided to handle running processes, execution history, process statuses, and alerts. Logs and recovery tools give the agency one place to analyze errors.

The AI assistant connects user queries with retrieved knowledge and generates structured results. Sensitive or uncertain cases are sent to a manual review queue, while approved actions continue in connected systems.

Special attention was given to integrations. APIs, webhooks, and CRM records are mapped to process stages.

Database records and JSON fields support data exchange, while a preview of write operations is available before information is sent back to the business platform.

The solution also includes process diagrams and architecture descriptions. Configuration, maintenance, troubleshooting, and prompt materials help the agency operate and hand over each process.

Key features delivered

  • Visual AI process builder
  • AI agent configuration
  • Tool and API connections
  • Decision stages and human approvals
  • Process execution history
  • Error alerts and recovery tools
  • AI assistant with retrieved knowledge
  • CRM and database data mapping
  • Write operation preview
  • Process documentation and solution handover

Can be added

+ Customer chatbots + Voice agents + Message automation + Lead qualification processes + Meeting booking + Outreach and follow-up automation + Additional client process modules

Who else can use this solution

These businesses have a similar task, and the same solution can be adapted to connect their data, tools, AI agents, and operational steps.

A business services company

Task It connects sales, support, finance, HR, or project management tasks across separate platforms.
How the solution helps The solution joins those systems into monitored workflows with AI decisions, structured results, and approval steps.

An organization building an AI-powered SaaS platform

Task It needs agents, business data, APIs, and knowledge sources to work together inside its product.
How the solution helps The solution provides workflow design, integrations, grounded responses, execution monitoring, and documentation.

A business automating customer communication

Task It processes customer messages, lead information, scheduling requests, and follow-up actions.
How the solution helps The solution connects communication data to AI assistance, CRM updates, routing, and human review.

Technology stack

JavaScript / TypeScript (Node.js)

Application and integrations

This language supports the workflow interface, agent connections, webhooks, and API integrations.

Python

Agents and data processing

This language supports AI workflow logic, data handling, CRM connections, and documentation tools.

PHP

Business system connectors

This language supports selected CRM, webhook, Google, and workflow service connections.

@graph8/sdk

CRM and sales actions

This SDK connects CRM, enrichment, sequences, campaigns, and B2B sales tracking.

dynamics365crm-python

Dynamics CRM integration

This Python API wrapper exchanges records with Dynamics 365 CRM.

zohocrmsdk8-0

Zoho CRM integration

This SDK connects workflow steps with Zoho CRM version 8 APIs.

svix

Webhook delivery

This library sends and verifies webhook events between connected services.

django-anymail

Email and webhooks

This library connects email backends and webhook events from supported email services.

n8nc

N8n workflow control

This command-line tool synchronizes and manages n8n workflows.

JSON

Structured data exchange

JSON carries mapped fields, workflow inputs, outputs, and system responses.

Integrations

CRM systems

The solution reads CRM records and sends write-enabled updates through connected CRM APIs.

Webhooks

Webhooks bring events and workflow inputs into the automation platform and return workflow events to other services.

Databases

Database records provide workflow data and receive structured outputs where configured.

Google Drive and Google Sheets

The solution exchanges documents and spreadsheet data with Google Workspace services.

Email services

Email connections bring messages and attachments into workflows.

n8n

The solution triggers, synchronizes, and tracks n8n workflows through API and webhook connections.

Result

Design processes with agents and approvals

The process builder is a workflow automation tool, giving the agency one place to define AI agents and their multi-step actions.

The workspace also allows processes to be edited as the client’s needs change, while agent configuration keeps task instructions and process actions clear.

How it works

  1. The process area shows AI agent stages, actions, decisions, and approval stages.
  2. Agent configuration contains task instructions and business rules.
  3. Tools and API settings connect inputs with process actions.
  • Create and edit AI automation processes
  • Add approval stages for uncertain or sensitive decisions
Tip: Approval points leave selected decisions to the client’s team when automation alone is not appropriate.
Process builder and agent settings

Process builder and agent settings

Features on this screen
AI automation process design AI agent creation Backend API integration Process editing

Detect errors before they interrupt work

The monitoring screen gives the agency a clear view of running processes, completed tasks, errors, and alerts. Execution history and logs show the information needed to investigate a problem.

Error details and recovery tools give the agency one place to analyze process problems.

How it works

  1. The execution list shows process inputs, statuses, completed tasks, and decisions.
  2. The execution log shows logs, error reports, and failure alerts.
  3. The recovery tool allows failed executions to be retried or recovered.
  • Review execution history
  • Check error details and alerts
  • Track process decisions
Note: The monitor stores error information alongside the process execution that generated it.
Process execution monitor

Process execution monitor

Features on this screen
Process monitoring for errors

Verify grounded responses and sensitive actions

The AI assistant connects retrieved knowledge with user queries and returns answers or structured results. The review queue separates cases requiring human decisions from routine process results.

This gives the agency a controlled way to handle support tasks, client knowledge, and actions requiring approval.

How it works

  1. The conversation panel shows user queries and AI responses.
  2. The retrieved knowledge area shows the knowledge-base content used in the response.
  3. The review queue shows approval requests with approve or reject buttons.
  • Preview structured results
  • Route selected cases for manual review
AI assistant and review queue

AI assistant and review queue

Features on this screen
AI integration Support task automation

Map data between business systems

The integration screen connects APIs, webhooks, CRM, and databases to process stages. The mapping table makes it easier to understand input fields and process outputs before updating the connected system.

The screen also shows data flowing between process stages and connected systems.

How it works

  1. The connected systems list shows API, webhook, CRM, and database connections.
  2. The data mapping table assigns JSON fields, CRM records, and database records to process stages.
  3. The integration screen shows process outputs and connected-system data.
  • Map incoming business data
  • Verify process outputs
Integration and data mapping

Integration and data mapping

Features on this screen
Backend API integration Business system integration

Keep operations transparent after handover

The documentation screen turns a completed process into an operating guide. It combines a process diagram, architecture description, and configuration guide.

Maintenance instructions, troubleshooting procedures, and a library of prompts and agent instructions help the agency team maintain the logic of every process.

How it works

  1. The process diagram shows process stages and connected systems.
  2. The architecture description and configuration guide show configuration values and operating instructions.
  3. Maintenance and troubleshooting instructions show contingency procedures and agent instructions.
  • Document process architecture
  • Keep prompts and agent instructions in one place
Process documentation and solution handover

Process documentation and solution handover

Features on this screen
Process documentation and training

What the solution gives

With this solution, the agency can:

  • Build AI agents for specific business tasks
  • Automate multistep workflows across connected systems
  • Process documents, messages, files, and knowledge-base content
  • Route sensitive decisions to human approval
  • Monitor workflow failures, alerts, logs, and recovery actions
  • Hand over documented workflows with setup and troubleshooting guidance

Could ready-made systems do the job?

Before the design, the task was compared with ready-made products by their own descriptions.

What the client needs Agent integration tools AI agent integration tools Enterprise automation platforms StitchOps Agency operating systems Markezy Custom solution
Build agents and multistep workflows partly —
Connect APIs, CRMs, and databases —
Process files and knowledge partly partly —
Ground results with client knowledge partly — —
Fits the client's own rules: stages, roles, reports partly partly —
All steps in one place — — —
No manual steps between programs — — —

By the public descriptions of the products and their category.

Ready-made products cover important parts of agent integration, enterprise automation, and agency operations. A ready-made product is enough when one of those parts is all that the business needs.

This client needed its own software because the required agents, connected systems, grounded knowledge, monitoring, human review, documentation, and client-specific rules were not covered together in one place.

In the end

In the end, the solution was made to take manual work out of the path from a client request and business data to a documented, monitored workflow.

FAQ

Thinking about building a similar system? Read the answers below to see how AI agents, integrations, data processing, and human review fit into one automation platform.