Custom AI AgentsAI Agent Development

How We Build Custom AI Agents for SEA Businesses: Process, Stack, and What to Expect

By Abraham Erick Rubin, FounderUpdated 12 min read

We build custom AI agents in gated stages: discovery, prototype, production build and testing, pilot, deployment with handover, and monitoring. Each agent has one well-defined job, and each stage ends with a decision you can see and sign off. The default deployment sits in accounts you control, and the handover includes the workflows, prompts and documentation another team would need to take over.

If you want the concept first, read how an AI agent works or whether you need an agent or a chatbot. To find a suitable first project, use our guide to how to choose a first AI agent use case.

Why do we build narrow agents?

We build narrow agents because a clear job can be tested, and a vague one cannot. An agent asked to "do anything" has no completion criteria, too many tools and no meaningful test.

A lead qualification agent qualifies leads and does not also answer support tickets. A support triage agent classifies and routes first responses and does not also research competitors. When a client needs several capabilities, we build several narrow agents and let a workflow layer route tasks to each one.

What does the architecture look like?

Every build has the same six parts: a request or trigger, an orchestrator, tools and data, validation, a human checkpoint and an outcome.

Architecture flow from user request to orchestrator, tools and data, validation, human checkpoint and outcome, with retry, fallback and alert paths on failure
The orchestrator controls the sequence, and nothing consequential reaches an outside system until validation and any required approval have passed.

The model recommends and drafts, while the surrounding system decides what is permitted. That separation is what makes the agent auditable: a failed check, not the model's judgment, stops a bad write.

What stack do we use, and why?

We default to the tools below, and we change any of them when a client's existing systems or data requirements call for it.

LayerDefaultWhy it is thereWhen we would change it
Language modelClaude (Anthropic)Reasons, classifies and draftsTests or existing integrations favor another provider
Workflow orchestrationn8n, cloud or self-hostedConnects systems, and handles retries and error pathsThe client's standard platform covers the same needs
Database and memorySupabase (PostgreSQL)Stores task state, conversation history and logsThe client already runs a suitable database
EnrichmentA data provider such as Apollo.ioAdds company dataData source, terms or lawful basis do not fit
CRMHubSpot or PipedriveReceives agent outputs for the sales teamThe client uses another CRM with a usable API
ChannelsLINE Messaging API, Gmail or SendGridReceive messages and send approved repliesThe client uses other channels
DocumentsA vision-capable model with n8nReads PDFs, images and scansVolume or format favors a dedicated extraction tool
Monitoringn8n error workflows with Slack alertsTells a person when something failsThe client has a monitoring standard

n8n is fair-code, not open source: its license limits use to internal business, non-commercial or personal purposes, with client services allowed only within the terms of n8n's license FAQ (both checked 6 Nov 2026). The Community Edition excludes features such as SSO, environments, Git version control and external secrets (checked 6 Nov 2026), so requirements for those features affect the plan you need.

How do we choose the model?

We choose a model by testing it on your task, because a general ranking does not predict how it will handle your documents and messages. The criteria are:

  • Language results: accuracy on your Thai, English and mixed samples.
  • Structured output: how reliably it returns the fields your workflow validates.
  • Tool use: how reliably it selects and calls the permitted tools.
  • Cost per completed task: measured on real sample sizes.
  • Latency: whether the response time suits the channel.
  • Data terms: what applies to your specific product and deployment route.

Record the chosen model and test date with the project documents, because models change. Switching provider means rerunning the evaluation, not only changing an API key.

What happens at each stage?

Each stage ends at a gate, and the next stage starts only when the gate is passed. The stages depend on each other, but they are not strictly sequential: production build and testing run in parallel, and failed tests send work back to build.

