<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: SIÁN Agency</title>
    <description>The latest articles on DEV Community by SIÁN Agency (@sian-agency).</description>
    <link>https://dev.to/sian-agency</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3854792%2Fcb57fd08-1d47-4084-97aa-8c4879d72af0.png</url>
      <title>DEV Community: SIÁN Agency</title>
      <link>https://dev.to/sian-agency</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sian-agency"/>
    <language>en</language>
    <item>
      <title>AI Agent Security Risks: What SMEs Need to Know in 2026</title>
      <dc:creator>SIÁN Agency</dc:creator>
      <pubDate>Thu, 26 Nov 2026 06:46:23 +0000</pubDate>
      <link>https://dev.to/sian-agency/ai-agent-security-risks-what-smes-need-to-know-in-2026-52fc</link>
      <guid>https://dev.to/sian-agency/ai-agent-security-risks-what-smes-need-to-know-in-2026-52fc</guid>
      <description>&lt;p&gt;AI agent security risks are front and center for SMEs in 2026, now that agents don’t just generate text, they move data, call APIs, and carry out real business actions. This added autonomy means new ways for things to go wrong, so layering controls is now vital for safe adoption.&lt;/p&gt;

&lt;h2&gt;
  
  
  What are AI agents, and why is security a bigger deal now?
&lt;/h2&gt;

&lt;p&gt;AI agents are goal-oriented systems that plan steps and use APIs or tools to get real work done. For an SME, this might look like triaging emails, updating CRM data, or shuttling info between apps, no human in every loop. The more an agent can do, the wider the attack surface and the bigger the stakes if something slips.&lt;/p&gt;

&lt;p&gt;The leap from simple chatbots to action-takers changes everything. At worst, a chatbot says the wrong thing. A poorly confined agent can delete records, email sensitive data, or push the wrong payment. So, security for these agents now covers not just prompts, but also permissions, tool access, runtime behavior, and monitoring. Both &lt;a href="https://builder.aws.com/content/3MMRFoSlyuJKlNBBUJZyj5FvB0Y/a-secure-model-is-not-a-secure-agent-owasp-security-for-agentic-ai" rel="noopener noreferrer"&gt;AWS Builder Center&lt;/a&gt; and &lt;a href="https://www.ory.com/learn/agentic-ai-security" rel="noopener noreferrer"&gt;Ory’s Agentic AI Security Guide&lt;/a&gt; recommend a holistic approach, with layered controls on agent execution, access, and oversight.&lt;/p&gt;

&lt;h2&gt;
  
  
  What are the top AI agent security risks for SMEs?
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Agent goal hijacking
&lt;/h3&gt;

&lt;p&gt;Attackers can trick agents into following harmful instructions hidden in emails, form submissions, or messages. Unlike with chatbots, this can mean agents carry out actions never intended by the business, sharing sensitive info or misprocessing tickets, as flagged by OWASP Agentic Top 10.&lt;/p&gt;

&lt;h3&gt;
  
  
  Tool misuse
&lt;/h3&gt;

&lt;p&gt;Agents plugged into business tools (CRMs, ticket systems, APIs) could be manipulated, accidentally or deliberately, into performing damaging actions, like updating the wrong record or exporting private data. Even without an attacker, permissive agents have caused operational issues by confidently acting on bad or ambiguous input.&lt;/p&gt;

&lt;h3&gt;
  
  
  Credential and privilege abuse
&lt;/h3&gt;

&lt;p&gt;Giving agents broad access for speed’s sake backfires quickly. Too much permission on an agent account can turn any compromise into a company-wide incident, especially in lean teams where agents cross multiple roles. Standing credentials and shared logins compound this risk.&lt;/p&gt;

&lt;h3&gt;
  
  
  Memory poisoning and data exfiltration
&lt;/h3&gt;

&lt;p&gt;Agents remember things, sometimes more than they should. If memory or external context gets poisoned, an agent might start executing on bogus instructions or expose sensitive info downstream. Conversely, agents might expose too much in replies, summaries, or actions if not carefully limited.&lt;/p&gt;

&lt;h3&gt;
  
  
  Supply chain risks
&lt;/h3&gt;

&lt;p&gt;SMEs often rely on outside models, plugins, and connectors, so vulnerabilities in any dependency can open the door to attacks. A single rushed integration might grant more access than intended, especially as teams add capabilities over time.&lt;/p&gt;

&lt;p&gt;For a broader list, see the &lt;a href="https://www.nice.com/ai-agent-security/agentic-ai-security-risks" rel="noopener noreferrer"&gt;Agentic AI Security Risks explainer from NICE&lt;/a&gt; and recent &lt;a href="https://www.paloaltonetworks.com/resources/webcasts/check-your-blind-spot-securing-agentic-ai-blind-spots" rel="noopener noreferrer"&gt;Prisma AIRS webcast from Palo Alto Networks&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do these risks hit small business workflows and data?
&lt;/h2&gt;

&lt;p&gt;Most breaches aren’t dramatic, they’re in the daily grind: a sales agent leaking leads by email, a service agent exposing account details in a ticket summary, or a bot misclassifying and overwriting valuable records. The small size of SME teams means that a single compromised agent can have an outsized impact, with fewer checks between intake, processing, and action.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practical defenses: best practices for SME AI agent security
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Least privilege for every agent
&lt;/h3&gt;

&lt;p&gt;Limit every agent to only what’s needed: read vs. write, sales vs. support, test vs. prod. This shrinks the damage any confused or compromised agent can cause.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Unique identities and rigorous credential management
&lt;/h3&gt;

&lt;p&gt;No shared logins. Every agent gets its own account, with minimal access, and credentials expire or rotate as roles change. Avoid long-lived secrets in plain config files.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Validation and approval gates
&lt;/h3&gt;

&lt;p&gt;Don’t let agents act autonomously on high-impact steps (like deleting data or sending refunds). Pattern: agent proposes, system or person approves. Add human or policy gating for sensitive actions.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Monitor and log everything
&lt;/h3&gt;

&lt;p&gt;Track agent tool calls, data touched, and odd patterns (out-of-hours access, volume spikes, unusual routes). Even lightweight logging helps you reconstruct events and spot issues early.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Supply chain review
&lt;/h3&gt;

&lt;p&gt;Before plugging in external models, plugins, or connectors, vet them for access scope and update risks. Maintain an inventory of what’s installed and who/what it touches.&lt;/p&gt;

&lt;p&gt;See the in-depth &lt;a href="https://sian-agency.online/blog/agentic-ai-security-framework" rel="noopener noreferrer"&gt;Agentic AI Security Framework for SMEs&lt;/a&gt; to get started with staged controls.&lt;/p&gt;

&lt;h2&gt;
  
  
  Invented workflow example: how a layered SME setup looks
&lt;/h2&gt;

&lt;p&gt;A small consulting firm uses an AI agent to triage client emails, make CRM entries, and draft replies.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The agent can read emails, draft but not send responses.&lt;/li&gt;
&lt;li&gt;It can log activity in the CRM, but can’t alter billing fields.&lt;/li&gt;
&lt;li&gt;Messages mentioning refunds or contracts must be approved by a manager before going out.&lt;/li&gt;
&lt;li&gt;Sensitive email attachments are stored access-restricted.&lt;/li&gt;
&lt;li&gt;All agent actions are logged for audit.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This keeps automation useful, but bottlenecks any action that could turn one bad input into a costly mistake. More workflow examples are in &lt;a href="https://sian-agency.online/blog/ai-agent-security-exploits" rel="noopener noreferrer"&gt;AI Agent Security Exploits for SMEs&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Can automation platforms and pipelines make agents safer?
&lt;/h2&gt;

&lt;p&gt;Yes, if you use them for more than just stitching APIs together. A robust pipeline routes untrusted input through classification, applies policies, blocks risky flows, and logs every step. That’s how &lt;a href="https://sian-agency.online/" rel="noopener noreferrer"&gt;SIÁN Agency structures AI data pipelines&lt;/a&gt;, by putting curated intake, workflow logic, permissions, and logging between the agent and your core data. SIÁN’s model starts with a discovery call, maps your existing access setup, and builds approval and audit into every pipeline.&lt;/p&gt;

&lt;p&gt;Typical best-practice pipeline:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Intake: catch untrusted or malformed data&lt;/li&gt;
&lt;li&gt;Classification: decide workflow path&lt;/li&gt;
&lt;li&gt;Policy: block or flag risky actions&lt;/li&gt;
&lt;li&gt;Tooling: connect only with needed permissions&lt;/li&gt;
&lt;li&gt;Logging: enable review and forensics&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For more practical guidance, see &lt;a href="https://sian-agency.online/blog/ai-agents-use-cases" rel="noopener noreferrer"&gt;AI Agents Use Cases for Business Teams&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions about AI agent security in SMEs
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Is a chatbot as risky as an AI agent?
&lt;/h3&gt;

&lt;p&gt;No. Chatbots reply; agents act. Agents need tighter runtime controls, on tool, data, and approval.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do SMEs really need these controls?
&lt;/h3&gt;

&lt;p&gt;Yes, if agents handle production data or have API access. Smaller teams have bigger single points of failure.&lt;/p&gt;

&lt;h3&gt;
  
  
  What’s the first control to put in place?
&lt;/h3&gt;

&lt;p&gt;Start with strict access control and require approval for all sensitive agent actions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is any one control enough alone?
&lt;/h3&gt;

&lt;p&gt;No. True AI agent security means using several defenses at once: least privilege, identity hygiene, approval gating, monitoring, and supply chain review.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion: balance benefit with hard boundaries
&lt;/h2&gt;

&lt;p&gt;AI agents can boost SME productivity, but their autonomy brings new risks, goal manipulation, tool abuse, excessive access, and vulnerable dependencies. Use layered security: keep permissions lean, add approval gates, log actions, and vet your supply chain. That’s how SMEs can safely grab the efficiency gains of AI automation.&lt;/p&gt;

&lt;p&gt;If you’re planning a new AI workflow and want a security gut check, consider a focused audit. See the related guides on AI Agent Security Exploits for SMEs and Agentic AI Security Framework for SMEs for deeper technical details.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ready to review your setup?&lt;/strong&gt; Book a free discovery call or request an SME-ready AI security checklist via the &lt;a href="https://sian-agency.online/contact" rel="noopener noreferrer"&gt;SIÁN Agency contact page&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;Originally published at &lt;a href="https://sian-agency.online/blog/ai-agent-security-risks?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=content-os&amp;amp;utm_content=a270" rel="noopener noreferrer"&gt;sian-agency.online/blog/ai-agent-security-risks&lt;/a&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>cybersecurity</category>
      <category>security</category>
    </item>
    <item>
      <title>AI Agent Security Exploits for SMEs: Risks and Defenses</title>
      <dc:creator>SIÁN Agency</dc:creator>
      <pubDate>Mon, 23 Nov 2026 06:46:57 +0000</pubDate>
      <link>https://dev.to/sian-agency/ai-agent-security-exploits-for-smes-risks-and-defenses-2naa</link>
      <guid>https://dev.to/sian-agency/ai-agent-security-exploits-for-smes-risks-and-defenses-2naa</guid>
      <description>&lt;p&gt;AI agents can accelerate business processes, but they also introduce new ways attackers, and the agents themselves, can trigger security incidents. For SMEs, the key risk isn’t whether agents are useful but how they can be manipulated, misled, or pushed beyond safe boundaries. This guide covers major AI agent security exploits, the business risks for automated workflows, and practical, layered defenses for SMEs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Understanding AI agent security exploits
&lt;/h2&gt;

&lt;p&gt;AI agent security exploits are techniques attackers use to trick, poison, or hijack agent-driven systems, causing them to behave in unexpected or unsafe ways. Attacks range from prompt injection and supply chain compromise to exploiting insecure tool access or inserting malicious data during model training. Because agents read, decide, and act across multiple business systems, their attack surface extends well beyond simple text generation, as documented by &lt;a href="https://arxiv.org/abs/2611.10843" rel="noopener noreferrer"&gt;Agents of Chaos&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The most common exploit patterns
&lt;/h2&gt;

&lt;p&gt;Which threats top the list for SMEs? Four main exploit strategies stand out:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Prompt injection&lt;/strong&gt;: Malicious text overrides an agent’s instructions or redirects its output.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Supply chain poisoning&lt;/strong&gt;: Compromised models, datasets, or plugins turn agents hostile or unreliable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tool abuse&lt;/strong&gt;: Attackers trick agents into running risky code, modifying data, or accessing unauthorized systems.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Goal hijacking&lt;/strong&gt;: The agent, in pursuit of its target, takes actions the operator never wanted.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A review of AI agent incidents shows that many failures don’t come from a direct attacker, but from agents taking overly aggressive actions while carrying out their assigned tasks. In fact, most logged cases involved agents going out of bounds on their own, causing downstream harm across business processes &lt;a href="https://www.manifold.security/blog/what-66-ai-agent-incidents-tell-us" rel="noopener noreferrer"&gt;see Manifold’s analysis&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How normal inputs turn into attack vectors
&lt;/h2&gt;

