[{"data":1,"prerenderedAt":1034},["ShallowReactive",2],{"blog-post-how-to-build-an-ai-agent":3,"related-posts-how-to-build-an-ai-agent":1003,"decoder-links-how-to-build-an-ai-agent":1030,"hero-size-how-to-build-an-ai-agent":1031},{"id":4,"title":5,"author":6,"body":11,"bottomCta":973,"category":974,"date":975,"definedTerm":973,"description":976,"extension":977,"featured":978,"hideToc":978,"image":979,"imageAlt":980,"imageHeight":981,"imageWidth":982,"itemList":973,"lang":973,"lead":973,"meta":983,"navigation":335,"noindex":978,"path":984,"primaryHub":973,"readingTime":985,"redirected":978,"relatedSlugs":986,"seo":990,"seoTitle":991,"stem":992,"subtitle":993,"tags":994,"updatedDate":975,"__hash__":1002},"blog/blog/how-to-build-an-ai-agent.md","How to Build an AI Agent, Step by Step (With or Without Code)",{"name":7,"role":8,"avatar":9,"bio":10},"Shabnam Katoch","Growth Head","/img/avatars/shabnam-profile.jpeg","Shabnam leads growth at BetterClaw and has spent the past three years building organic distribution for AI-native products. She writes about no-code agent builders, content strategy, and what it actually takes to grow without an ads budget.",{"type":12,"value":13,"toc":946},"minimark",[14,18,21,24,27,37,42,45,48,104,110,117,121,124,207,210,216,220,223,228,231,240,244,247,258,261,265,268,272,275,281,285,296,521,524,583,591,594,613,616,622,626,629,633,636,640,643,647,650,653,714,717,721,724,727,730,733,741,745,748,751,811,814,817,820,823,831,835,867,871,874,877,880,895,898,902,906,909,913,916,920,923,927,935,939,942],[15,16,17],"p",{},"The first agent most people build is a chatbot with ambitions.",[15,19,20],{},"You give it a clever prompt, ask it to \"handle my inbox\", and watch it write a lovely summary of emails it can't actually touch. No tools.",[15,22,23],{},"No trigger. No memory of yesterday. It's a very articulate intern locked in an empty room.",[15,25,26],{},"Here's the thing. Learning how to build an AI agent isn't about a smarter prompt. It's about the five parts around the model.",[28,29,30],"blockquote",{},[15,31,32,36],{},[33,34,35],"strong",{},"The short version:"," an AI agent = a model + instructions + tools + memory + a trigger. Build one in 6 steps: pick the job, write instructions, connect tools, add an approval step, test, then schedule it. No-code takes about 15 minutes. Code takes a weekend.",[38,39,41],"h2",{"id":40},"what-you-need-before-you-start-building-an-ai-agent","What you need before you start building an AI agent",[15,43,44],{},"Most failed agents fail before anyone writes a line of instructions. The job was vague, the data was out of reach, or nobody decided what \"done\" looks like.",[15,46,47],{},"So answer three questions first:",[49,50,51,67],"table",{},[52,53,54],"thead",{},[55,56,57,61,64],"tr",{},[58,59,60],"th",{},"Question",[58,62,63],{},"Weak answer",[58,65,66],{},"Strong answer",[68,69,70,82,93],"tbody",{},[55,71,72,76,79],{},[73,74,75],"td",{},"What's the job?",[73,77,78],{},"\"Help with email\"",[73,80,81],{},"\"Every weekday at 8:00, sort new mail into Urgent, Reply today and FYI\"",[55,83,84,87,90],{},[73,85,86],{},"What data and tools does it need?",[73,88,89],{},"\"Access to everything\"",[73,91,92],{},"\"Read Gmail, write labels, post one Slack message\"",[55,94,95,98,101],{},[73,96,97],{},"How will you know it worked?",[73,99,100],{},"\"It feels useful\"",[73,102,103],{},"\"Fewer than 2 wrong labels per 50 emails, checked for a week\"",[15,105,106],{},[107,108,109],"em",{},"If you can't fill in the right-hand column, you don't have an agent yet. You have a wish.",[15,111,112],{},[113,114],"img",{"alt":115,"src":116},"Three questions before you build: what's the job (weekday 8:00 triage), what tools does it need (read Gmail, post Slack), how will you know it worked (fewer than 2 errors per 50). If you can't answer all three, you don't have an agent yet","/img/blog/how-to-build-an-ai-agent-three-questions.jpg",[38,118,120],{"id":119},"the-6-steps-at-a-glance","The 6 steps at a glance",[15,122,123],{},"Every agent, no-code or code, comes down to the same parts. This also answers the question people search for most: what are the key components of an AI agent?",[49,125,126,139],{},[52,127,128],{},[55,129,130,133,136],{},[58,131,132],{},"Step",[58,134,135],{},"Component",[58,137,138],{},"What it means",[68,140,141,152,163,174,185,196],{},[55,142,143,146,149],{},[73,144,145],{},"1",[73,147,148],{},"The job",[73,150,151],{},"One narrow, repeatable task with a clear finish line",[55,153,154,157,160],{},[73,155,156],{},"2",[73,158,159],{},"Instructions",[73,161,162],{},"Who the agent is, what it does, and what it must never do",[55,164,165,168,171],{},[73,166,167],{},"3",[73,169,170],{},"Tools",[73,172,173],{},"The apps it can read from and act on, like Gmail, Slack or a calendar",[55,175,176,179,182],{},[73,177,178],{},"4",[73,180,181],{},"Guardrails",[73,183,184],{},"Which actions need your approval before they happen",[55,186,187,190,193],{},[73,188,189],{},"5",[73,191,192],{},"A test run",[73,194,195],{},"Real inputs, watched by you, before anything runs alone",[55,197,198,201,204],{},[73,199,200],{},"6",[73,202,203],{},"A trigger",[73,205,206],{},"A schedule or an event that starts the work without you",[15,208,209],{},"Memory sits underneath all six. It's what lets Tuesday's run know what Monday's run already did.",[15,211,212],{},[113,213],{"alt":214,"src":215},"Every AI agent in six steps: the job (one narrow, repeatable task), instructions (including a never list), tools (only what the job needs), approvals (risky actions wait for you), a test run (real inputs, watched) and a trigger (a schedule or event). Memory sits underneath all six","/img/blog/how-to-build-an-ai-agent-six-steps.jpg",[38,217,219],{"id":218},"path-a-no-code-build-an-ai-agent-in-betterclaw","Path A, no-code: build an AI agent in BetterClaw",[15,221,222],{},"This is the path for founders, ops leads and anyone who'd rather not maintain a Python environment. We'll build an inbox triage agent.",[224,225,227],"h3",{"id":226},"create-the-agent","Create the agent",[15,229,230],{},"In BetterClaw, open Agents under Workspace settings and click \"New agent\". Pick a template (General Assistant is a good start), give it a name and click \"Create agent\".",[15,232,233,234,239],{},"If you bring your own model key, a \"Connect a model\" card asks you to pick a provider and model and add the key first. Our guide to ",[235,236,238],"a",{"href":237},"/docs/agents/creating-an-agent","creating an agent"," shows each screen.",[224,241,243],{"id":242},"write-the-instructions","Write the instructions",[15,245,246],{},"Open the agent's settings and replace the template personality with something specific:",[248,249,255],"pre",{"className":250,"code":252,"language":253,"meta":254},[251],"language-text","You triage my Gmail inbox every weekday morning.\nSort each new email into one label: Urgent, Reply today or FYI.\nNever send, delete or forward email. Never open links.\nIf you're unsure, use Reply today. Post a 5-line summary to Slack.\n","text","",[256,257,252],"code",{"__ignoreMap":254},[15,259,260],{},"Notice the \"never\" lines. They matter more than the clever ones.",[224,262,264],{"id":263},"connect-the-tools","Connect the tools",[15,266,267],{},"Grant the agent the connectors it needs, here Gmail and Slack, and nothing else. Narrow access is the cheapest safety feature you'll ever add.",[224,269,271],{"id":270},"add-an-approval-step-test-then-schedule","Add an approval step, test, then schedule",[15,273,274],{},"Set the agent so actions that change things wait for your approval. Then start a chat, ask it to triage today's inbox, and watch what it does. When a full run looks right, open Scheduled tasks, create a recurring task, choose Daily or Weekly, pick the agent and check the first-run preview.",[15,276,277],{},[113,278],{"alt":279,"src":280},"Build an agent in BetterClaw in about 15 minutes with no code: create the agent from a template, write instructions with a never list, connect Gmail and Slack only, approve and test a real run, then schedule a recurring task","/img/blog/how-to-build-an-ai-agent-no-code.jpg",[38,282,284],{"id":283},"path-b-code-build-an-ai-agent-with-an-sdk","Path B, code: build an AI agent with an SDK",[15,286,287,288,291,292,295],{},"If you want full control, write it. Here's a minimal agent with one tool, using the OpenAI Agents SDK in Python (",[256,289,290],{},"pip install openai-agents",", with ",[256,293,294],{},"OPENAI_API_KEY"," set):",[248,297,301],{"className":298,"code":299,"language":300,"meta":254,"style":254},"language-python shiki shiki-themes github-light","import asyncio\nfrom agents import Agent, Runner, function_tool\n\n@function_tool\ndef get_unread_count() -> str:\n    \"\"\"Return how many unread emails are waiting.\"\"\"\n    return \"12 unread emails\"  # replace with a real Gmail call\n\nagent = Agent(\n    name=\"Inbox Helper\",\n    instructions=\"Summarise the inbox. Use get_unread_count when asked about volume.\",\n    tools=[get_unread_count],\n)\n\nasync def main():\n    result = await Runner.run(agent, \"How busy is my inbox today?\")\n    print(result.final_output)\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n","python",[256,302,303,316,330,337,344,363,370,383,388,400,415,428,439,445,450,465,484,493,498,515],{"__ignoreMap":254},[304,305,308,312],"span",{"class":306,"line":307},"line",1,[304,309,311],{"class":310},"sD7c4","import",[304,313,315],{"class":314},"sgsFI"," asyncio\n",[304,317,319,322,325,327],{"class":306,"line":318},2,[304,320,321],{"class":310},"from",[304,323,324],{"class":314}," agents ",[304,326,311],{"class":310},[304,328,329],{"class":314}," Agent, Runner, function_tool\n",[304,331,333],{"class":306,"line":332},3,[304,334,336],{"emptyLinePlaceholder":335},true,"\n",[304,338,340],{"class":306,"line":339},4,[304,341,343],{"class":342},"s7eDp","@function_tool\n",[304,345,347,350,353,356,360],{"class":306,"line":346},5,[304,348,349],{"class":310},"def",[304,351,352],{"class":342}," get_unread_count",[304,354,355],{"class":314},"() -> ",[304,357,359],{"class":358},"sYu0t","str",[304,361,362],{"class":314},":\n",[304,364,366],{"class":306,"line":365},6,[304,367,369],{"class":368},"sYBdl","    \"\"\"Return how many unread emails are waiting.\"\"\"\n",[304,371,373,376,379],{"class":306,"line":372},7,[304,374,375],{"class":310},"    return",[304,377,378],{"class":368}," \"12 unread emails\"",[304,380,382],{"class":381},"sAwPA","  # replace with a real Gmail call\n",[304,384,386],{"class":306,"line":385},8,[304,387,336],{"emptyLinePlaceholder":335},[304,389,391,394,397],{"class":306,"line":390},9,[304,392,393],{"class":314},"agent ",[304,395,396],{"class":310},"=",[304,398,399],{"class":314}," Agent(\n",[304,401,403,407,409,412],{"class":306,"line":402},10,[304,404,406],{"class":405},"sqxcx","    name",[304,408,396],{"class":310},[304,410,411],{"class":368},"\"Inbox Helper\"",[304,413,414],{"class":314},",\n",[304,416,418,421,423,426],{"class":306,"line":417},11,[304,419,420],{"class":405},"    instructions",[304,422,396],{"class":310},[304,424,425],{"class":368},"\"Summarise the inbox. Use get_unread_count when asked about volume.\"",[304,427,414],{"class":314},[304,429,431,434,436],{"class":306,"line":430},12,[304,432,433],{"class":405},"    tools",[304,435,396],{"class":310},[304,437,438],{"class":314},"[get_unread_count],\n",[304,440,442],{"class":306,"line":441},13,[304,443,444],{"class":314},")\n",[304,446,448],{"class":306,"line":447},14,[304,449,336],{"emptyLinePlaceholder":335},[304,451,453,456,459,462],{"class":306,"line":452},15,[304,454,455],{"class":310},"async",[304,457,458],{"class":310}," def",[304,460,461],{"class":342}," main",[304,463,464],{"class":314},"():\n",[304,466,468,471,473,476,479,482],{"class":306,"line":467},16,[304,469,470],{"class":314},"    result ",[304,472,396],{"class":310},[304,474,475],{"class":310}," await",[304,477,478],{"class":314}," Runner.run(agent, ",[304,480,481],{"class":368},"\"How busy is my inbox today?\"",[304,483,444],{"class":314},[304,485,487,490],{"class":306,"line":486},17,[304,488,489],{"class":358},"    print",[304,491,492],{"class":314},"(result.final_output)\n",[304,494,496],{"class":306,"line":495},18,[304,497,336],{"emptyLinePlaceholder":335},[304,499,501,504,507,510,513],{"class":306,"line":500},19,[304,502,503],{"class":310},"if",[304,505,506],{"class":358}," __name__",[304,508,509],{"class":310}," ==",[304,511,512],{"class":368}," \"__main__\"",[304,514,362],{"class":314},[304,516,518],{"class":306,"line":517},20,[304,519,520],{"class":314},"    asyncio.run(main())\n",[15,522,523],{},"That's the whole loop: the model reads the request, decides to call the tool, reads the result, and answers. Real agents add OAuth for each app, memory, retries and logging.",[49,525,526,539],{},[52,527,528],{},[55,529,530,533,536],{},[58,531,532],{},"Framework",[58,534,535],{},"Language",[58,537,538],{},"Good for",[68,540,541,552,562,573],{},[55,542,543,546,549],{},[73,544,545],{},"OpenAI Agents SDK",[73,547,548],{},"Python, TypeScript",[73,550,551],{},"Tool-calling agents on OpenAI models",[55,553,554,557,559],{},[73,555,556],{},"LangGraph",[73,558,548],{},[73,560,561],{},"Complex, stateful multi-step flows",[55,563,564,567,570],{},[73,565,566],{},"CrewAI",[73,568,569],{},"Python",[73,571,572],{},"Teams of role-based agents",[55,574,575,578,580],{},[73,576,577],{},"Claude Agent SDK",[73,579,548],{},[73,581,582],{},"Agents built on Claude Code's tools",[15,584,585,586,590],{},"Our ",[235,587,589],{"href":588},"/blog/ai-agent-frameworks","AI agent frameworks guide"," compares these in more depth.",[15,592,593],{},"What a production agent adds on top of those 20 lines:",[595,596,597,601,604,607,610],"ul",{},[598,599,600],"li",{},"OAuth sign-in for each app, with tokens that refresh.",[598,602,603],{},"Memory that survives a restart.",[598,605,606],{},"Retries and timeouts for flaky APIs.",[598,608,609],{},"Logs you can read when something goes wrong.",[598,611,612],{},"A machine that stays on, and an alert when it doesn't.",[15,614,615],{},"Here's what nobody tells you about Path B. The code is the easy weekend. Hosting it 24/7, rotating tokens, and noticing when it silently stops working is the hard month.",[15,617,618],{},[113,619],{"alt":620,"src":621},"Build an agent with an SDK: install with pip install openai-agents, write about 20 lines of Python, run it so the model calls your tools, then production is the hard month. Code takes a weekend, running it takes longer","/img/blog/how-to-build-an-ai-agent-sdk.jpg",[38,623,625],{"id":624},"how-to-build-an-ai-agent-with-claude-or-with-chatgpt","How to build an AI agent with Claude or with ChatGPT",[15,627,628],{},"Both Claude and ChatGPT can act on your apps today. The question is whether you want help when you ask, or work done when you don't.",[224,630,632],{"id":631},"with-claude","With Claude",[15,634,635],{},"On claude.ai you can connect apps like Gmail and Google Calendar from Customize > Connectors and add reusable skills. That's a capable assistant inside a chat. For an agent that runs on a schedule without you opening a tab, use the Claude Agent SDK or a platform that runs Claude models for you.",[224,637,639],{"id":638},"with-chatgpt","With ChatGPT",[15,641,642],{},"ChatGPT's own agent features now live in ChatGPT Work and, on Business, Enterprise and Edu plans, workspace agents. If you'd rather use your ChatGPT Plus or Pro subscription in an always-on agent, BetterClaw supports signing in with it, so your agent's model usage draws on that subscription.",[38,644,646],{"id":645},"can-you-build-an-ai-agent-for-free","Can you build an AI agent for free?",[15,648,649],{},"Yes, with limits. The SDKs above are free and open source, but you pay for model usage and for a machine to run the agent on.",[15,651,652],{},"On BetterClaw, the free plan includes one agent and 100 credits a month, with no card. You bring your own model key, so you still pay your provider for inference. A small daily triage agent fits comfortably; an agent that browses the web all day won't.",[49,654,655,668],{},[52,656,657],{},[55,658,659,662,665],{},[58,660,661],{},"Cost",[58,663,664],{},"Free path",[58,666,667],{},"Paid path",[68,669,670,681,692,703],{},[55,671,672,675,678],{},[73,673,674],{},"Builder or framework",[73,676,677],{},"Free SDK, or BetterClaw's free plan",[73,679,680],{},"BetterClaw from $19/month",[55,682,683,686,689],{},[73,684,685],{},"Hosting",[73,687,688],{},"Your own machine, if it stays on",[73,690,691],{},"Included on a managed platform",[55,693,694,697,700],{},[73,695,696],{},"Model usage",[73,698,699],{},"Your provider's free tier, if any",[73,701,702],{},"Pay your provider per token, or use a ChatGPT subscription",[55,704,705,708,711],{},[73,706,707],{},"Your time",[73,709,710],{},"Highest",[73,712,713],{},"Lowest",[15,715,716],{},"That's honestly why we built BetterClaw: most people who want an agent don't want a server, a Docker file and a token-refresh script to come with it.",[38,718,720],{"id":719},"add-guardrails-before-it-runs-unattended","Add guardrails before it runs unattended",[15,722,723],{},"Stay with me here, because this step is where agents earn trust or lose it.",[15,725,726],{},"An agent with inbox access and no approval step is one confused prompt away from a bad day. In February, a Meta alignment director watched an open-source agent bulk-trash hundreds of her emails after it lost her \"confirm before acting\" instruction.",[15,728,729],{},"The fix is architecture, not a stronger prompt. Make \"send\", \"delete\" and \"pay\" wait for a human.",[15,731,732],{},"On BetterClaw, that's built into trust levels. An Intern agent drafts but never executes. A Specialist executes within the boundaries you set.",[15,734,735,736,740],{},"A Lead acts on its own, with a one-click kill switch always available. Start every new agent as an Intern, and promote it only after a clean test week. Our guide to ",[235,737,739],{"href":738},"/blog/ai-agent-human-approval-guardrails","human approval guardrails"," shows how to set that up without slowing everything down.",[38,742,744],{"id":743},"test-schedule-and-monitor","Test, schedule and monitor",[15,746,747],{},"Run the agent by hand on real inputs for a few days. Read every output. Count the mistakes against the success check you wrote at the start.",[15,749,750],{},"A simple test log is enough:",[49,752,753,769],{},[52,754,755],{},[55,756,757,760,763,766],{},[58,758,759],{},"Day",[58,761,762],{},"Emails",[58,764,765],{},"Wrong labels",[58,767,768],{},"Notes",[68,770,771,784,797],{},[55,772,773,776,779,781],{},[73,774,775],{},"Mon",[73,777,778],{},"46",[73,780,167],{},[73,782,783],{},"Newsletters labelled Urgent; added a rule",[55,785,786,789,792,794],{},[73,787,788],{},"Tue",[73,790,791],{},"51",[73,793,145],{},[73,795,796],{},"One invoice missed; added \"invoice\" keyword",[55,798,799,802,805,808],{},[73,800,801],{},"Wed",[73,803,804],{},"39",[73,806,807],{},"0",[73,809,810],{},"Clean run",[15,812,813],{},"When two runs in a row meet your success check, you're ready to schedule.",[15,815,816],{},"Notice what the log is really doing. Every mistake turns into a rule in the instructions, so the agent gets better each day of the test week instead of staying exactly as good as its first prompt.",[15,818,819],{},"Then schedule it. On BetterClaw, recurring tasks run hourly, daily, weekly, monthly or on a custom cron, within your plan's limits; the free and Starter plans run at most once a day.",[15,821,822],{},"After that, check the run history once a week. Agents rarely fail loudly.",[15,824,825,826,830],{},"They drift quietly. Our guide to ",[235,827,829],{"href":828},"/blog/schedule-ai-agent-automatically","scheduling an AI agent automatically"," covers schedules, run history and what to watch for.",[38,832,834],{"id":833},"common-mistakes-when-you-build-an-ai-agent","Common mistakes when you build an AI agent",[595,836,837,843,849,855,861],{},[598,838,839,842],{},[33,840,841],{},"Too broad a job."," \"Run my marketing\" fails. \"Draft three LinkedIn posts from last week's blog\" works.",[598,844,845,848],{},[33,846,847],{},"Too much access."," Every extra permission is another way to make a mess.",[598,850,851,854],{},[33,852,853],{},"No \"never\" list."," Agents follow what you forbid as closely as what you ask.",[598,856,857,860],{},[33,858,859],{},"Skipping the test week."," The first run is never the one to trust.",[598,862,863,866],{},[33,864,865],{},"No owner."," Someone has to read the run history, or nobody will.",[38,868,870],{"id":869},"what-comes-after-your-first-agent","What comes after your first agent",[15,872,873],{},"Once one agent works, the next step is a small team: one agent triages, another drafts, a third reports. Each stays narrow, and you approve the hand-offs.",[15,875,876],{},"Here's the honest takeaway. The model is the easy part now.",[15,878,879],{},"The craft is in the job you choose, the access you withhold and the checks you keep. Get those right and a 15-minute agent will quietly save you hours every week.",[15,881,882,883,889,890,894],{},"If you'd like to skip the servers and start building, ",[235,884,888],{"href":885,"rel":886},"https://app.betterclaw.io/sign-in",[887],"nofollow","give BetterClaw a try",". The free plan includes 1 agent and 100 credits a month, with no card, and paid plans start at $19/month (",[235,891,893],{"href":892},"/pricing","see full pricing",").",[15,896,897],{},"We handle the infrastructure. You handle the interesting part.",[38,899,901],{"id":900},"frequently-asked-questions","Frequently Asked Questions",[224,903,905],{"id":904},"what-are-the-key-components-of-an-ai-agent","What are the key components of an AI agent?",[15,907,908],{},"An AI agent has five parts: a model that reasons, instructions that define the job, tools that let it read and act in other apps, memory that carries context between runs, and a trigger that starts the work. Remove any one and you're back to a chatbot.",[224,910,912],{"id":911},"is-chatgpt-an-agent-or-an-llm","Is ChatGPT an agent or an LLM?",[15,914,915],{},"ChatGPT is an app built on large language models. On its own, a chat that answers questions is an assistant, not an agent. It becomes agent-like when it uses tools and takes multi-step actions, which OpenAI now offers through ChatGPT Work and workspace agents.",[224,917,919],{"id":918},"how-long-does-it-take-to-build-an-ai-agent","How long does it take to build an AI agent?",[15,921,922],{},"A simple no-code agent, like inbox triage, takes about 15 minutes to set up, plus a few days of supervised testing. A coded agent takes a weekend to write and longer to host and maintain reliably.",[224,924,926],{"id":925},"how-much-does-it-cost-to-build-an-ai-agent","How much does it cost to build an AI agent?",[15,928,929,930,934],{},"The frameworks are free; you pay for model usage and somewhere to run it. On BetterClaw, the free plan includes 1 agent and 100 credits a month, paid plans start at $19/month, and with your own key you pay your model provider directly. Our ",[235,931,933],{"href":932},"/blog/ai-agent-cost","AI agent cost guide"," breaks down the rest.",[224,936,938],{"id":937},"do-i-need-to-code-to-build-an-ai-agent","Do I need to code to build an AI agent?",[15,940,941],{},"No. No-code builders handle the model, tools, memory and scheduling for you. Code makes sense when you need custom logic, unusual integrations or full control over hosting.",[943,944,945],"style",{},"html pre.shiki code .sD7c4, html code.shiki .sD7c4{--shiki-default:#D73A49}html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .s7eDp, html code.shiki .s7eDp{--shiki-default:#6F42C1}html pre.shiki code .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}html pre.shiki code .sqxcx, html code.shiki .sqxcx{--shiki-default:#E36209}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":254,"searchDepth":318,"depth":318,"links":947},[948,949,950,956,957,961,962,963,964,965,966],{"id":40,"depth":318,"text":41},{"id":119,"depth":318,"text":120},{"id":218,"depth":318,"text":219,"children":951},[952,953,954,955],{"id":226,"depth":332,"text":227},{"id":242,"depth":332,"text":243},{"id":263,"depth":332,"text":264},{"id":270,"depth":332,"text":271},{"id":283,"depth":318,"text":284},{"id":624,"depth":318,"text":625,"children":958},[959,960],{"id":631,"depth":332,"text":632},{"id":638,"depth":332,"text":639},{"id":645,"depth":318,"text":646},{"id":719,"depth":318,"text":720},{"id":743,"depth":318,"text":744},{"id":833,"depth":318,"text":834},{"id":869,"depth":318,"text":870},{"id":900,"depth":318,"text":901,"children":967},[968,969,970,971,972],{"id":904,"depth":332,"text":905},{"id":911,"depth":332,"text":912},{"id":918,"depth":332,"text":919},{"id":925,"depth":332,"text":926},{"id":937,"depth":332,"text":938},null,"Guides","2026-12-04","Build an AI agent step by step: pick the job, connect tools, add guardrails and schedule it. A no-code path in minutes, plus a code path with SDKs.","md",false,"/img/blog/how-to-build-an-ai-agent.jpg","How to build an AI agent step by step: pick the job such as inbox triage, write instructions with a never list, connect tools like Gmail and Slack, and turn approvals on",512,1024,{},"/blog/how-to-build-an-ai-agent","9 min read",[987,988,989],"ai-agent-frameworks","ai-agent-human-approval-guardrails","schedule-ai-agent-automatically",{"title":5,"description":976},"How to Build an AI Agent (2026): No-Code and Code Paths","blog/how-to-build-an-ai-agent","Pick the job, connect the tools, add guardrails, schedule it. A no-code path you can finish this afternoon, and a code path with an SDK for when you want full control.",[995,996,997,998,999,1000,1001],"how to build an ai agent","how to create an ai agent","how to make an ai agent","how to build an ai agent for free","build ai agent with claude","build ai agent with chatgpt","key components of an ai agent","971zfI9t4bAsXxL0i-SxyHAaL9GifszClD0rWSnafX8",[1004,1013,1022],{"stem":1005,"title":1006,"description":1007,"date":1008,"image":1009,"category":1010,"redirected":978,"author":1011,"readingTime":1012},"blog/ai-agent-frameworks","Best AI Agent Frameworks in 2026: 12 Compared, From LangGraph and CrewAI to OpenAI and DeepSeek","12 AI agent frameworks compared, Nov 2026: LangGraph, CrewAI, Microsoft Agent Framework, OpenAI and Claude SDKs, ADK, Mastra. Versions, stars, alternatives","2026-05-26","/img/blog/ai-agent-frameworks.jpg","Comparison",{"name":7,"role":8,"avatar":9,"bio":10},"27 min read",{"stem":1014,"title":1015,"description":1016,"date":1017,"image":1018,"category":1019,"redirected":978,"author":1020,"readingTime":1021},"blog/ai-agent-human-approval-guardrails","AI Agent Guardrails: How to Add Human Approval Without Killing Speed","Your agent shouldn't approve refunds alone, but shouldn't ask permission to read email either. The three-tier approval setup, timeouts and kill switch.","2026-06-11","/img/blog/ai-agent-human-approval-guardrails.jpg","Best Practices",{"name":7,"role":8,"avatar":9,"bio":10},"10 min read",{"stem":1023,"title":1024,"description":1025,"date":1026,"image":1027,"category":974,"redirected":978,"author":1028,"readingTime":1029},"blog/schedule-ai-agent-automatically","How to Schedule an AI Agent to Run Automatically (Cron Jobs, No Code)","How to make an AI agent run every morning, hourly or on any cron schedule without a server: BetterClaw steps, OpenClaw/Hermes cron, n8n, Zapier compared.","2026-06-09","/img/blog/schedule-ai-agent-automatically.jpg",{"name":7,"role":8,"avatar":9,"bio":10},"21 min read",[],{"width":1032,"height":1033},1536,768,1796379127433]