StageWhat happensWhat you receiveGate
1. Discovery and scopeMap the current process, inputs, outputs, failure points and success criteriaWorkflow diagram, tool inventory, risk assessment, scope documentYou sign off the scope and acceptance criteria
2. PrototypeBuild the core loop, primary integration and primary output on synthetic dataStructured demo across normal and edge casesYou confirm it is the right thing to harden
3. Production build and testingAdd error handling, logging, approvals and rate limits, then run testsTest results against the acceptance criteriaCriteria met, or gaps accepted in writing
4. PilotRun on real data at limited scope with human reviewPilot results and a list of defectsYou approve the wider release
5. Deployment and handoverDeploy in your accounts and train your teamHandover packageYou accept delivery
6. MonitoringWatch failures, review quality and plan changesAgreed reports, if a support arrangement is in scopeEach change passes regression tests and a named approver

Duration depends mainly on how quickly system access arrives, the state of your data, the number of integrations, how available your approvers are, and any legal review. We set dates in the scope once discovery has established those facts.

What is the difference between a prototype, a pilot and production?

They differ in what data is used, what the system may do and who is exposed if it fails.

PrototypePilotProduction
PurposeProve the design worksProve it holds up on real workRun the process as agreed
DataSyntheticReal, limited scopeReal, full agreed scope
PermissionsTest accountsLeast privilege, with writes reviewedLeast privilege, with approvals as designed
Failure handlingNoted in the demoRetry, fallback and alert activeRetry, fallback, alert and runbook active
Human reviewNot applicableOn consequential outputs, usually allOn outputs the risk assessment requires
ExitDecision to harden or stopDecision to release, fix or stopOngoing monitoring and change control

What do production and testing add?

Production adds explicit failure paths. If an API call fails, the agent retries, falls back, then alerts a person. We log each action with its timestamp, input, output and status, and we manage API calls so that the workflow stays inside platform limits.

Testing covers three kinds of input:

  1. Normal cases. Clean inputs that measure classification, output quality and correct tool use.
  2. Edge cases. Ambiguous, incomplete, out-of-scope or unexpected-language inputs that show whether the agent fails safely by routing to a person, or unsafely by giving a confident wrong answer.
  3. Load cases. Volume above normal that shows whether queues, rate limits and logging hold up.

The scope sets the test-set size per category, because the number needed depends on how many categories exist and what an error costs.

What does an acceptance criterion look like?

An acceptance criterion is a check that someone other than the builder can run. This illustrative set for a lead qualification agent shows the form. The numbers are examples, not benchmarks or promised results:

  • Score category matches a human reviewer on at least 85 of 100 labeled leads.
  • Every factual field in the summary names its source.
  • A lead with insufficient data is routed for review, not scored.
  • No CRM write happens unless the output passes schema validation.
  • A failed enrichment call retries, then alerts the named owner.

Who controls the data and access?

By default you control the accounts and the data, and we work inside them with the access you grant. Each vendor in the flow has its own terms, so assess them separately.

A typical flow runs from your system to the n8n host, to the model API, then to your CRM or database. This is the default split of control:

ItemControlled byWhat to decide
API credentialsYou, in your accountsWho holds admin rights, and how keys rotate
Workflow execution history and logsYou, on your n8n instanceWhat is stored, for how long and who can read it
Prompts and knowledge baseYou, once handed overWho approves changes
Database and backupsYou, in your projectRetention, restore tests and deletion
Our delivery accessYou grant and revoke itScope and removal date

n8n: n8n says it aligns its security program to SOC 2, with annual independent audits. n8n Cloud runs on Microsoft Azure, with data currently hosted in the EU, and self-hosters handle their own TLS and encryption at rest (checked 6 Nov 2026). If you self-host, you are responsible for deleting user data (checked 6 Nov 2026).

Anthropic: for the commercial API, inputs and outputs are not used for training by default, with exceptions for explicit feedback and for customers who choose to allow it (checked 6 Nov 2026). Anthropic's published policy for the API sets a 30-day limit on standard deletion, with exceptions (checked 6 Nov 2026). On Amazon Bedrock and Google-managed Claude on Google Cloud, the cloud provider is the data processor (checked 6 Nov 2026), so check that provider's terms.