&lt;p&gt;Agents often treat untrusted or external content as legitimate. When incoming messages, files, or instructions aren’t properly checked, seemingly harmless data can become an entry point for prompt injection, data leaks, or unsafe actions. Recent reporting has shown fully autonomous exploit chains, where AI-powered agents can scan new software patches, generate exploits, and run attacks without needing much (or any) human direction &lt;a href="https://www.techtarget.com/news/google-finds-ai-agents-autonomously-turning-patches-into-exploits/874837/" rel="noopener noreferrer"&gt;described at TechTarget&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Similarly, &lt;a href="https://www.microsoft.com/en-us/security/blog/2026/11/12/trained-to-betray-how-post-training-supply-chain-attacks-hijack-coding-agents/" rel="noopener noreferrer"&gt;Microsoft researchers find&lt;/a&gt; that post-training supply chain attacks can implant malicious behaviors in AI models, allowing routine instructions or file inputs to trigger unsafe actions, sometimes long after deployment. This turns dependency management and content validation into frontline defenses.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this means for SME business workflows
&lt;/h2&gt;

&lt;p&gt;For many SMEs, the greatest threat isn’t dramatic external hacking, it’s small workflow errors that quietly propagate. Consider the following (invented) scenarios:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An intake agent routes sensitive messages to the wrong team after parsing a confusing prompt.&lt;/li&gt;
&lt;li&gt;A support bot exposes internal data from an unreviewed document upload.&lt;/li&gt;
&lt;li&gt;A sales automation tool corrupts key records because of a poisoned plugin update.&lt;/li&gt;
&lt;li&gt;An ops agent runs a risky script after trusting user-supplied instructions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Compromises like these can disrupt invoicing, customer support, and reporting, especially if the agent is plugged into central data or automation flows. The more connected and automated your stack, the greater the risk of one exploit affecting many processes at once.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to lower SME risk: layered controls
&lt;/h2&gt;

&lt;p&gt;No single “safe mode” can eliminate agent risk. For SMEs, a practical defense-in-depth approach includes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Limit agent scope&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Assign each agent a specific role and restrict its system access.&lt;/li&gt;
&lt;li&gt;Minimize admin rights and segregate sensitive workflows.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Govern tools and dependencies&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Approve every API, plugin, or connector before use.&lt;/li&gt;
&lt;li&gt;Remove unused integrations and vet updates for risk.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Validate all inputs and outputs&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Treat external text, uploads, or retrieved data as hostile by default.&lt;/li&gt;
&lt;li&gt;Clean or filter what the agent ingests; review high-risk outputs manually.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Separate decision and action&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Require human approval for actions involving money, account access, or irreversible changes.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Continuously monitor and log&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Track agent prompts, actions, and state changes; alert on unusual behaviors.&lt;/li&gt;
&lt;li&gt;Review near misses to improve safeguards.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test for abuse scenarios&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Run red-team exercises: prompt injection, data corruption, tool misuse.&lt;/li&gt;
&lt;li&gt;Repeat tests after updating models or plugins.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;These strategies align with the lifecycle threat modeling and layered security best practices highlighted in Agents of Chaos.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practical SME-ready checklist for AI automation security
&lt;/h2&gt;

&lt;p&gt;Here’s a starting point for any SME deploying AI agents:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Inventory all agents, APIs, and connectors in your workflows&lt;/li&gt;
&lt;li&gt;Flag which actions are read-only, reversible, or high-risk&lt;/li&gt;
&lt;li&gt;Disable unused agent tools and permissions&lt;/li&gt;
&lt;li&gt;Mandate human sign-off for sensitive operations&lt;/li&gt;
&lt;li&gt;Set up clear audit and retention policies&lt;/li&gt;
&lt;li&gt;Actively test for prompt injection or poisoned content&lt;/li&gt;
&lt;li&gt;Assign responsibility for agent review and incident response&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Example approval flow (invented):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Agent job: draft customer refunds&lt;/li&gt;
&lt;li&gt;Tools allowed: CRM (read), ticketing (read)&lt;/li&gt;
&lt;li&gt;Blocked: payments, deletions, external messaging&lt;/li&gt;
&lt;li&gt;Rule: refunds over a set amount require manual sign-off&lt;/li&gt;
&lt;li&gt;Logging: capture prompt, source data, and proposed action&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  When should SMEs call in outside expertise?
&lt;/h2&gt;

&lt;p&gt;If an agent handles customer data, triggers financial transactions, or touches production systems, it’s time to get a third-party review. Ask for security advice before a workflow becomes mission-critical. An external audit can expose weak points in permissions, tool governance, and incident response before trouble hits.&lt;/p&gt;

&lt;p&gt;Want to talk about locking down your AI agent workflows? &lt;a href="https://sian-agency.online/contact" rel="noopener noreferrer"&gt;Contact SIÁN Agency&lt;/a&gt;, or explore our guides on &lt;a href="https://sian-agency.online/blog/ai-automation" rel="noopener noreferrer"&gt;AI Automation&lt;/a&gt; and &lt;a href="https://sian-agency.online/blog/agentic-ai-security-framework" rel="noopener noreferrer"&gt;Agentic AI Security Frameworks&lt;/a&gt; for more details.&lt;/p&gt;




&lt;p&gt;Originally published at &lt;a href="https://sian-agency.online/blog/ai-agent-security-exploits?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=content-os&amp;amp;utm_content=a268" rel="noopener noreferrer"&gt;sian-agency.online/blog/ai-agent-security-exploits&lt;/a&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>cybersecurity</category>
      <category>security</category>
    </item>
    <item>
      <title>AI Receptionist for Small Business in 2026</title>
      <dc:creator>SIÁN Agency</dc:creator>
      <pubDate>Mon, 23 Nov 2026 05:10:35 +0000</pubDate>
      <link>https://dev.to/sian-agency/ai-receptionist-for-small-business-in-2026-3g5</link>
      <guid>https://dev.to/sian-agency/ai-receptionist-for-small-business-in-2026-3g5</guid>
      <description>&lt;p&gt;An AI receptionist lets small businesses handle calls, bookings, and incoming leads, without putting pressure on a small team or risking missed opportunities. By connecting the AI to your CRM and calendar, you get more consistent responses and more time for your core work. Here’s what to know if you’re rolling it out in 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is an AI receptionist, what’s actually automated?
&lt;/h2&gt;

&lt;p&gt;An AI receptionist is front-desk software that picks up calls, answers routine questions (like hours or pricing), gathers new inquiry details, books or changes appointments, and passes anything complex to a human instead of guessing. Unlike old phone menus, these systems use natural language, are available outside office hours, and route info directly into your business tools. This means fewer clicks and less duplication for your staff. For detailed scenarios and set-up logic, see &lt;a href="https://sian-agency.online/blog/ai-receptionist" rel="noopener noreferrer"&gt;SIÁN Agency’s AI Receptionist guide&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What bottlenecks does it solve for small businesses?
&lt;/h2&gt;

&lt;p&gt;Here’s where teams feel the pain:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Calls missed during busy times or after hours&lt;/li&gt;
&lt;li&gt;Repeating standard info and FAQs&lt;/li&gt;
&lt;li&gt;Tedious booking and rescheduling&lt;/li&gt;
&lt;li&gt;Slow follow-up on leads (cold leads mean lost sales)&lt;/li&gt;
&lt;li&gt;Notes scattered across platforms&lt;/li&gt;
&lt;li&gt;Frequent interruptions pulling staff from important work&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Bringing in AI doesn’t replace human oversight, but it cuts the repetitive tasks and lets your team work on sales, complex service, or relationship-building instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example: A typical AI receptionist day (invented but realistic)
&lt;/h2&gt;

&lt;p&gt;An HVAC company gets 18 calls daily. Seven are about hours or service area, five ask about bookings, three are reschedules, and three are marked urgent. The AI answers routine questions and processes new bookings, captures info and urgency for the rest, and hands urgent calls to humans. At the end of the day, the owner sees one summary instead of dozens of disruptions. For industry pain points and ROI estimates, see &lt;a href="https://www.hellosetter.com/guides/ai-receptionist-for-small-business" rel="noopener noreferrer"&gt;HelloSetter’s comparison of AI and live answering services&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you set up an AI receptionist for your front desk?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;List your typical call types&lt;/strong&gt;: New inquiries, bookings, follow-ups, complaints, suppliers, wrong numbers. Pick the most repetitive to automate first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Define boundaries&lt;/strong&gt;: Decide what the AI can say, book, or answer. Set firm rules to avoid double-bookings or bad info.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Connect your tools&lt;/strong&gt;: Integrate the AI with your calendar, CRM, and communications platforms. &lt;a href="https://sian-agency.online/blog/n8n-automation" rel="noopener noreferrer"&gt;SIÁN Agency’s guide to n8n automation&lt;/a&gt; covers multi-tool setups.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Create a human handoff&lt;/strong&gt;: Set up transfer, queuing, or call-back options for edge cases.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test with scenarios&lt;/strong&gt;: Use invented calls to check scripts, booking accuracy, and hand-offs before going live.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Iterate based on real usage&lt;/strong&gt;: Review call summaries and handoff misses, and tweak your setup.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For checklist-style setup steps and vendor comparison tables, see HelloSetter’s 2026 guide and advice on calibration from &lt;a href="https://ampliflow.ai/blog/ai-receptionist-uk-businesses" rel="noopener noreferrer"&gt;Ampliflow’s call flow testing checklist&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  AI receptionist or live answering service, does it replace or team up?
&lt;/h2&gt;

&lt;p&gt;AI tools excel at handling volume, FAQs, and booking, tasks that humans get bogged down doing. Live staff bring empathy, judgment, and adaptability. The strongest approach usually blends the two: automate the basics, and make it easy for the AI to escalate when a problem needs a person. When comparing, check both features (booking, handoff path, transcripts) and what happens when things go off script, not just price per call or minute. For feature-by-feature breakdowns, visit HelloSetter’s AI vs. live service page.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should you look for in an AI receptionist system?
&lt;/h2&gt;

&lt;p&gt;Expect direct calendar and CRM integration, easy access to call logs and transcripts, customizable scripts, a simple transfer to humans when needed, multi-channel support (call, chat, text), and vendor help with workflow setup. Look for a vendor who integrates with your current systems, not one that forces a rebuild. For advice on vendor fit, see SIÁN Agency’s blog or &lt;a href="https://smallbizstrategy.ai/ai-receptionist-small-business/" rel="noopener noreferrer"&gt;SmallBizStrategy’s practical guide&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ: Practical deployment questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;How does an AI receptionist work with my CRM?&lt;/strong&gt;&lt;br&gt;
It logs notes, tags, and outcomes to keep call history complete and viewable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can it handle bookings and reschedules?&lt;/strong&gt;&lt;br&gt;
Yes, as long as your calendar or scheduling platform is connected and you set clear booking windows.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What if the AI doesn’t know an answer?&lt;/strong&gt;&lt;br&gt;
It’s designed to route those cases to a person or log for call-back, never winging it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is it just phone?&lt;/strong&gt;&lt;br&gt;
Most systems handle multiple channels, calls, chat, SMS and sometimes email.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do I start?&lt;/strong&gt;&lt;br&gt;
Automate the most repetitive call types first. Set limits, connect key workflows, and expand from there.&lt;/p&gt;

&lt;p&gt;To go deeper, see SIÁN Agency’s focused AI receptionist guide, or &lt;a href="https://sian-agency.online/contact" rel="noopener noreferrer"&gt;book a call with SIÁN Agency&lt;/a&gt; for tailored system mapping and integration support.&lt;/p&gt;




&lt;p&gt;Originally published at &lt;a href="https://sian-agency.online/blog/ai-receptionist-for-small-business?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=content-os&amp;amp;utm_content=a259" rel="noopener noreferrer"&gt;sian-agency.online/blog/ai-receptionist-for-small-business&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Agentic AI Security Framework for SMEs</title>
      <dc:creator>SIÁN Agency</dc:creator>
      <pubDate>Mon, 23 Nov 2026 05:10:34 +0000</pubDate>
      <link>https://dev.to/sian-agency/agentic-ai-security-framework-for-smes-3lm7</link>
      <guid>https://dev.to/sian-agency/agentic-ai-security-framework-for-smes-3lm7</guid>
      <description>&lt;p&gt;Small and mid-sized teams can secure agentic AI systems without the heavy tech stacks used by large enterprises. The core move: treat the AI agent as untrusted, and then set clear control points around identity, permissions, data flow, and human approval. Here’s how to build a practical agentic AI security framework for SMEs that actually works day-to-day.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is agentic AI security?
