页面简介
How to build an AI agent without code: pick one job, give it knowledge, instructions and tools, write its procedures, plan the hand-off, test it, and launch. With a customer support agent as the worked example.
正文摘录
On this pageWhat an AI Agent Is (and How It Differs From a Chatbot)Step 1: Pick One Job and Draw Its BoundaryStep 2: Give It the Knowledge to Do the JobStep 3: Write Instructions in Plain LanguageStep 4: Connect Tools, With the Right PermissionsStep 5: Write Procedures for the Situations You KnowStep 6: Decide When It Hands OffStep 7: Test It Before Customers DoStep 8: Launch on One Channel, Then WatchHow to Build an AI Agent in Denser by Describing ItShould You Build an AI Agent With Code or Without?Common Mistakes When Building an AI AgentFAQs About Building AI Agents Quick answer: To build an AI agent without code, pick one job it should own, give it the knowledge to do that job, write instructions in plain language, connect the tools (actions) it needs with the right permissions, describe its procedures step by step, decide when it hands off to a person, test it against real requests, and launch it on one channel first. No-code builders handle the model, retrieval and integrations, so your work is the decisions, not the plumbing. Most guides on how to build an AI agent start with Python, an agent framework and a vector database. That’s the right path if you’re building a product. If you need an agent that does a job for your business, such as answering customers, booking demos or checking orders, you can build one without writing code. The hard part was never the code anyway. It’s deciding what the agent should do, what it may touch, and what happens when it’s unsure. This guide walks through the eight steps with one running example: a customer support agent for a software company. The same steps apply to a sales or internal helpdesk agent. What an AI Agent Is (and How It Differs From a Chatbot) An AI agent is a language model with five things around it: PartWhat it doesIn the support exampleKnowledgeWhat it answers fromYour help center, docs, pricing and policy pagesInstructionsHow it behavesTone, scope, what to do when it doesn’t knowTools (actions)What it can do, not just sayLook up an order, book a call, create a ticketProceduresThe steps it follows for a known situationTroubleshoot a bug, then hand off with a summaryHand-offWhere a conversation goes when the agent shouldn’t finish itA live chat with your team, or a ticket A chatbot that only answers questions has the first two. An agent has all five, which is why it can finish a request instead of describing how to finish it. For a longer comparison, see AI agent vs chatbot. Step 1: Pick One Job and Draw Its Boundary The most common reason AI agents disappoint is scope. “Handle customer support” isn’t a job; it’s a department. Start with one job that is frequent, well documented and low risk, such as: answering product and pricing questions from your docs checking order status booking a demo for qualified visitors Then write down the boundary in one or two sentences: what the agent handles, what it never does, and who takes over. For example: “Answer questions about our product from the help center. Never discuss refunds or account changes; offer a person instead.” This sentence becomes the core of the instructions in step 3. Step 2: Give It the Knowledge to Do the Job An agent can only be as accurate as the content behind it. Add the sources that answer the questions in your chosen job, and nothing that would confuse it: Website pages: product, pricing, help center and policy pages. Leave out pages written for search engines rather than customers, and anything outdated. Files: PDFs and documents that never made it onto the website, such as setup guides. Q&A pairs: short, exact answers for questions your content doesn’t answer cleanly, like “Do you offer a nonprofit discount?” Then read what the agent actually learned. Pages full of navigation, cookie banners or repeated marketing copy produce weak answers, and two pages that disagree produce inconsistent ones. Fix the content, not just the agent. Step 3: Write Instructions in Plain Language Instructions tell the agent how to behave. Keep them short and specific: Who it is and who it serves: “You answer questions from customers of [product].” Scope: what it handles and what it hands off, from step 1. Tone and length: “Friendly and brief. Two or three sentences unless the customer asks for detail.” When it doesn’t know: “Say so, and offer to connect the customer with the team.” This line matters more than any other. Citations: whether to show the source of an answer, so customers and your team can check it. Avoid long lists of rules that contradict each other. If one rule only applies to one situation, it belongs in a procedure (step 5), not in the instructions. Step 4: Connect Tools, With the Right Permissions Tools are what make it an agent. In a no-code builder they’re usually called actions, and each one has a description of when to use it. Common ones for support: Talk to a person: live chat when your team is available, a ticket when it isn’t Look up an order or account in your own system or store Book a meeting on your calendar inside the chat Notify your team in Slack when something needs attention Call your own API for anything else your systems can answer For every tool, decide three things before you switch it on: What it may read. An order lookup needs the order, not the customer’s whole profile. Expose only the fields the answer needs. Who it may act for. Ask for proof before showing personal data, such as the order number plus the checkout email. Whether it changes anything. Anything that cancels, refunds or edits should show the customer exactly what will happen and wait for a yes. Step 5: Write Procedures for the Situations You Know Some requests need more than one answer and one action. A bug report, a return or an upset customer each have a right order of steps. Write those down as procedures (Denser calls them playbooks): When to use it: two or three example messages, such as “I found a bug” or “the export isn’t working.” The steps: say or ask something, run an action, and branch on what happens. For a bug: ask what happened and when, try fixes from the docs one at a time, and if none work, hand off with a summary. How it ends: solved, handed off, or a ticket created. Procedures make the agent predictable where it matters, while it still answers freely everywhere else. For a full guide, see customer service playbooks. Step 6: Decide When It Hands Off An agent that never hands off will eventually trap a customer. Decide when it should stop: the customer asks for a person the request is outside the scope you set in step 1 a procedure ends without solving the problem the customer is upset, or the stakes are high (billing disputes, legal or safety issues) The hand-off should carry the conversation and anything the agent already collected, so the customer never repeats themselves. More on this in chatbot human handoff. Step 7: Test It Before Customers Do Testing an agent means testing what it says and what it does. Build a test set of about 50 real questions from your inbox, run every procedure path including the unhappy ones, try to break it with wrong details and off-topic requests, and confirm that every action actually ran. Our AI agent testing guide has the full plan and a checklist. Step 8: Launch on One Channel, Then Watch Launch where the job happens most, usually the website chat, before adding email or phone. Then watch three things every week: Answers customers flagged (thumbs down, or no answer found), and fix the content behind them How procedures end: completed, handed off or abandoned What people ask that the agent can’t do yet, which is your list of the next tools and procedures to add How to Build an AI Agent in Denser by Describing It Every step above can be done with forms and settings. In Denser you can also describe each step to Ask AI, the assistant built into the dashboard, and it does the setup for you. It reads your workspace first, asks for anything only you know, and proposes each change as a card. Nothing changes until you click Apply. Here is the support agent from this guide, built with requests like these: StepWhat you type to Ask AI1–2. Job and knowledge“Build a support chatbot from my website, and skip the legal pages”3. Instructions“Make it friendly and keep answers to two or three sentences”4. Tools“Let visitors talk to a person on my team” and “Book a 30-minute demo through my Cal.com link”5. Procedures“When someone reports a bug, try fixes from our docs one at a time, then hand off”7. Test and audit“Audit my chatbot” and “Find questions my chatbot answered badly and fix them”8. Launch“Add my chatbot to my website” When you ask it to build from your website, Ask AI reads the site and its sitemap without adding anything, suggests which pages to include, asks whether the chatbot is public or private, and then proposes it: Changes to how the agent behaves arrive as a diff, so you can see exactly what will change, edit it, or dismiss it: A few things are worth knowing before you start: It never sees your keys. API keys and passwords go into a secure card that sends them straight to Denser, not into the conversation. It works with your permissions. It reads with read-only access, and an applied change runs as you, through the same checks as the dashboard. Each message uses one query from your plan, the same as one chatbot answer. Ask AI is available on every plan, including Free. New playbooks start switched off, so you can test them before customers see them. See everything it can do on the AI chatbot builder page. Should You Build an AI Agent With Code or Without? ApproachBest forWhat you take onAgent frameworks and SDKs (code)Building agents into your own product, or unusual workflowsHosting, retrieval, tool integrations, evaluation, security, and upkeepWorkflow automation platformsBack-office automations triggered by events, with an AI step insideDesigning every branch; customer-facing chat and hand-off are up to youNo-code AI agent builders for supportC