<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><title>APFlow Blog</title><link>https://apflow.co/blog/</link><description>What we learn deploying self-hosted agentic workflows across MENA.</description><language>en</language><item><title>RAG or MCP: which one does your use case actually need</title><link>https://apflow.co/blog/rag-or-mcp/</link><guid>https://apflow.co/blog/rag-or-mcp/</guid><pubDate>Thu, 16 Jul 2026 00:00:00 GMT</pubDate><description>Two teams describe the same project and mean opposite architectures. One question sorts it: would a person answer this by opening a document, or by opening a system? Documents mean retrieval. Systems mean tools. Here is how we decide, plus the third option that beats both more often than anyone admits.</description></item><item><title>How to design MCP tools your agent will not misuse</title><link>https://apflow.co/blog/design-mcp-tools/</link><guid>https://apflow.co/blog/design-mcp-tools/</guid><pubDate>Tue, 14 Jul 2026 00:00:00 GMT</pubDate><description>Agents do not call the wrong tool because they are careless. They call it because the tool surface is ambiguous. Here are the design rules we apply to every MCP server we build: naming, required parameters, typed errors, server-side authorization, idempotency keys, and how to score selection accuracy before it reaches production.</description></item><item><title>Build integrations in house, buy a platform, or outsource: an honest decision framework</title><link>https://apflow.co/blog/build-or-buy-integrations/</link><guid>https://apflow.co/blog/build-or-buy-integrations/</guid><pubDate>Fri, 10 Jul 2026 00:00:00 GMT</pubDate><description>Three ways to resource integration work, what each really costs in money and attention, why the build estimate is usually a third of the true number, and the cases where hiring an outside team is the wrong call.</description></item><item><title>Why your integration creates duplicates, and the patterns that stop it</title><link>https://apflow.co/blog/idempotent-integrations/</link><guid>https://apflow.co/blog/idempotent-integrations/</guid><pubDate>Tue, 07 Jul 2026 00:00:00 GMT</pubDate><description>A retry writes the same record twice and nothing alerts. The duplicate surfaces weeks later during reconciliation. Here are the patterns that make repeated writes safe: derived external ids, idempotency keys, cursors instead of timestamp watermarks, and a dead-letter queue an operations person can clear.</description></item><item><title>What an integration actually costs, broken down</title><link>https://apflow.co/blog/integration-cost/</link><guid>https://apflow.co/blog/integration-cost/</guid><pubDate>Thu, 02 Jul 2026 00:00:00 GMT</pubDate><description>Why the happy path is about a quarter of the work, where the rest of the days go, which target systems are expensive and why, and what maintenance really costs per month. In engineering-days, not currency.</description></item><item><title>Arabic RAG that works: embeddings, chunking, and reranking for real Arabic documents</title><link>https://apflow.co/blog/arabic-rag-that-works/</link><guid>https://apflow.co/blog/arabic-rag-that-works/</guid><pubDate>Tue, 16 Jun 2026 00:00:00 GMT</pubDate><description>Most retrieval stacks were tuned on English and quietly underperform on Arabic. Here is how an engineer builds an Arabic document assistant that actually retrieves: normalization, the right embeddings, sentence-aware chunking, reranking, and honest evaluation.</description></item><item><title>The deadly security mistakes when deploying AI agents</title><link>https://apflow.co/blog/agent-security-mistakes/</link><guid>https://apflow.co/blog/agent-security-mistakes/</guid><pubDate>Fri, 12 Jun 2026 00:00:00 GMT</pubDate><description>An agent is a model with hands. Give it tools and credentials carelessly and a single poisoned email can move money, leak records, or rewrite its own instructions. The seven mistakes that cause real incidents, and the fix for each.</description></item><item><title>Deploying agents on a server, the simple way</title><link>https://apflow.co/blog/deploy-agents-server/</link><guid>https://apflow.co/blog/deploy-agents-server/</guid><pubDate>Fri, 12 Jun 2026 00:00:00 GMT</pubDate><description>Your agent works on your laptop. Now it needs to run on a server, all day, and survive restarts. One tool matters most: Docker. This guide explains it in plain words and ships a full agent stack with one command.</description></item><item><title>How to build an agentic workflow that runs on its own</title><link>https://apflow.co/blog/build-agentic-workflows/</link><guid>https://apflow.co/blog/build-agentic-workflows/</guid><pubDate>Fri, 12 Jun 2026 00:00:00 GMT</pubDate><description>An agent is a model with tools, memory, and a goal. This guide explains the idea in plain words, then matches you to the right tool: n8n if you do not code, CrewAI if you want Python fast, LangGraph if you need full control.</description></item><item><title>Search that finds what you meant: vector databases, explained properly</title><link>https://apflow.co/blog/vector-databases-explained/</link><guid>https://apflow.co/blog/vector-databases-explained/</guid><pubDate>Fri, 12 Jun 2026 00:00:00 GMT</pubDate><description>You searched the archive for 'termination clause' and got nothing, because the contract says 'cancellation terms'. Keyword search matches letters, not meaning. Vector databases fix this, and this post explains exactly how, down to the index.</description></item><item><title>Your data is in the wrong place: a plain guide to storage and databases</title><link>https://apflow.co/blog/storage-and-databases/</link><guid>https://apflow.co/blog/storage-and-databases/</guid><pubDate>Fri, 12 Jun 2026 00:00:00 GMT</pubDate><description>Contracts in email attachments, customer records in a spreadsheet that four people edit, scans in a folder called 'final-FINAL'. The problem is not messiness; it is that each kind of data needs a different home. Here is the map.</description></item><item><title>Your AI can think but cannot act: APIs, MCP, and how to fix it</title><link>https://apflow.co/blog/mcp-apis-for-business/</link><guid>https://apflow.co/blog/mcp-apis-for-business/</guid><pubDate>Fri, 12 Jun 2026 00:00:00 GMT</pubDate><description>The assistant writes a perfect answer about your inventory, but it cannot actually open your inventory. The missing piece is a connection layer: APIs, and now MCP, the standard that connects AI to your systems once instead of integration by integration.</description></item><item><title>Why most AI pilots never reach production</title><link>https://apflow.co/blog/ai-pilot-to-production/</link><guid>https://apflow.co/blog/ai-pilot-to-production/</guid><pubDate>Tue, 09 Jun 2026 00:00:00 GMT</pubDate><description>Most enterprise AI never leaves the pilot. The gap is rarely the model. It is data access, approvals, and trust. Here is what actually blocks production, and how to clear it.</description></item><item><title>Why Arabic OCR still fails, and how we fixed it</title><link>https://apflow.co/blog/why-arabic-ocr-fails/</link><guid>https://apflow.co/blog/why-arabic-ocr-fails/</guid><pubDate>Tue, 12 May 2026 00:00:00 GMT</pubDate><description>Ligatures, diacritics, and mixed-direction documents break almost every off-the-shelf engine. The three changes that took us from 71% to 99.2% field-level accuracy on real Gulf documents.</description></item><item><title>Agentic workflows, explained for regulated enterprises</title><link>https://apflow.co/blog/agentic-workflows-explained/</link><guid>https://apflow.co/blog/agentic-workflows-explained/</guid><pubDate>Tue, 12 May 2026 00:00:00 GMT</pubDate><description>An AI agent is not a chatbot. It reads, decides, and acts across your systems, within limits you set. What agentic workflows are, and what makes them safe enough for a bank.</description></item><item><title>Letting agents act without losing control</title><link>https://apflow.co/blog/human-in-the-loop-agents/</link><guid>https://apflow.co/blog/human-in-the-loop-agents/</guid><pubDate>Tue, 05 May 2026 00:00:00 GMT</pubDate><description>Autonomy is not all-or-nothing. The right design lets an agent do the work and a human own the decision. How approval gates, not blind trust, make agents deployable in regulated settings.</description></item><item><title>An audit trail your regulator will accept for AI</title><link>https://apflow.co/blog/ai-audit-trail/</link><guid>https://apflow.co/blog/ai-audit-trail/</guid><pubDate>Tue, 28 Apr 2026 00:00:00 GMT</pubDate><description>For regulated AI, it works is not enough. You must prove what it did and why. A practical guide to building an audit trail an auditor will actually accept.</description></item><item><title>The real cost of cloud AI APIs at scale</title><link>https://apflow.co/blog/cost-of-cloud-ai-apis/</link><guid>https://apflow.co/blog/cost-of-cloud-ai-apis/</guid><pubDate>Tue, 21 Apr 2026 00:00:00 GMT</pubDate><description>Per-token pricing looks cheap in a demo and expensive in production. A clear look at where cloud AI costs explode at scale, and when owning your inference starts to pay off.</description></item><item><title>Connecting agents to SAP and Oracle behind the firewall</title><link>https://apflow.co/blog/agents-and-erp/</link><guid>https://apflow.co/blog/agents-and-erp/</guid><pubDate>Tue, 14 Apr 2026 00:00:00 GMT</pubDate><description>An agent is only useful if it can touch your real systems. How we wire agents into on-prem ERP like SAP, Oracle, and Dynamics without opening a hole to the public cloud.</description></item></channel></rss>