&lt;/h2&gt;

&lt;p&gt;Agentic AI goes beyond text generation, it reads context, calls tools, fetches data, and takes actions over multiple steps. This means greater efficiency, but also a much bigger attack surface than standard chatbots. A working &lt;a href="https://www.formal.ai/academy/agentic-ai-security/" rel="noopener noreferrer"&gt;agentic AI security framework&lt;/a&gt; doesn’t just govern what the model says; it has to gate what the agent can access, which actions are allowed, and how decisions are reviewed.&lt;/p&gt;

&lt;p&gt;For small businesses, the real challenge is to let agents automate useful work without handing over too much trust, because one weak prompt, tool call, or system integration can expose sensitive data or trigger risky actions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which risks matter most for SME agentic AI?
&lt;/h2&gt;

&lt;p&gt;The main risks for SMEs tend to be the ones that show up in ordinary daily workflows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Prompt injection&lt;/strong&gt;: Tricking the agent with crafted user input, support tickets, or even web content. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Too many permissions&lt;/strong&gt;: Letting a single agent reach too many tools or data sources.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data leaks&lt;/strong&gt;: Sensitive info ending up in prompts, logs, or external services.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tool misuse&lt;/strong&gt;: Agents making valid, but unintended, calls with real credentials.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Weak approval&lt;/strong&gt;: Lack of review for actions that impact customers, payments, or production data.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These risk areas are echoed across security guides, including &lt;a href="https://www.jetbrains.com/pages/ai-agents/security/security-risks/" rel="noopener noreferrer"&gt;JetBrains’ breakdown of AI agent security&lt;/a&gt; and Check Point’s &lt;a href="https://www.checkpoint.com/cyber-hub/ai-security/what-is-ai-security/the-7-biggest-agentic-ai-security-risks/" rel="noopener noreferrer"&gt;seven key agentic AI risks&lt;/a&gt;. Ignoring these in SME automation pipelines is a recipe for trouble.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does an SME-focused agentic AI security framework look like?
&lt;/h2&gt;

&lt;p&gt;You don’t need hundreds of controls or expensive software. Instead, focus on a handful of controls applied at the right touch points:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Least privilege and short-lived identity
&lt;/h3&gt;

&lt;p&gt;Don’t share accounts between agents or let access linger longer than needed. Give each agent only as much access as needed for a specific job. Use unique, short-lived credentials where possible. If the agent runs inside a user’s session, tie its permissions to that session and expire them quickly.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Per-request policy enforcement
&lt;/h3&gt;

&lt;p&gt;Don’t trust setup-time permissions alone. Check every outbound call, tool use, and data fetch as it happens. Block anything not specifically approved for that request, especially egress to outside systems.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Hands-on access governance
&lt;/h3&gt;

&lt;p&gt;Keep a living spreadsheet of which agents can touch what. For each agent, list the approved tools, allowed data sources, blocked actions, responsible person, and when it was last reviewed. This lets you spot risky sprawl and cut access when a workflow changes.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Real-time monitoring and guardrails
&lt;/h3&gt;

&lt;p&gt;Watch for outlier behaviors, odd tool calls, repeated retrying, or escalations to sensitive data. If something doesn’t fit the normal workflow, pause or block it. Guardrails should especially cover actions that could cause real-world damage.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Prompt provenance and audit trails
&lt;/h3&gt;

&lt;p&gt;Record which prompts, user inputs, docs, or tool results led to each action. This makes post-mortems and explanations much easier, as highlighted in Uber’s &lt;a href="https://www.uber.com/us/en/blog/securing-ai-agents/" rel="noopener noreferrer"&gt;guide to agentic AI security&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you embed security into SME AI pipelines?
&lt;/h2&gt;

&lt;p&gt;Security is easier when it’s designed into the workflow, not added as an afterthought. Here’s a practical SME pattern:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;User submits a request.&lt;/li&gt;
&lt;li&gt;AI agent drafts a plan or reply.&lt;/li&gt;
&lt;li&gt;System checks identity, active permissions, and policy before the agent touches any real tool.&lt;/li&gt;
&lt;li&gt;Sensitive actions force a human to approve.&lt;/li&gt;
&lt;li&gt;Every step, prompt, tool call, and result, is logged.&lt;/li&gt;
&lt;li&gt;Only the minimum data gets sent out to external tools.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;SMEs already running connected websites, data pipelines, and AI automations will recognize this approach from guides like SIÁN Agency’s &lt;a href="https://sian-agency.online/blog/modern-data-pipelines-sme" rel="noopener noreferrer"&gt;practical playbooks for small data teams&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Invented example: an SME agentic AI security checklist
&lt;/h2&gt;

&lt;p&gt;Let’s spell it out for a fictional sales automation agent:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Identity &amp;amp; Access:&lt;/strong&gt; Use a session token that expires after 30 minutes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Permissions:&lt;/strong&gt; Restrict to one CRM and a reporting endpoint.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Egress Control:&lt;/strong&gt; Outbound calls only to whitelisted domains, no open internet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prompt Handling:&lt;/strong&gt; Sanitize user input for injections; treat all uploaded docs as untrusted.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Monitoring &amp;amp; Audit:&lt;/strong&gt; Log every tool call, prompt, and error, and flag repeated failures.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Human Oversight:&lt;/strong&gt; Any customer email drafted by the agent must be approved before sending.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lifecycle Review:&lt;/strong&gt; Update agent permissions after workflow changes or every month, whichever comes first.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where should SMEs start?
&lt;/h2&gt;

&lt;p&gt;Begin small: pick a workflow that saves time but won’t cause disasters if it fails. Map the data it touches, the tools it touches, and strip out all unnecessary powers. Add explicit approval for anything risky, and turn on logging from day one.&lt;/p&gt;

&lt;p&gt;Already running agents in production? Run a short security review specifically on permissions and data flows. Want help going from review to finished workflow? &lt;a href="https://sian-agency.online/contact" rel="noopener noreferrer"&gt;Book a call with SIÁN Agency&lt;/a&gt;, who specialize in stitching secure, automation-ready pipelines together for SMEs.&lt;/p&gt;

&lt;p&gt;For more hands-on advice:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://sian-agency.online/blog/ai-agent" rel="noopener noreferrer"&gt;AI Agent: What It Is and How SMEs Use It&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://sian-agency.online/blog/n8n-automation" rel="noopener noreferrer"&gt;n8n Automation: Beginner’s Guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://sian-agency.online/blog/ethical-web-scraping-best-practices" rel="noopener noreferrer"&gt;Ethical Web Scraping: Best Practices for 2026&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Security for agentic AI isn’t just for big tech, it’s absolutely practical for SMEs, provided you keep the framework tight, update access frequently, and put humans on the loop where it counts.&lt;/p&gt;




&lt;p&gt;Originally published at &lt;a href="https://sian-agency.online/blog/agentic-ai-security-framework?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=content-os&amp;amp;utm_content=a263" rel="noopener noreferrer"&gt;sian-agency.online/blog/agentic-ai-security-framework&lt;/a&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>cybersecurity</category>
      <category>security</category>
    </item>
    <item>
      <title>How AI Receptionists Boost Customer Experience for SMEs</title>
      <dc:creator>SIÁN Agency</dc:creator>
      <pubDate>Sun, 08 Nov 2026 06:46:27 +0000</pubDate>
      <link>https://dev.to/sian-agency/how-ai-receptionists-boost-customer-experience-for-smes-1i65</link>
      <guid>https://dev.to/sian-agency/how-ai-receptionists-boost-customer-experience-for-smes-1i65</guid>
      <description>&lt;p&gt;AI receptionists can help SMEs answer phone calls faster, route customers more efficiently, and keep leads from slipping away when staff are tied up. The biggest benefit isn't the high-tech factor, it's consistency: giving callers reliable, immediate responses to routine requests, after-hours inquiries, and busy periods, with a smooth handoff to a person if the question gets tricky.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is an AI receptionist?
&lt;/h2&gt;

&lt;p&gt;An AI receptionist is a virtual phone system that picks up business calls, figures out what the caller needs, and replies using information you feed it. It can greet callers, answer common questions, route calls, and pass complicated issues to a staff member. SIÁN Agency describes its automation for SMEs as systems that wire websites and workflows to AI from day one, so the tools work with the way you already operate &lt;a href="https://sian-agency.online/" rel="noopener noreferrer"&gt;SIÁN Agency, overview&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;For small and mid-sized businesses, the appeal comes down to this: the phone keeps ringing whether your team is busy, in meetings, or closed. With an AI receptionist, calls don’t just go to voicemail when nobody’s free, they get a real response.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why do SMEs need an AI receptionist?
&lt;/h2&gt;

&lt;p&gt;Typical SME pain points:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Calls missed while staff are helping other customers&lt;/li&gt;
&lt;li&gt;After-hours questions with nobody to answer&lt;/li&gt;
&lt;li&gt;The same basic questions, over and over&lt;/li&gt;
&lt;li&gt;Lost leads if a caller doesn’t leave a message&lt;/li&gt;
&lt;li&gt;Inconsistent responses when different team members answer the phone&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An AI receptionist acts as a single, reliable front door for phone conversations. It’s not about replacing people, it’s about catching those moments that would otherwise be missed or break down.&lt;/p&gt;

&lt;h2&gt;
  
  
  What are the top use cases?
&lt;/h2&gt;

&lt;h3&gt;
  
  
  24/7 call answering and routing
&lt;/h3&gt;

&lt;p&gt;Evenings, lunch breaks, and peak busy times: the AI receptionist picks up, asks what the caller needs, and routes the call or captures information. This is critical for SMEs, where one missed call might be a lost sale or unhappy customer.&lt;/p&gt;

&lt;h3&gt;
  
  
  Handling FAQs and instant queries
&lt;/h3&gt;

&lt;p&gt;AI receptionists excel at answering routine questions, hours, location, services, booking policies. Both Nextiva and RingQ describe these tools as pulling answers from business data like website content, FAQs, and policies &lt;a href="https://www.nextiva.com/blog/ai-receptionist.html" rel="noopener noreferrer"&gt;Nextiva AI receptionist overview&lt;/a&gt;, &lt;a href="https://www.ringq.com/blog/ai-receptionist" rel="noopener noreferrer"&gt;RingQ AI receptionist guide&lt;/a&gt;. For SMEs, this means callers get the information they need right away, no waiting for a call back.&lt;/p&gt;

&lt;h3&gt;
  
  
  Appointment booking and calendar integration
&lt;/h3&gt;

&lt;p&gt;Many tools let the AI receptionist collect caller info and put bookings directly into a calendar or schedule, if set up with integrations. This cuts friction for callers and staff, especially in service businesses. Best practice: keep the booking process simple, and escalate to a person if the request gets complicated.&lt;/p&gt;

&lt;h3&gt;
  
  
  Multilingual support
&lt;/h3&gt;

&lt;p&gt;If your customers use more than one language, AI receptionists can greet and guide callers in their preferred language, making the experience smoother and more inclusive. This reduces miscommunication and helps more callers get what they need without waiting for a bilingual staff member.&lt;/p&gt;

&lt;h3&gt;
  
  
  Overflow call handling during peak times
&lt;/h3&gt;

&lt;p&gt;When staff can’t keep up, the AI receptionist steps in for basic tasks. It’s most effective as a backup, not a full replacement, so your team can focus on more complex or sensitive calls.&lt;/p&gt;

&lt;h2&gt;
  
  
  Best practices for SMEs
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Only use trusted, up-to-date information
&lt;/h3&gt;

&lt;p&gt;Configure your AI receptionist to answer only from accurate, current business info, services, hours, policies, booking rules. Outdated answers break trust quickly.&lt;/p&gt;

&lt;h3&gt;
  
  
  Make human handoff seamless
&lt;/h3&gt;

&lt;p&gt;If the system can’t answer, it should transfer to a person or capture enough context that the handoff is painless, so callers don’t have to repeat themselves.&lt;/p&gt;

&lt;h3&gt;
  
  
  Feed in real business content
&lt;/h3&gt;

&lt;p&gt;Train the AI on materials your customers actually ask about: FAQs, service details, location, sensitive topics, and keep it updated on pricing and scheduling changes.&lt;/p&gt;

&lt;h3&gt;
  
  
  Integrate with CRM and calendars
&lt;/h3&gt;

&lt;p&gt;Connecting your AI receptionist to your CRM or calendar preserves context and helps turn calls into actions, not just notes. SIÁN Agency's n8n guide breaks down workflow integration options for editing or automating these connections &lt;a href="https://sian-agency.online/blog/n8n-automation" rel="noopener noreferrer"&gt;n8n Automation guide&lt;/a&gt;. Their comparison also details how n8n, Make, and Zapier differ in flexibility and self-hosting if you think about deeper integrations &lt;a href="https://sian-agency.online/blog/n8n-make-zapier-comparison" rel="noopener noreferrer"&gt;n8n vs Make vs Zapier&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Review data and adjust
&lt;/h3&gt;