Personal data: for any agent that processes it, we configure what your decisions require: data minimization, notice wording you supply, opt-out and objection handling, retention and deletion. The lawful basis is chosen and documented per purpose by you as the controller, and you should take advice from a qualified Thai practitioner. This describes how we build and is not legal advice or a compliance guarantee.

What do you receive at handover?

You receive everything needed to run, change or move the system:

  • n8n workflows as exported JSON, importable to another n8n instance
  • Prompt documentation covering the instructions used at each step
  • Database schema and historical data in your project
  • Workflow documentation with annotated diagrams
  • A runbook of common issues and fixes
  • A training session on operating the agent, updating knowledge and raising issues

What is not included?

Unless the written scope says otherwise, these sit outside a build:

  • Vendor subscriptions and usage fees, which you pay to each vendor
  • Legal opinions, including PDPA advice and lawful-basis decisions
  • Writing your source content, beyond structuring what exists
  • Automated activity on LinkedIn, which LinkedIn's rules on third-party automation do not allow
  • Ongoing monitoring, unless a support arrangement is agreed

What kinds of agent do we build?

We build five common types, each with a clear output and a named human owner.

Agent typeOutputHuman owner
Lead qualificationScore, reason and sources in the CRMSales owner decides on contact
Customer support triage for LINE OA and emailClassified ticket with a draft or routed summaryReviewer approves replies
Document processingExtracted, validated fields with exceptions flaggedFinance or operations clears exceptions
Proposal draftingFirst-draft document from discovery notesAccount manager edits and sends
Business reportingWeekly plain-language summary from several sourcesReport owner checks the figures

What makes a project succeed or fail?

Process clarity and ownership usually decide the result more than the choice of technology.

A project is more likely to work whenA project is at risk when
The goal is narrow and defined before the buildScope keeps changing during the build
A named person owns the agent and its outputsNobody owns exceptions after launch
The source data is accurate and maintainedInput data or knowledge is left as it is
The team starts with human review and removes it graduallyIt is expected to handle everything from day one
Success is written as checksThe goal is "make it useful"

What shapes the cost?

Scope sets the cost, so we quote after discovery and do not publish fixed package prices on this page. These are the drivers:

Cost driverWhy it matters
Number and quality of integrationsEach one needs error handling and testing
Data qualityPoor data adds cleanup or knowledge-structuring work
Security requirementsSelf-hosting, access control and review add work
Test volume and riskMore categories and costlier errors need larger test sets
Number of agentsEach one adds orchestration and evaluation
Support after handoverMonitoring and change work are ongoing

The scope document states the currency, billing basis and VAT treatment. To compare the wider cost structure, see our guide to the cost components of an AI automation agency.

Frequently asked questions

Do you work with businesses outside Thailand?

Yes, we work with B2B companies across Southeast Asia, using English for cross-border work and Thai for domestic clients. Data law differs by country, so each project needs its own check of the applicable rules.

Can you audit an existing AI implementation first?

Yes, we offer an AI workflow audit as a standalone engagement. We review what you have, identify gaps and recommend a prioritized roadmap, which suits teams that have already experimented with AI tools.

Do you only use Anthropic's models?

No. Claude is our default model family, and we can build on another provider when a client wants to keep an existing integration. The architecture stays the same, and we rerun the evaluation for the new model.

What support do we get after handover?

Support after handover, including its length, is stated in the scope. Monitoring, optimization reviews and knowledge-base updates can be added to that scope.

What is the next step?

Write down the one job you want an agent to do and how you would check that it did it. Then see how custom agents fit into our full AI automation service for B2B teams, or send us the workflow through our short qualifier.

Ready to see how AI automation applies to your business?

Get a Free AI Analysis