&lt;p&gt;Check call logs, transcripts, and handoff notes to spot patterns, repeated questions, failed transfers, or drop-offs. Refine your setup based on real usage to improve first-contact accuracy over chasing vanity metrics.&lt;/p&gt;

&lt;h2&gt;
  
  
  What benefits can SMEs expect?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Faster responses on the main line&lt;/li&gt;
&lt;li&gt;More coverage after hours&lt;/li&gt;
&lt;li&gt;Fewer missed leads from unanswered calls&lt;/li&gt;
&lt;li&gt;Less repetition and basic admin for staff&lt;/li&gt;
&lt;li&gt;Consistent, accurate first replies to callers&lt;/li&gt;
&lt;li&gt;Smoother experience handling routine requests&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;How much you gain depends on your business and call volume. There’s not a lot of SME-specific quantitative data out there, so treat this as an operational upgrade rather than chasing a promised percentage uplift &lt;a href="https://www.eesel.ai/blog/ai-phone-receptionist" rel="noopener noreferrer"&gt;see business context at eesel on AI receptionist impact&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Steps to implement an AI receptionist
&lt;/h2&gt;

&lt;p&gt;Start small and narrow. Here’s a sample rollout plan:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;List your most common call types (hours, location, FAQs, routing).&lt;/li&gt;
&lt;li&gt;Write clear answers and when to escalate.&lt;/li&gt;
&lt;li&gt;Set up calendar and CRM connections if needed.&lt;/li&gt;
&lt;li&gt;Test handoff paths to staff.&lt;/li&gt;
&lt;li&gt;After launch, review recordings and transcripts for improvement areas.&lt;/li&gt;
&lt;li&gt;Update your knowledge base as you learn from customer calls.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Invented example:&lt;/strong&gt; Suppose a local service business sets up an AI receptionist for after-hours calls. The system answers, confirms hours, captures caller names and requests, and transfers urgent cases to an on-call number. (This scenario is entirely invented and not drawn from a real channel.)&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion: where AI receptionists fit for SMEs
&lt;/h2&gt;

&lt;p&gt;For small and mid-sized businesses, an AI receptionist works best as a phone-front experience layer. It handles routine calls, directions, and bookings, catches leads, and makes sure the business doesn’t miss opportunities just because no one is available at that moment. The best outcomes come from a well-maintained, narrow setup tightly integrated with your existing workflows and clear human handoff.&lt;/p&gt;

&lt;p&gt;If you want direct advice on mapping an AI receptionist to your business, you can &lt;a href="https://sian-agency.online/contact" rel="noopener noreferrer"&gt;book a discovery call with SIÁN Agency&lt;/a&gt; for a tailored roadmap, or check their &lt;a href="https://sian-agency.online/blog/ai-agent" rel="noopener noreferrer"&gt;AI Agent guide&lt;/a&gt; for more use cases and options.&lt;/p&gt;




&lt;p&gt;Originally published at &lt;a href="https://sian-agency.online/blog/ai-receptionist?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=content-os&amp;amp;utm_content=a256" rel="noopener noreferrer"&gt;sian-agency.online/blog/ai-receptionist&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>n8n Automation: A Practical Beginner Guide</title>
      <dc:creator>SIÁN Agency</dc:creator>
      <pubDate>Fri, 06 Nov 2026 15:11:33 +0000</pubDate>
      <link>https://dev.to/sian-agency/n8n-automation-a-practical-beginner-guide-2lka</link>
      <guid>https://dev.to/sian-agency/n8n-automation-a-practical-beginner-guide-2lka</guid>
      <description>&lt;p&gt;n8n automation allows technical teams to connect apps, data, and AI into workflows they can inspect and modify faster than with manual routines. This guide covers what n8n is, why technical buyers choose it, and how to build your first automation in a way that keeps you in control.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is n8n automation?
&lt;/h2&gt;

&lt;p&gt;n8n is a workflow automation platform that combines a visual editor with code options, so you get the transparency of drag-and-drop and the flexibility to add custom logic when needed. It handles AI tasks, offers self-hosting or cloud, and is built for teams who want to keep visibility into their automations. &lt;a href="https://n8n.io/" rel="noopener noreferrer"&gt;The n8n product page&lt;/a&gt; presents it as an agent- and AI-native platform with options from hosted to on-prem deployment.&lt;/p&gt;

&lt;p&gt;Typical n8n workflows include triggers (like a scheduled time, incoming webhook, or user action), a series of steps (API requests, data transforms), and final actions (saving, sending, or requesting approval), all mapped visually.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why do teams pick n8n instead of other automation tools?
&lt;/h2&gt;

&lt;p&gt;Teams that choose n8n often want more control and flexibility: you can build longer, multi-step workflows, add custom code, and run everything on your own infrastructure if you prefer. n8n also includes native AI workflow components and is licensed under a &lt;a href="https://github.com/n8n-io" rel="noopener noreferrer"&gt;fair-code open-source model&lt;/a&gt;, which matters for businesses with compliance, data protection, or deployment concerns.&lt;/p&gt;

&lt;p&gt;When comparing automation platforms, SIÁN Agency’s &lt;a href="https://sian-agency.online/blog/n8n-make-zapier-comparison" rel="noopener noreferrer"&gt;n8n vs Make vs Zapier comparison&lt;/a&gt; lays out why n8n is usually the better fit for custom, AI-rich, or self-hosted setups, whereas tools like Zapier focus on short, SaaS-to-SaaS automations.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which n8n features matter most for beginners?
&lt;/h2&gt;

&lt;p&gt;If you’re new to n8n, start with these key features:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Visual workflow builder for laying out steps&lt;/li&gt;
&lt;li&gt;Integrations with many apps, plus the HTTP node for connecting any API&lt;/li&gt;
&lt;li&gt;Data transformation nodes to clean and reshape information&lt;/li&gt;
&lt;li&gt;Error handling and run history so you can debug problems&lt;/li&gt;
&lt;li&gt;Native AI and approval steps for workflows involving model calls or reviews&lt;/li&gt;
&lt;li&gt;Cloud deployment for simplicity, or self-hosting if you need more control&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can follow the &lt;a href="https://docs.n8n.io/build-your-first-workflow" rel="noopener noreferrer"&gt;n8n docs quick start&lt;/a&gt; for a hands-on example, building a simple workflow that fetches weather data on a schedule and saves it to a table. This teaches the basics without requiring a large project upfront.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you build your first workflow in n8n?
&lt;/h2&gt;

&lt;p&gt;Your first automation should be straightforward, useful, and easy to test. A common approach is: schedule a workflow, fetch data from an API, transform it, and push the result to a target system.&lt;/p&gt;

&lt;h3&gt;
  
  
  Invented example: starter workflow
&lt;/h3&gt;

&lt;p&gt;This invented example is just for learning:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Schedule trigger: every weekday at 8:00 AM&lt;/li&gt;
&lt;li&gt;Fetch: pull new leads from an external API&lt;/li&gt;
&lt;li&gt;Clean: keep only the values your team cares about&lt;/li&gt;
&lt;li&gt;Store: drop the data in a spreadsheet or CRM&lt;/li&gt;
&lt;li&gt;Notify: send a Slack alert if a field needs review&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This pattern is flexible and works for sales, support, or simple reporting. The value is turning a manual check into a repeatable workflow you can edit or extend as your needs change.&lt;/p&gt;

&lt;h2&gt;
  
  
  Can n8n handle AI agents and approvals?
&lt;/h2&gt;

&lt;p&gt;Yes, and it’s designed for teams that want oversight and control. n8n can add AI steps right into any workflow, such as triggering a model call or letting an AI agent assemble a draft, but you still set the boundaries and approvals if needed. This structure is safer than letting models act alone, especially when you need audit trails or rules. &lt;a href="https://blog.n8n.io/enterprise-workflow-automation/" rel="noopener noreferrer"&gt;n8n’s enterprise automation overview&lt;/a&gt; explains how AI steps, approval gates, and deployment options play together in a technical team’s workflow.&lt;/p&gt;

&lt;p&gt;If you want a direct introduction to where AI agents fit and where you might want deterministic steps instead, SIÁN Agency’s &lt;a href="https://sian-agency.online/blog/ai-agent" rel="noopener noreferrer"&gt;AI Agent: What It Is and How SMEs Use It&lt;/a&gt; gives useful context and examples.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should you compare before adopting n8n?
&lt;/h2&gt;

&lt;p&gt;Before committing to any automation tool, check these points:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Can you choose between self-hosted and cloud?&lt;/li&gt;
&lt;li&gt;How easy is it to inspect workflow steps and debug failures?&lt;/li&gt;
&lt;li&gt;Does it connect to the APIs and apps you use?&lt;/li&gt;
&lt;li&gt;Who on your team can build and approve automations?&lt;/li&gt;
&lt;li&gt;Is adding AI or custom logic clean and understandable?&lt;/li&gt;
&lt;li&gt;Who handles maintenance and credentials if you self-host?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The strongest argument for n8n is its blend of transparency, AI readiness, and deployment choice. If all you need is lightweight SaaS automation, a simpler tool is faster. If you need repeatable, longer workflows or want to mix code and AI with full visibility, n8n is a better fit. See SIÁN’s pricing and platform comparison for more detail.&lt;/p&gt;




&lt;p&gt;Originally published at &lt;a href="https://sian-agency.online/blog/n8n-automation?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=content-os&amp;amp;utm_content=a250" rel="noopener noreferrer"&gt;sian-agency.online/blog/n8n-automation&lt;/a&gt;&lt;/p&gt;

</description>
      <category>automation</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>AI Agent: What It Is and How SMEs Use It</title>
      <dc:creator>SIÁN Agency</dc:creator>
      <pubDate>Fri, 06 Nov 2026 15:09:43 +0000</pubDate>
      <link>https://dev.to/sian-agency/ai-agent-what-it-is-and-how-smes-use-it-82d</link>
      <guid>https://dev.to/sian-agency/ai-agent-what-it-is-and-how-smes-use-it-82d</guid>
      <description>&lt;p&gt;An AI agent is software that can take in information, make decisions, and perform multi-step tasks toward a goal with limited guidance. For small and midsize businesses, this often means turning tedious, repetitive work into more reliable and connected workflows that handle tools, escalate edge cases, and pass things to a human when needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is an AI agent?
&lt;/h2&gt;

&lt;p&gt;An AI agent is a system that can understand its environment, reason about what to do, and take actions toward a defined objective, even over a series of steps, not just in response to a single prompt. This is different from ordinary chatbots: an agent can use tools, retrieve information, follow instructions, and keep track of progress &lt;a href="https://www.crowdstrike.com/en-us/cybersecurity-101/artificial-intelligence/ai-agents/" rel="noopener noreferrer"&gt;CrowdStrike’s overview of AI agents&lt;/a&gt; and &lt;a href="https://www.lenovo.com/us/en/knowledgebase/what-is-agentic-ai/" rel="noopener noreferrer"&gt;Lenovo’s agentic AI guide&lt;/a&gt;. If a task needs a decision, uses external resources, or requires multiple steps, an AI agent may fit; if a single answer is enough, a typical chatbot is usually easier.&lt;/p&gt;

&lt;h2&gt;
  
  
  How does an AI agent work?
&lt;/h2&gt;

&lt;p&gt;Most agents follow an action loop:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Take a goal or request&lt;/li&gt;
&lt;li&gt;Break it into smaller problems&lt;/li&gt;
&lt;li&gt;Pull in relevant data or context&lt;/li&gt;
&lt;li&gt;Use tools or APIs to perform steps&lt;/li&gt;
&lt;li&gt;Check the results and decide what comes next&lt;/li&gt;
&lt;li&gt;Escalate, hand off, or finish when done&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This reflects the architecture outlined by Lenovo, where planning, context retrieval, tool use, and evaluation are key.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do you define an agent?
&lt;/h3&gt;

&lt;p&gt;One simple way is to split it into two pieces:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Definition&lt;/strong&gt;: what the agent is meant to do, which tools it can use, what rules it follows&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Context&lt;/strong&gt;: the information, documents, or data it can access while making decisions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;ThoughtSpot describes the agent’s definition (its instructions, skills, tools) and its context (real-world information or app connections) as core ingredients &lt;a href="https://www.thoughtspot.com/agentspot/blog/building-agents/what-is-an-ai-agent" rel="noopener noreferrer"&gt;ThoughtSpot's summary on building agents&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where can SMEs use AI agents?
&lt;/h2&gt;

&lt;p&gt;The biggest wins come from automating repeatable business tasks, especially across multiple systems. Common examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Routing new leads to the right team based on form inputs&lt;/li&gt;
&lt;li&gt;Drafting first-pass replies using CRM data&lt;/li&gt;
&lt;li&gt;Checking or merging records across apps (CRM, email, spreadsheets)&lt;/li&gt;
&lt;li&gt;Cleaning and enriching incoming data before entering a pipeline&lt;/li&gt;
&lt;li&gt;Monitoring news or competitors for specific triggers&lt;/li&gt;
&lt;li&gt;Generating quick summaries or reports for meetings or follow-ups&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If your team is lean and can’t afford delays with every manual handoff, agents shine in streamlining the process. SIÁN Agency works in these areas: automating websites, data cleanup, and connecting outside data to the tools teams already use &lt;a href="https://sian-agency.online/" rel="noopener noreferrer"&gt;SIÁN Agency home&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Invented example: a simple SME support agent
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Invented example&lt;/strong&gt;: A consulting firm gets a new inquiry. An AI agent classifies it, pulls company details from the CRM, drafts a reply, flags any missing data, and creates a follow-up task if needed. A human reviews and tweaks the reply before sending.&lt;/p&gt;

&lt;p&gt;This isn’t about removing human judgment; it’s about stripping out repetitive work so staff can focus on decisions and relationships.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does AI agent architecture look like?
&lt;/h2&gt;

&lt;p&gt;A basic agent typically has these four layers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Interface layer&lt;/strong&gt;: where requests enter (email, chat, forms, internal apps)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reasoning layer&lt;/strong&gt;: interprets the goal and picks the next move&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tool layer&lt;/strong&gt;: where the agent acts, API calls, database checks, app triggers&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Control layer&lt;/strong&gt;: handles logging, approval, retries, and security boundaries&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Dividing these layers keeps decision logic separate from execution, which helps with reliability, oversight, and safety. The system always controls what the agent is allowed to do, not just what the model wants to try.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should SMEs watch out for?
&lt;/h2&gt;

&lt;p&gt;AI agents can save time but aren’t “set and forget.” The main risks are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bad source data&lt;/strong&gt;: messy inputs yield messy results&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Too many permissions&lt;/strong&gt;: broad access increases risk if the agent goes off track&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Actions not logged&lt;/strong&gt;: if processes aren’t transparent, errors go unnoticed&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No clear owner&lt;/strong&gt;: if nobody is responsible, the process decays over time&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security gaps&lt;/strong&gt;: sensitive integrations demand tight access controls and reviews&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;CrowdStrike’s guidance is clear: secure the agent, its environment, and its data flows, not just the model itself CrowdStrike on agent security.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you pick the right AI agent platform?
&lt;/h2&gt;

&lt;p&gt;Start with your workflow, not a trend. Ask:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Does it connect to your existing tools?&lt;/li&gt;
&lt;li&gt;Can it log and explain its actions?&lt;/li&gt;
&lt;li&gt;Are permissions and security boundaries clear?&lt;/li&gt;
&lt;li&gt;Will a human review high-impact steps?&lt;/li&gt;
&lt;li&gt;Does it recover gracefully from errors?&lt;/li&gt;
&lt;li&gt;Can you tweak and maintain it as your business evolves?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Look for platforms and solutions that fit into your operational stack. SIÁN Agency, for example, focuses on integration-first automation, connecting sites, data, and AI to existing tools instead of replacing everything SIÁN Agency home.&lt;/p&gt;

&lt;h2&gt;
  
  
  What’s next for AI agents?
&lt;/h2&gt;

&lt;p&gt;The trend: agents are getting more connected to business tools, tailored to specific roles, and better able to work together in small groups. Rather than a single assistant for everything, most teams are moving to deploy smaller, specialized agents focused on clear, recurring tasks, like lead routing, follow-up automation, or internal reporting.&lt;/p&gt;

&lt;p&gt;If you want a hand picking the first workflow to automate, SIÁN Agency’s &lt;a href="https://sian-agency.online/contact" rel="noopener noreferrer"&gt;contact page&lt;/a&gt; can get you started with a discovery chat about your operations and what to automate next.&lt;/p&gt;




&lt;p&gt;Originally published at &lt;a href="https://sian-agency.online/blog/ai-agent?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=content-os&amp;amp;utm_content=a246" rel="noopener noreferrer"&gt;sian-agency.online/blog/ai-agent&lt;/a&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>automation</category>
    </item>
    <item>
      <title>What AI agents see when they call your Apify Actors</title>
      <dc:creator>SIÁN Agency</dc:creator>
      <pubDate>Fri, 23 Oct 2026 07:09:09 +0000</pubDate>
      <link>https://dev.to/apify/what-ai-agents-see-when-they-call-your-apify-actors-1hhn</link>
      <guid>https://dev.to/apify/what-ai-agents-see-when-they-call-your-apify-actors-1hhn</guid>
      <description>&lt;p&gt;&lt;em&gt;This post first appeared on the &lt;a href="https://blog.apify.com/what-ai-agents-see-calling-actors/" rel="noopener noreferrer"&gt;Apify blog&lt;/a&gt; as part of &lt;a href="https://apify.com/resources/write-for-apify" rel="noopener noreferrer"&gt;Write for Apify&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I run more than 300 Apify Actors at &lt;a href="https://www.sian-agency.online/" rel="noopener noreferrer"&gt;SIÁN&lt;/a&gt;, my data-pipeline and automation agency, mostly for e-commerce and property data, and I spend a lot of my week looking at run telemetry.&lt;/p&gt;

&lt;p&gt;In mid-July I was chasing a free-tier abuse problem. Someone had worked out that a free Apify account could call a monetized Actor over the API, grab the capped row allowance, abort before anything billed, and repeat. On July 14, 2026, I shipped a gate: block runs where the plan is free &lt;em&gt;and&lt;/em&gt; the origin is &lt;code&gt;API&lt;/code&gt;, before the Actor does any billable work. Console runs stayed free, because that's how people try an Actor.&lt;/p&gt;

&lt;p&gt;The next day I checked whether the gate had holes, and found one. &lt;code&gt;MCP&lt;/code&gt; is its own Apify &lt;code&gt;RunOrigin&lt;/code&gt;, separate from &lt;code&gt;API&lt;/code&gt;. It's what you get when someone wires the &lt;a href="https://docs.apify.com/platform/integrations/mcp" rel="noopener noreferrer"&gt;Apify MCP server&lt;/a&gt; into Claude, Cursor, or their own agent and the model calls your Actor as a tool. My gate didn't cover it.&lt;/p&gt;

&lt;p&gt;So I extended it: block when the plan is free and the origin is either &lt;code&gt;API&lt;/code&gt; or &lt;code&gt;MCP&lt;/code&gt;. I shipped that across five Actors, feeling reasonably good about closing a hole before it cost me anything.&lt;/p&gt;

&lt;p&gt;I had the story completely backwards.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the telemetry actually said
&lt;/h2&gt;

&lt;p&gt;Every run in my fleet writes a row to a Postgres table: origin, tier, outcome, rows, revenue. I finally aggregated the origin column across all 169,941 rows, which I should have done before writing the gate.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Origin&lt;/th&gt;
&lt;th&gt;Runs&lt;/th&gt;
&lt;th&gt;Share&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;API&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;156,482&lt;/td&gt;
&lt;td&gt;92.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;MCP&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;6,922&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;4.1%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;WEB&lt;/code&gt; (Console)&lt;/td&gt;
&lt;td&gt;5,183&lt;/td&gt;
&lt;td&gt;3.1%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;SCHEDULER&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;853&lt;/td&gt;
&lt;td&gt;0.5%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;CLI&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;501&lt;/td&gt;
&lt;td&gt;0.3%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;My first MCP run landed on June 17, 2026. Six weeks later it was 1,407 runs a week and still climbing, and it had quietly passed Apify Console to become my second-biggest source of runs.&lt;/p&gt;

&lt;p&gt;Then the part that made me wince. Of those 6,922 MCP runs, exactly 44 were rejected by my abuse gate. That's 0.6%. The rest were 86.9% successful, half of them from paying accounts, and delivered 67,323 rows.&lt;/p&gt;

&lt;p&gt;I had spent a day hardening a channel that was, by a wide margin, my healthiest one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Agents are better callers than humans
&lt;/h2&gt;

&lt;p&gt;Once I stopped treating MCP as a threat and started treating it as a user, I compared it with the other origins:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Origin&lt;/th&gt;
&lt;th&gt;Success rate&lt;/th&gt;
&lt;th&gt;Malformed input&lt;/th&gt;
&lt;th&gt;Share paid&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;MCP&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;86.9%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1.6%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;50.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;API&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;88.0%&lt;/td&gt;
&lt;td&gt;1.4%&lt;/td&gt;
&lt;td&gt;80.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;WEB&lt;/code&gt; (Console)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;47.9%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;8.8%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;10.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Humans fail more than half their Console runs. Agents fail 13.1% of theirs, and send malformed input: 1.6% versus 8.8%.&lt;/p&gt;

&lt;p&gt;That's not because models are careful. It's because the MCP server hands a model my input schema as JSON Schema, and the model sends exactly what that schema declares. A human in Console gets a rendered form: labeled fields, a dropdown of valid enum values, an example sitting in the box, and a validator that won't let them submit nonsense. None of that lives in the schema. It's scaffolding Console builds &lt;em&gt;around&lt;/em&gt; the schema.&lt;/p&gt;

&lt;p&gt;Take the scaffolding away and whatever my schema literally says becomes the entire contract. So I went looking for where my schemas were lying.&lt;/p&gt;

&lt;h2&gt;
  
  
  My first approach was wrong too
&lt;/h2&gt;

&lt;p&gt;I did the obvious thing and grepped all 253 schemas the fleet had in July for the failure mode I already knew about: a field with a &lt;code&gt;prefill&lt;/code&gt; (which only populates Console's editor) but no &lt;code&gt;default&lt;/code&gt; (which the platform actually injects into every run). A model sending &lt;code&gt;{}&lt;/code&gt; gets the default and never sees the prefill.&lt;/p&gt;

&lt;p&gt;The grep found 74 Actors. I had a bug list, or so I thought.&lt;/p&gt;

&lt;p&gt;I've been burned by static analysis enough times to check before acting on it, so I wrote a probe that calls an Actor through the MCP server with &lt;code&gt;{}&lt;/code&gt;, precisely what a model sends when told nothing is required. I ran it against the 16 most-used of them.&lt;/p&gt;

&lt;p&gt;Roughly half were fine:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Verdict&lt;/th&gt;
&lt;th&gt;Actors&lt;/th&gt;
&lt;th&gt;Share&lt;/th&gt;
&lt;th&gt;What the agent sees&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;REJECTED&lt;/code&gt; (-32602)&lt;/td&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;56.2%&lt;/td&gt;
&lt;td&gt;actionable protocol error, no run billed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;LOUD-FAIL&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;12.5%&lt;/td&gt;
&lt;td&gt;run failed, visibly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;SILENT-EMPTY&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;18.8%&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;SUCCEEDED&lt;/code&gt;, zero rows&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;SILENT-STATS&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;12.5%&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;SUCCEEDED&lt;/code&gt;, rows that aren't data&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The grep had flagged Actors that behave correctly, and it could never have found the category that actually matters. &lt;code&gt;SILENT-EMPTY&lt;/code&gt; and &lt;code&gt;SILENT-STATS&lt;/code&gt; are the same defect wearing different clothes. Five of these 16 calls failed in a way no agent can detect, and no amount of schema-reading surfaces that. You have to run the thing.&lt;/p&gt;

&lt;p&gt;Getting those five counted correctly took two passes, because my first probe was also wrong. The MCP call returns after a wait cap of about 30 seconds, so any Actor slower than that comes back still &lt;code&gt;RUNNING&lt;/code&gt;, and I was scoring that as a failure. Three property scrapers got marked broken when they were only slow. One of them was genuinely broken in the quiet way, and my bug had filed it under the loud way, which flattered the result.&lt;/p&gt;

&lt;p&gt;The fix is to poll until the run settles, and to give "still running" a verdict of its own so it can never be mistaken for a failure:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;TERMINAL&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;SUCCEEDED&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;FAILED&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ABORTED&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;TIMED-OUT&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="ow"&gt;is&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;TERMINAL&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;UNKNOWN-STILL-RUNNING&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;     &lt;span class="c1"&gt;# never call a slow Actor a broken one
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The Actor knew exactly what was wrong and told no one
&lt;/h2&gt;

&lt;p&gt;Here's &lt;a href="https://apify.com/sian.agency/apartments-com-property-scraper" rel="noopener noreferrer"&gt;&lt;code&gt;apartments-com-property-scraper&lt;/code&gt;&lt;/a&gt;, one of mine, called with &lt;code&gt;{}&lt;/code&gt;. This is the complete set of signals a model receives.&lt;/p&gt;

&lt;p&gt;Run metadata:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"SUCCEEDED"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"runTimeSecs"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;3.846&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The MCP result flag:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"isError"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And the summary the MCP server writes for the model, verbatim:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;SUCCEEDED in 3.846s. 1 item; 32 fields available. Key-value store has 2 keys. Use get-dataset-items with datasetId=… and limit (for example 20) to fetch items (1 total). Available fields (dot notation): &lt;code&gt;__retryHelper&lt;/code&gt;, &lt;code&gt;searchMode&lt;/code&gt;, &lt;code&gt;mode&lt;/code&gt;, &lt;code&gt;queriesRequested&lt;/code&gt;, …&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Every one of those says the call worked and produced a result. So the agent fetches the item:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"__retryHelper"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"searchMode"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"byLocation"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"queriesRequested"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"queriesSucceeded"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"listingsPushed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"totalResultsAvailable"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"userTier"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"PAID"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"failures"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"query"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"(input)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"error"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"location must be a non-empty string."&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There it is: &lt;code&gt;location must be a non-empty string.&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;My Actor diagnosed the problem correctly, phrased it in plain English, and filed it inside a nested array, on a row that isn't a result, on a run marked &lt;code&gt;SUCCEEDED&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;An agent that asked for apartments now holds one object with 32 fields, none of which is an apartment. Best case it tells its user "no listings found." Worst case it tries to summarize a run-summary row as a property listing.&lt;/p&gt;

&lt;p&gt;Nobody forgot to handle the error. The only thing missing was the idea that something other than a human reading a run log would ever need to find it. I built that Actor when the only caller I imagined was a person with a browser open. That field carries a default now, which is why the probe returns &lt;code&gt;OK&lt;/code&gt; against it today.&lt;/p&gt;

&lt;h2&gt;
  
  
  A platform bug I found on the way
&lt;/h2&gt;

&lt;p&gt;While isolating why the MCP server rejected some Actors cleanly and not others, I found a mismatch in the server itself.&lt;/p&gt;

&lt;p&gt;Ask the MCP server for a tool definition and compare it against the Actor's own schema:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Mcp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tools&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;sian.agency/costco-data-scraper&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;tool&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;list_tools&lt;/span&gt;&lt;span class="p"&gt;()[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tool&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;inputSchema&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;required&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;     &lt;span class="c1"&gt;# []
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here's the relevant part of that Actor's &lt;code&gt;.actor/INPUT_SCHEMA.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"required"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"operation"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"properties"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"operation"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"string"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"default"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"search"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"enum"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"search"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"productDetails"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The Actor declares &lt;code&gt;operation&lt;/code&gt; required. The tool definition handed to the model says nothing is required. So the model calls with &lt;code&gt;{}&lt;/code&gt;, and:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;MCP error -32602: Invalid arguments for tool "sian-dot-agency--costco-data-scraper".
Validation errors: root: must have required property 'operation'.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Rejected for missing exactly the field it was told it could omit.&lt;/p&gt;

&lt;p&gt;The discriminator is the &lt;code&gt;default&lt;/code&gt;. &lt;code&gt;tools/list&lt;/code&gt; drops a field from &lt;code&gt;required&lt;/code&gt; when that field carries a default. That's defensible on its own: a defaulted field is satisfiable without the caller. But &lt;code&gt;tools/call&lt;/code&gt; validates against the raw schema and doesn't apply defaults first. The two halves disagree.&lt;/p&gt;

&lt;p&gt;The control case confirms it. &lt;a href="https://apify.com/sian.agency/amazon-product-scraper" rel="noopener noreferrer"&gt;&lt;code&gt;amazon-product-scraper&lt;/code&gt;&lt;/a&gt; also declares a required field, &lt;code&gt;urls&lt;/code&gt;, but &lt;code&gt;urls&lt;/code&gt; has a &lt;code&gt;prefill&lt;/code&gt; and no &lt;code&gt;default&lt;/code&gt;, so nothing gets stripped:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Actor&lt;/th&gt;
&lt;th&gt;&lt;code&gt;INPUT_SCHEMA&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;&lt;code&gt;tools/list&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;Field has &lt;code&gt;default&lt;/code&gt;?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;costco-data-scraper&lt;/td&gt;
&lt;td&gt;&lt;code&gt;['operation']&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;[]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ebay-data-scraper&lt;/td&gt;
&lt;td&gt;&lt;code&gt;['operation']&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;[]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bayut-property-scraper&lt;/td&gt;
&lt;td&gt;&lt;code&gt;['purpose']&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;[]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;glassdoor-data-scraper&lt;/td&gt;
&lt;td&gt;&lt;code&gt;['operation']&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;[]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;booking-com-scraper&lt;/td&gt;
&lt;td&gt;&lt;code&gt;['operation']&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;[]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;amazon-product-scraper&lt;/td&gt;
&lt;td&gt;&lt;code&gt;['urls']&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;['urls']&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;no&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Across the 253 schemas, 59 Actors declare a required field that also carries a default, or 23.3%. Every one tells a model a mandatory field is optional.&lt;/p&gt;

&lt;p&gt;In fairness, it's recoverable. The error is clear, and a competent agent retries or calls &lt;code&gt;fetch-actor-details&lt;/code&gt;, which reports &lt;code&gt;required&lt;/code&gt; correctly. My &lt;a href="https://apify.com/sian.agency/aliexpress-product-scraper" rel="noopener noreferrer"&gt;&lt;code&gt;aliexpress-product-scraper&lt;/code&gt;&lt;/a&gt; is in the affected set and is still my second-most agent-called Actor at 818 MCP runs, 95.0% of them paid. Models cope, but they burn a round-trip on the first call, every time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Apify's QA can't catch this
&lt;/h2&gt;

&lt;p&gt;Apify runs every public Actor daily and requires &lt;code&gt;SUCCEEDED&lt;/code&gt; plus a dataset with rows in it within five minutes. Three consecutive failures flag it "under maintenance." It's a good gate and it has caught real breakage for me.&lt;/p&gt;

&lt;p&gt;It runs the Actor with its &lt;em&gt;prefill&lt;/em&gt; input.&lt;/p&gt;

&lt;p&gt;A &lt;code&gt;SILENT-EMPTY&lt;/code&gt; or &lt;code&gt;SILENT-STATS&lt;/code&gt; run reports &lt;code&gt;SUCCEEDED&lt;/code&gt;, so the gate sees what the agent sees and agrees with it. And the prefill is only one point in my input space. Every other enum value is untested by construction.&lt;/p&gt;

&lt;p&gt;My &lt;a href="https://apify.com/sian.agency/suumo-property-scraper" rel="noopener noreferrer"&gt;&lt;code&gt;suumo-property-scraper&lt;/code&gt;&lt;/a&gt; hardcoded a region parameter while advertising all 47 Japanese prefectures. About 40 of them returned zero results, silently, from launch. It never tripped the gate, because the one prefecture the prefill uses happens to sit in the hardcoded region. A human clicking through the dropdown would have found it eventually. An agent picking a prefecture at random finds it immediately, and gets &lt;code&gt;SUCCEEDED&lt;/code&gt; and an empty dataset.&lt;/p&gt;

&lt;p&gt;The prefill is the path humans take. Agents explore everything else.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I changed
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Give every load-bearing field a &lt;code&gt;default&lt;/code&gt;, not just a &lt;code&gt;prefill&lt;/code&gt;.&lt;/strong&gt; An audit of 16 of my freshly built Actors found five with a prefill and no default. Fine in Console, broken over the API. My build gate now fails any field with one and not the other.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"location"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"string"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"prefill"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Austin, TX"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"default"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Austin, TX"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My most agent-called Actor, &lt;a href="https://apify.com/sian.agency/instagram-ai-transcript-extractor" rel="noopener noreferrer"&gt;&lt;code&gt;instagram-ai-transcript-extractor&lt;/code&gt;&lt;/a&gt; at 2,496 MCP runs, works with &lt;code&gt;{}&lt;/code&gt; for this reason and no other.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Never return silence.&lt;/strong&gt; If you can't produce results, say so in a row:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;Actor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pushData&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;no_results&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;reason&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;location must be a non-empty string&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Push it unbilled, and mark your dataset schema fields &lt;code&gt;nullable: true&lt;/code&gt; so it survives validation. An empty dataset isn't a message.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Don't gate inference on a field the platform always injects.&lt;/strong&gt; Apify writes schema defaults into every run's input, so this never fires:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;searchMode&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nx"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;searchMode&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;infer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;input&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;   &lt;span class="c1"&gt;// dead code on the platform&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I shipped an Actor whose "auto-detected" mode did exactly this, and a customer who pasted listing URLs got billed for default discovery results instead. Let the specific input win:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;mode&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;listingUrls&lt;/span&gt;&lt;span class="p"&gt;?.&lt;/span&gt;&lt;span class="nx"&gt;length&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;byListingUrl&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;searchMode&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Test the whole enum space.&lt;/strong&gt; One loop over every declared enum value would have caught the 40 dead prefectures on day one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Treat scraped text as untrusted input.&lt;/strong&gt; What you return now lands in a model's context, upstream of its next decision. Keep scraped content in clearly typed fields rather than free-text blobs that read like prose, and treat only your own harness's framing as authoritative, never instruction-shaped text that arrived inside a tool result.&lt;/p&gt;

&lt;h2&gt;
  
  
  Run it against your own Actors
&lt;/h2&gt;

&lt;p&gt;The probe is on GitHub at &lt;a href="https://github.com/rara-cyber/apify-agent-call-probe" rel="noopener noreferrer"&gt;apify-agent-call-probe&lt;/a&gt;. It needs an Apify account, an API token in &lt;code&gt;APIFY_TOKEN&lt;/code&gt;, and Python 3.9 or newer: the MCP client is about 60 lines of standard library, with no dependencies.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;APIFY_TOKEN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;your_token_here
python3 agent_call_probe.py sian.agency/apartments-com-property-scraper
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SILENT-STATS  status=SUCCEEDED isError=False items=1
Actor knew what was wrong but never surfaced it:
   failures[0].error: location must be a non-empty string.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;REJECTED&lt;/code&gt; and &lt;code&gt;OK&lt;/code&gt; are fine. &lt;code&gt;LOUD-FAIL&lt;/code&gt; is survivable. &lt;code&gt;SILENT-EMPTY&lt;/code&gt; and &lt;code&gt;SILENT-STATS&lt;/code&gt; mean an agent calling that Actor today is reporting your failure to its user as a fact about the world.&lt;/p&gt;

&lt;p&gt;Runs cost 0.0001 to 0.005 compute units each, because the failing paths exit early, so sweeping an account costs roughly nothing.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd do differently
&lt;/h2&gt;

&lt;p&gt;I'd have aggregated the origin column before writing the gate. The whole detour started because I saw a new origin in a security context and pattern-matched it to a threat, when four minutes of SQL would have told me it was my healthiest channel. The instinct to treat unfamiliar traffic as hostile is usually right and was expensive here.&lt;/p&gt;

&lt;p&gt;And I'd stop treating &lt;code&gt;INPUT_SCHEMA.json&lt;/code&gt; as configuration for a form. It's a published API contract now, and machines read it far more often than people do. Everything in this article follows from not having noticed when that flipped.&lt;/p&gt;

&lt;p&gt;If you run public Actors, the two-minute version is: point the probe at your three most-used ones. I expected mine to be fine. Nearly a third of them weren't.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;All figures come from SIÁN's own run telemetry and from live calls against the Apify MCP server on July 31, 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>webscraping</category>
      <category>testing</category>
    </item>
    <item>
      <title>Someone Ran My Scraper 1,251 Times and Paid Me Nothing</title>
      <dc:creator>SIÁN Agency</dc:creator>
      <pubDate>Mon, 06 Jul 2026 15:10:15 +0000</pubDate>
      <link>https://dev.to/sian-agency/someone-ran-my-scraper-1251-times-and-paid-me-nothing-58m0</link>
      <guid>https://dev.to/sian-agency/someone-ran-my-scraper-1251-times-and-paid-me-nothing-58m0</guid>
      <description>&lt;p&gt;Someone ran one of my public actors &lt;strong&gt;1,251 times in four days.&lt;/strong&gt; I earned roughly enough to cover a sandwich.&lt;/p&gt;

&lt;p&gt;If your first instinct is "billing bug," you're going to lose this game. Mine wasn't broken. The runs were real, the results were real, and every single one was engineered to pay me nothing.&lt;/p&gt;

&lt;h2&gt;
  
  
  The spike you'll mistake for success
&lt;/h2&gt;

&lt;p&gt;Here's what the dashboard showed: a wall of runs. More traffic in four days than the actor saw the entire previous month. Glance at the top-line chart and that's a growth story. You screenshot it. You feel good.&lt;/p&gt;

&lt;p&gt;Then you look at &lt;em&gt;who&lt;/em&gt;. In four days: &lt;strong&gt;1,251 runs across 761 different accounts.&lt;/strong&gt; Almost all on the free plan. Every request through the API, none through the UI. Around 30,000 results pulled.&lt;/p&gt;

&lt;p&gt;That same actor had &lt;strong&gt;13 real users the entire previous month.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Free traffic is not free to you
&lt;/h2&gt;

&lt;p&gt;This is where the mental model breaks. A free-tier user isn't a marketing cost you eat for goodwill. On a scraper, every run I serve calls a paid data API upstream, one I pay for per request. So 30,000 free results is 30,000 units of &lt;em&gt;my&lt;/em&gt; quota, spent, for a rounding error in revenue.&lt;/p&gt;

&lt;p&gt;The attacker pays nothing. I pay the upstream. That's the entire play.&lt;/p&gt;

&lt;h2&gt;
  
  
  The two-fingerprint tell
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmplmlm31ktv3gmwce05k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmplmlm31ktv3gmwce05k.png" alt="Funnel: 761 free-tier accounts collapse to 2 session fingerprints, and one operator — 1,251 runs, ~30,000 results, $0 revenue, your paid API quota drained." width="800" height="440"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;761 accounts sounds like 761 people. It wasn't. When I grouped the runs by session fingerprint, all 1,251 collapsed into &lt;strong&gt;two&lt;/strong&gt;. One fingerprint owned 1,050 runs, the other 183.&lt;/p&gt;

&lt;p&gt;That's not 761 users. That's one operator running a script that mints throwaway accounts. The account count is noise. The fingerprint count is the truth. The moment you see two, you stop investigating and start defending.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why your billing looked fine the whole time
&lt;/h2&gt;

&lt;p&gt;The trap: I checked the money first. Charged events matched the platform's own numbers to the cent. Everything reconciled. So for an hour I assumed the system was working as intended — because &lt;em&gt;technically it was.&lt;/em&gt; Billing was flawless. The abuse lived one layer up, in who was allowed to trigger a paid run at all.&lt;/p&gt;

&lt;p&gt;Reconciling your billing tells you nothing about whether you should have run the job.&lt;/p&gt;

&lt;h2&gt;
  
  
  The brake I should have shipped first
&lt;/h2&gt;

&lt;p&gt;The fix is small and boring, which is how you know it's right. Gate the expensive work behind a paid-plan check that fails &lt;em&gt;before&lt;/em&gt; the first upstream call:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Reject free-tier runs before we spend a cent of upstream quota.&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;isPaying&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="nx"&gt;onPlatformPaidFlag&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;        &lt;span class="c1"&gt;// a real paying user on the platform&lt;/span&gt;
  &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;isOnPlatform&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nx"&gt;testOverride&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;      &lt;span class="c1"&gt;// local/dev smoke test only&lt;/span&gt;

&lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;isPaying&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Paid plan required — no upstream call, no charge.&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="c1"&gt;// ...only paying runs reach the expensive part&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Fast-failing here means the farm gets an immediate error and burns zero quota. It's reversible: one block, deleted the day the farm gives up. No refactor, no rewrite.&lt;/p&gt;

&lt;h2&gt;
  
  
  The one gotcha before you copy this
&lt;/h2&gt;

&lt;p&gt;Don't gate blindly. The platform runs its own automated test of your public actor on a &lt;em&gt;non-paying&lt;/em&gt; run to keep it visible in the store. Reject that too and your listing quietly goes empty and sinks in the rankings. Whitelist the platform's own test origin, then throw on everyone else.&lt;/p&gt;

&lt;h2&gt;
  
  
  Do this today
&lt;/h2&gt;

&lt;p&gt;Ship the brake before you need the forensics. I did it in the wrong order so you don't have to.&lt;/p&gt;

&lt;p&gt;If you run public actors, go look at your last big traffic spike right now. Group it by fingerprint, not by account. Tell me what you find in the comments. And if you'd rather your scrapers shipped with the brake already wired in, that's the kind of thing &lt;a href="https://apify.com/sian.agency?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=nova&amp;amp;utm_content=free-tier-farm-emergency-brake" rel="noopener noreferrer"&gt;we build at SIÁN Agency&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Written by **Nova Chen&lt;/em&gt;&lt;em&gt;, Automation Dev Advocate at SIÁN Agency.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webscraping</category>
      <category>apify</category>
      <category>automation</category>
      <category>softwareengineering</category>
    </item>
    <item>
      <title>Replayable Runs &gt; Faster Runs. Stop Optimising for the Wrong Number.</title>
      <dc:creator>SIÁN Agency</dc:creator>
      <pubDate>Mon, 06 Jul 2026 09:00:00 +0000</pubDate>
      <link>https://dev.to/sian-agency/replayable-runs-faster-runs-stop-optimising-for-the-wrong-number-3ob0</link>
      <guid>https://dev.to/sian-agency/replayable-runs-faster-runs-stop-optimising-for-the-wrong-number-3ob0</guid>
      <description>&lt;p&gt;Most "we made it 3x faster" scraper posts miss the actual point. Speed is rarely the constraint. &lt;em&gt;Replayability&lt;/em&gt; is.&lt;/p&gt;

&lt;p&gt;If your scraper takes 4 hours to run and a single URL fails halfway through, can you re-run &lt;em&gt;just that URL&lt;/em&gt; in 30 seconds? Or do you have to start the whole 4-hour job over?&lt;/p&gt;

&lt;p&gt;If the answer is "start over," you don't have a scraper. You have a long-running prayer.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 3-item checklist
&lt;/h2&gt;

&lt;p&gt;A replayable run looks like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Inputs are explicit and persisted.&lt;/strong&gt; Every URL/parameter the run is processing is written to a queue or dataset before it starts. You can re-read the input list later.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Outputs are addressable per input.&lt;/strong&gt; You can ask "did URL X succeed?" and get a yes/no, not "well, the run finished, so probably."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Failures are first-class records.&lt;/strong&gt; Failed inputs go to a separate dataset/queue with the error reason, ready to feed back into a retry run.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When all three hold, "rerun the failures" is a one-liner. When any of them is missing, recovery is manual archaeology.&lt;/p&gt;

&lt;h2&gt;
  
  
  The trick — input/output as separate datasets
&lt;/h2&gt;

&lt;p&gt;Here's the shape:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;apify&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Actor&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Dataset&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;apify.storages&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;RequestQueue&lt;/span&gt;

&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;Actor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;init&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;input_data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;Actor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get_input&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="c1"&gt;# 1. Push inputs into a queue. Idempotent — re-runs skip already-done items.
&lt;/span&gt;&lt;span class="n"&gt;queue&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;RequestQueue&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;podcast-urls-2026-06&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;input_data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;urls&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]:&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;queue&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add_request&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;url&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;uniqueKey&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt;

&lt;span class="c1"&gt;# 2. Process the queue, splitting outputs into success and failure datasets.
&lt;/span&gt;&lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;Dataset&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;podcast-results-2026-06&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;failures&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;Dataset&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;podcast-failures-2026-06&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nf"&gt;while &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;queue&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fetch_next_request&lt;/span&gt;&lt;span class="p"&gt;()):&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;record&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;transcribe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;url&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
        &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push_data&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;record&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;queue&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;mark_request_as_handled&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nb"&gt;Exception&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;failures&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push_data&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
            &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;url&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;url&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
            &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;error&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
            &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;failed_at&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;utcnow&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;isoformat&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
        &lt;span class="p"&gt;})&lt;/span&gt;
        &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;queue&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;mark_request_as_handled&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# don't retry blindly
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three storages: input queue, success dataset, failure dataset. The queue is keyed by URL, so adding the same URLs again is a no-op. The failure dataset is the input for the next retry run.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fypztx3ee1u0fm581ybxe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fypztx3ee1u0fm581ybxe.png" alt="Fig. 1 — Three storages, one run. Failures are data, not exceptions." width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick case
&lt;/h2&gt;

&lt;p&gt;The podcast transcription actor used to be a 6-hour batch job. When a single episode failed (audio download timeout, transcription model glitch, anything), the recovery story was: "find the failed URL in the logs, hand-craft a one-URL run, hope the second try works."&lt;/p&gt;

&lt;p&gt;After moving to the queue + split-dataset pattern:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Failed URLs are visible in a dedicated dataset, with the error and timestamp.&lt;/li&gt;
&lt;li&gt;"Retry yesterday's failures" is one button: open the failures dataset, push its rows into a new run as input.&lt;/li&gt;
&lt;li&gt;The original run's success dataset doesn't get re-processed — it just gets &lt;em&gt;appended to&lt;/em&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What used to take 30 minutes of manual triage is now a 30-second action. Same scraper, same selectors, same model — different runtime structure.&lt;/p&gt;

&lt;h2&gt;
  
  
  The CTA you didn't ask for
&lt;/h2&gt;

&lt;p&gt;The queue + success-dataset + failure-dataset pattern is the third thing every actor we ship gets, after request blocking and selector ladder — visible in the &lt;a href="https://apify.com/sian.agency/transcribe-podcast-to-text?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=nova&amp;amp;utm_content=replayable-runs-failure-datasets" rel="noopener noreferrer"&gt;podcast transcription actor&lt;/a&gt;. (We have a starter template now. Same shape every time.)&lt;/p&gt;

&lt;p&gt;So:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Open your scraper. If a single URL fails, what does recovery look like?&lt;/strong&gt; If your answer takes more than one paragraph, drop it in the comments — I'll show you the smaller version.&lt;/p&gt;

&lt;p&gt;Agree, disagree, or have a recovery story that doesn't need this? Reply.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Written by **Nova Chen&lt;/em&gt;&lt;em&gt;, Automation Dev Advocate at SIÁN Agency. Find more from Nova on &lt;a href="https://dev.to/sian-agency"&gt;dev.to&lt;/a&gt;. For custom scraping or automation work, &lt;a href="https://sian.agency?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=nova&amp;amp;utm_content=replayable-runs-failure-datasets" rel="noopener noreferrer"&gt;hire SIÁN Agency&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>productivity</category>
      <category>systemdesign</category>
      <category>webscraping</category>
    </item>
    <item>
      <title>I Rewrote Our Instagram Transcript Actor for Pay-Per-Event Pricing. The Economics Flipped.</title>
      <dc:creator>SIÁN Agency</dc:creator>
      <pubDate>Thu, 25 Jun 2026 03:00:00 +0000</pubDate>
      <link>https://dev.to/sian-agency/i-rewrote-our-instagram-transcript-actor-for-pay-per-event-pricing-the-economics-flipped-154d</link>
      <guid>https://dev.to/sian-agency/i-rewrote-our-instagram-transcript-actor-for-pay-per-event-pricing-the-economics-flipped-154d</guid>
      <description>&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; — Moved an Instagram transcript actor from pay-per-result to pay-per-event billing. Three events, not one number. Margin held, retries stopped silently bleeding cash, and the actor is now honest about what it's actually charging for. If your scraper has a "credits" tab in the README, this is for you.&lt;/p&gt;

&lt;p&gt;For a year I shipped scrapers the same way everyone does: one big knob — pay-per-result, $X per item, computed at the end of the run. It looked clean from the README. It was a mess underneath.&lt;/p&gt;

&lt;p&gt;The actor would start, spin up a browser, hit Instagram, run into a transient block, retry, succeed on three out of ten URLs, and spit back a number. The user paid for three. We absorbed the cost of the seven retries, the cold start, and the GPU minutes the transcription model burned on partial audio. On a good week the unit economics worked. On a bad week — when Instagram changed something and our success rate dropped to 60% — we paid Apify and OpenAI for the privilege of running a free service.&lt;/p&gt;

&lt;p&gt;That's the trap pay-per-result puts you in. Your price is fixed. Your cost isn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  The teardown
&lt;/h2&gt;

&lt;p&gt;Pay-per-result conflates three different things into one transaction:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Setup work&lt;/strong&gt; — booting the actor, validating input, warming the browser. Happens once per run regardless of how many URLs you pass.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Per-item work&lt;/strong&gt; — fetching the post, extracting media, calling the transcription model. Scales linearly with input.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Optional premium work&lt;/strong&gt; — the fast-processing path that costs us more per item but the user explicitly asked for.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Charging one rate for "a result" forces you to subsidise items #1 and #3 out of the margin on item #2. When users bulk-submit URLs, item #1 amortises and you're fine. When they submit one URL at a time, you eat the setup cost on every run. When they enable fast processing on every call, you eat the premium delta on every call.&lt;/p&gt;

&lt;p&gt;Apify's pay-per-event model lets you charge for each of these separately. So we did.&lt;/p&gt;

&lt;h2&gt;
  
  
  The replacement pattern
&lt;/h2&gt;

&lt;p&gt;The new actor declares three events in &lt;code&gt;actor.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"monetization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"events"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"ActorRunStarted"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;            &lt;/span&gt;&lt;span class="nl"&gt;"price"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;0.005&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"InstagramContentProcessed"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nl"&gt;"price"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;0.018&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"FastProcessingUpgrade"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nl"&gt;"price"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;0.002&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then in the actor body, you charge against those events at the moment the work is actually done:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;Actor&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;apify&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;Actor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;init&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;Actor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;charge&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;eventName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;ActorRunStarted&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="k"&gt;for &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;url&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nx"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;bulkUrls&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;processInstagramPost&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;fastProcessing&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;Dataset&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pushData&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;result&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="c1"&gt;// Only charge per item on success.&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;Actor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;charge&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;eventName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;InstagramContentProcessed&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;

    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;fastProcessing&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;Actor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;charge&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;eventName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;FastProcessingUpgrade&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;err&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Failed items don't bill the user. They also don't bleed margin&lt;/span&gt;
    &lt;span class="c1"&gt;// because the run-started fee already covered the setup.&lt;/span&gt;
    &lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;warning&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`Skipping &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;url&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;: &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;err&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;message&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;Actor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;exit&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three lines of policy:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Run starts always bill.&lt;/strong&gt; $0.005 covers boot. Doesn't matter if zero items succeed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Per-item billing only fires after &lt;code&gt;pushData&lt;/code&gt;.&lt;/strong&gt; Failures are free for the user — and free of margin loss for us, because we already covered fixed cost.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Premium path bills on top.&lt;/strong&gt; If the user opted into fast processing, that delta is charged separately and visibly.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcf9p23135rzkmd3be2zn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcf9p23135rzkmd3be2zn.png" alt="Fig. 1 — Three billing events per run. Setup, per-item, and optional premium are charged separately." width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Result
&lt;/h2&gt;

&lt;p&gt;Three months in:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Margin per run &lt;strong&gt;stopped going negative&lt;/strong&gt; on small-batch / high-failure runs. The run-started fee acts as a floor.&lt;/li&gt;
&lt;li&gt;Failed-URL ratio dropped from 12% to 4% — not because we got better, but because we stopped &lt;em&gt;hiding&lt;/em&gt; failures behind a flat result fee. Users started reporting bad URLs in support, instead of opening refund tickets.&lt;/li&gt;
&lt;li&gt;Average revenue per user went &lt;strong&gt;up&lt;/strong&gt;, not down, even though our headline price ($0.018/item) was lower than the previous flat $0.025. Setup fee + opt-in premium fee made up the difference.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Cleaner pricing, cleaner margin, cleaner conversation with users about what they're actually paying for.&lt;/p&gt;

&lt;p&gt;If you're running an Apify actor on flat pay-per-result and your retry rate is anything above noise, you're subsidising the unreliable part of your stack. Move the line. Charge for what you do, not for what survives. The Instagram actor I rewrote with this model is live at &lt;a href="https://apify.com/sian.agency/instagram-ai-transcript-extractor?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=jonas&amp;amp;utm_content=pay-per-event-pricing-instagram-actor" rel="noopener noreferrer"&gt;Instagram AI Transcript Extractor&lt;/a&gt; — same shape applied across the rest of our actor portfolio over the last quarter.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What event are you not charging for that you should be?&lt;/strong&gt; Drop the actor in the comments — I'll look at the schema.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Written by **Jonas Keller&lt;/em&gt;&lt;em&gt;, Senior Automation Architect at SIÁN Agency. Find more from Jonas on &lt;a href="https://dev.to/sian-agency"&gt;dev.to&lt;/a&gt;. For custom scraping or automation work, &lt;a href="https://sian.agency?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=jonas&amp;amp;utm_content=pay-per-event-pricing-instagram-actor" rel="noopener noreferrer"&gt;hire SIÁN Agency&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>saas</category>
      <category>softwareengineering</category>
      <category>webscraping</category>
    </item>
    <item>
      <title>Migration Playbook: Cron Script Actor. Six Steps, No Rewrites.</title>
      <dc:creator>SIÁN Agency</dc:creator>
      <pubDate>Mon, 22 Jun 2026 02:30:00 +0000</pubDate>
      <link>https://dev.to/sian-agency/migration-playbook-cron-script-actor-six-steps-no-rewrites-38o6</link>
      <guid>https://dev.to/sian-agency/migration-playbook-cron-script-actor-six-steps-no-rewrites-38o6</guid>
      <description>&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; — Migrating a long-running cron-based scraper to an actor architecture does not require a rewrite. It requires &lt;em&gt;six structural changes&lt;/em&gt; applied in order. Each one is independently shippable. Each one moves the scraper closer to a state where infrastructure is no longer your problem. We migrated our interview transcription pipeline this way over four iterations. Here's the order I'd run it again.&lt;/p&gt;

&lt;p&gt;I've watched too many migrations fail because someone said "let's rewrite this as an actor" and treated it as a from-scratch project. They burn a sprint, miss edge cases the original handled, ship something that works in dev and breaks under real input, and end up reverting.&lt;/p&gt;

&lt;p&gt;The pipeline doesn't need a rewrite. It needs surgery.&lt;/p&gt;

&lt;h2&gt;
  
  
  The six-step migration order
&lt;/h2&gt;

&lt;p&gt;Each step is a PR. Each step ships independently. The cron job keeps running until step 6.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1 — Extract input from the script body
&lt;/h3&gt;

&lt;p&gt;Find the hardcoded list of URLs / config values / paths in your script. Move them to a JSON config file. The script reads from the config; the config is parameterised.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Before:
&lt;/span&gt;&lt;span class="n"&gt;URLS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;https://...&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;https://...&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;OUTPUT_PATH&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;/var/data/output.csv&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;

&lt;span class="c1"&gt;# After:
&lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;
&lt;span class="n"&gt;config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stdin&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;urls&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;urls&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;output_path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;output_path&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The cron now does &lt;code&gt;cat config.json | python script.py&lt;/code&gt; instead of &lt;code&gt;python script.py&lt;/code&gt;. Behaviour identical. Surface area changed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why first&lt;/strong&gt;: every later step depends on having a typed input. Doing this first means everything that follows operates on the same shape.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2 — Replace ad-hoc output with a structured dataset
&lt;/h3&gt;

&lt;p&gt;Instead of writing rows directly to a CSV, push them to a function that wraps the persistence layer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;push_record&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;record&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="c1"&gt;# Today, this writes to a CSV.
&lt;/span&gt;    &lt;span class="nf"&gt;write_csv_row&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;output_path&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;record&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Tomorrow, this writes to Apify Dataset, S3, BigQuery, whatever.
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Same data shape, abstracted writer. The cron still produces a CSV. Step 6 swaps the writer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why second&lt;/strong&gt;: schema changes are easier when there's one place that knows about the shape.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3 — Replace bare &lt;code&gt;try/except&lt;/code&gt; with structured failures
&lt;/h3&gt;

&lt;p&gt;Audit every &lt;code&gt;try/except&lt;/code&gt;. If it swallows the exception, replace with explicit logging and a failure record:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Before:
&lt;/span&gt;&lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;record&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;process&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nb"&gt;Exception&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;pass&lt;/span&gt;

&lt;span class="c1"&gt;# After:
&lt;/span&gt;&lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;record&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;process&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nb"&gt;Exception&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nf"&gt;push_failure&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;url&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;error&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;type&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;type&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="n"&gt;__name__&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt;
    &lt;span class="k"&gt;continue&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now failures are first-class data. Same rows of work; the bad ones go to a different file (or dataset) instead of vanishing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why third&lt;/strong&gt;: this is the step where you stop losing data silently. Every later step assumes failures are visible.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4 — Replace &lt;code&gt;print()&lt;/code&gt; with structured logging
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Before:
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Processing &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# After:
&lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;logging&lt;/span&gt;
&lt;span class="n"&gt;log&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;logging&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getLogger&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;transcribe&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;log&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;info&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;processing&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;extra&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;url&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;stage&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;transcribe&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use a logging library that supports structured fields. (Python: &lt;code&gt;structlog&lt;/code&gt;, &lt;code&gt;loguru&lt;/code&gt;, or &lt;code&gt;logging&lt;/code&gt; with a JSON formatter.)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why fourth&lt;/strong&gt;: logs are what step 6 will be reading. They need shape.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5 — Containerise
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;&lt;span class="k"&gt;FROM&lt;/span&gt;&lt;span class="s"&gt; python:3.11-slim&lt;/span&gt;
&lt;span class="k"&gt;WORKDIR&lt;/span&gt;&lt;span class="s"&gt; /app&lt;/span&gt;
&lt;span class="k"&gt;COPY&lt;/span&gt;&lt;span class="s"&gt; requirements.txt .&lt;/span&gt;
&lt;span class="k"&gt;RUN &lt;/span&gt;pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; requirements.txt
&lt;span class="k"&gt;COPY&lt;/span&gt;&lt;span class="s"&gt; . .&lt;/span&gt;
&lt;span class="k"&gt;CMD&lt;/span&gt;&lt;span class="s"&gt; ["python", "script.py"]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The cron now runs &lt;code&gt;docker run my-scraper&lt;/code&gt;. Same input/output. Containerised.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why fifth&lt;/strong&gt;: containerisation is portable. Step 6 needs it; nothing earlier did.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 6 — Swap the runtime
&lt;/h3&gt;

&lt;p&gt;Now you point the container at an actor runtime — Apify, Kubernetes CronJob, Cloud Run, whatever. The container is the same. The cron entry is gone. Scheduling, retries, logging, persistence are now provided by the runtime.&lt;/p&gt;

&lt;p&gt;This is the step that takes a &lt;em&gt;day&lt;/em&gt;. Steps 1–5 might take 2–3 days each. The point of doing them first is that step 6, the one most teams treat as the whole migration, is small and reversible by the time you reach it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnemaptm6kx4euy8hfbfm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnemaptm6kx4euy8hfbfm.png" alt="Fig. 1 — The six-step migration order. Each step ships independently. Step 6 is the smallest." width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this order
&lt;/h2&gt;

&lt;p&gt;Each step is &lt;strong&gt;independently valuable&lt;/strong&gt; even if you stop. After step 1 you have a parameterised script — useful for ad-hoc runs. After step 2 you can change persistence. After step 3 you stop losing data. After step 4 you can debug remotely. After step 5 you can deploy anywhere. After step 6 you have an actor.&lt;/p&gt;

&lt;p&gt;If a stakeholder asks why the rewrite is taking so long, you can point at the running improvements at any step. There is no "we're 60% done with the rewrite, it's not running yet" phase.&lt;/p&gt;

&lt;h2&gt;
  
  
  Result
&lt;/h2&gt;

&lt;p&gt;The interview transcription actor went through this migration over four months, one step at a time, while running in production the entire time. Pre-migration: ad-hoc cron, 18% silent-failure rate, mean time to detect issues ~24 hours. Post-migration: actor with retries and structured logging, 1.2% failure rate (and the failures are &lt;em&gt;visible&lt;/em&gt;), mean time to detect &amp;lt;30 minutes.&lt;/p&gt;

&lt;p&gt;Total team-hours: roughly 60. Spread across four iterations. Compare to the rewrites I've seen go sideways: typically 80–120 hours and a stalled cutover.&lt;/p&gt;

&lt;h2&gt;
  
  
  When this is wrong
&lt;/h2&gt;

&lt;p&gt;Two cases where a rewrite genuinely beats the migration playbook:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The original script is &lt;em&gt;very&lt;/em&gt; small (under 100 lines, single function). At that scale, the migration steps cost as much as a rewrite, and the rewrite gives you a cleaner result.&lt;/li&gt;
&lt;li&gt;The original is in a language your team doesn't maintain (a Perl script you inherited, a Bash pipeline). At some point the cost of step 1 alone exceeds the rewrite cost.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Otherwise: surgery, not rewrite. We packaged this six-step migration as a checklist we apply to every legacy scraper an engagement starts with — same shape we used to rebuild the &lt;a href="https://apify.com/sian.agency/transcribe-interview-to-text?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=jonas&amp;amp;utm_content=cron-to-actor-migration-six-steps" rel="noopener noreferrer"&gt;interview transcription actor&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where in the six steps is your current scraper?&lt;/strong&gt; Drop the answer — I'll point at the next change that buys you the most.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Written by **Jonas Keller&lt;/em&gt;&lt;em&gt;, Senior Automation Architect at SIÁN Agency. Find more from Jonas on &lt;a href="https://dev.to/sian-agency"&gt;dev.to&lt;/a&gt;. For custom scraping or automation work, &lt;a href="https://sian.agency?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=jonas&amp;amp;utm_content=cron-to-actor-migration-six-steps" rel="noopener noreferrer"&gt;hire SIÁN Agency&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>automation</category>
      <category>tutorial</category>
      <category>webscraping</category>
    </item>
  </channel>
</rss>
