# Build vs Run Source: https://docs.twin.so/build-vs-run Understand the two execution modes and how they affect credits Every agent in Twin operates in one of two modes: **Build** or **Run**. Understanding the difference is key to using Twin efficiently. ## Overview > [card] Build Mode > > **Creating or updating an agent.** Twin uses high-reasoning AI to interpret your goal, plan the steps, and generate the automation logic. > [card] Run Mode > > **Executing a deployed agent.** Twin uses a lighter-weight model that leverages the agent's memory from previous builds. Repeat runs are **typically 3-10x cheaper** than the initial build. ## Build Mode Build mode is active when you're creating a new agent or modifying an existing one through the chat editor. During a build, Twin: * Analyzes your natural-language instructions * Plans the execution steps * Generates the automation logic * Sets up integrations and navigation * Handles edge cases and retries This requires the **high-reasoning model**, which is the most credit-intensive operation. > [accordion] When does Build mode activate? > > Build mode runs whenever you: > > * Create a brand new agent > * Update an existing agent's goal or logic > * Ask the chat editor to add new steps or change behavior > > You'll always confirm whether to use **high** or **low** reasoning before a build starts — so you're in control of the cost. ## Run Mode Run mode is active when a deployed agent executes a task — whether triggered manually, on a schedule, or via a webhook. During a run, Twin: * Follows the logic established during the build * Uses a lightweight reasoning model * Leverages the agent's memory for efficient execution * Is often **3-10x cheaper** than a build > [accordion] When does Run mode activate? > > Run mode is used whenever you: > > * Click "Run" on a deployed agent > * A schedule triggers an agent > * A webhook event starts an agent > * Use the API to trigger an execution ## Cost Comparison | Mode | Reasoning | Relative Cost | Used For | | - | - | - | - | | **Build** | High | Higher | Creating or updating agents | | **Run** | Low + memory | Lower - often **3-10x cheaper** | Executing deployed agents | > [!TIP] > > Build once, run many times. The more you run a deployed agent, the more cost-efficient it becomes — each run is just a fraction of the original build cost. ## How to Tell Which Mode You're In The Twin interface clearly indicates the current mode: **Build mode** — Active in the chat editor when you're creating or modifying an agent. You'll see the build progress and can review the plan before it executes. ![Build mode showing an agent being built](https://mintcdn.com/twinlabs/32bkTaA33ltG-5t7/images/build-vs-run-builder.png?fit=max\&auto=format\&n=32bkTaA33ltG-5t7\&q=85\&s=a0441203097c703f072135eb377383f6) Build mode: the agent is being created, discovering APIs and setting up tools **Run mode** — Active when a deployed agent is executing. You'll see the live run status, steps being performed, and results as they come in. Notice the "Runner" and "Builder" badges on each run. ![Run mode showing agents with Runner and Builder badges](https://mintcdn.com/twinlabs/32bkTaA33ltG-5t7/images/build-vs-run-runner.png?fit=max\&auto=format\&n=32bkTaA33ltG-5t7\&q=85\&s=de1135f0932d2596ee10f4e2682d1458) Run mode: deployed agents executing with Runner badge, showing credits used per run ## What Happens at 0 Credits When your credits run out: * **In-progress builds always finish** - Twin never interrupts a build mid-execution * **Trial users keep getting daily credits** - during the 14-day trial, Twin adds more credits each day * **Paid users can top up or wait for renewal** - see [Pricing](/pricing) for the current plan options > [card] [Check Your Credits](https://builder.twin.so/credits) > > View your balance and usage breakdown # FAQs Source: https://docs.twin.so/guidelines Frequently asked questions about Twin ## General Questions > [accordion] What is Twin? > > Twin is an AI-native automation platform that helps teams and individuals build, deploy, and manage workflows faster. Whether you're a no-code creator or a developer, Twin turns plain English instructions into fully functional Rust-based (code) automations executed by AI agents. > [accordion] How does Twin work? > > Twin turns your natural language instructions into an executable AI agent built with code behind the scenes. All your automation steps and integrations are dynamically coded by a coding agent. > [accordion] Do I need to know how to code? > > Absolutely not. Twin is designed for non-technical users. If your team has technical needs (advanced integrations, custom endpoints, deeper control), Twin can still fit into that environment — but you don't need coding knowledge to get value. > [accordion] How fast can I build my first agent? > > Most users can get a first agent working quickly (often in minutes) for a simple workflow like "go to a URL → extract content → send it somewhere." More complex processes may take a bit of iteration on the chat, especially if login steps, edge cases, or brittle websites are involved. > > **Watch our tutorials:** > > * [How we build a Voice Agent in less than 10 mins](https://www.youtube.com/@twin-so) > * [How we build a Web Scraper in less than 5 mins](https://www.youtube.com/@twin-so) > [accordion] What can I automate with Twin? > > Twin can work with **ANY App**. You can automate anything — from simple data tasks to complex, AI-powered workflows or AI Agents that run your business in the background. > > **Typical use cases include:** > > * Competitive monitoring (careers pages, pricing pages, product updates) > * Lead research and enrichment from websites > * Social media monitoring > * Invoice retrieval from vendor portals > * Workflows on software that doesn't expose an API > > Twin is especially useful when traditional automation breaks down because the job happens inside a web UI. > [accordion] What makes Twin different from tools like Zapier or Make? > > Traditional no-code tools rely on rigid step-by-step nodes, limited actions, and pre-built integrations library. Twin generates real Rust automation code, empowering Twin to handle complex logic and deep integrations, all without writing a single line of code. You can describe what you want in plain English, and Twin builds it for you. > [accordion] Can I build apps and websites with Twin? > > Yes! Twin's [Interfaces](/interfaces) feature lets you build full websites and apps — with sign-ups, databases, and your Twin agents powering the backend — directly inside Twin. You can also deploy agents to your own frontend via the [REST API](/rest-api). > [accordion] Can I try Twin for free? > > Yes. Twin offers a **14-day free trial** with **1,000 credits to start** and **+200 credits per day** during the trial. See [Pricing](/pricing) for the current details. > [accordion] What is the Orchestrator? > > The [Orchestrator](/orchestrator) is the left-side chat in your workspace. It has full context on every agent, run, and schedule — and it's how you create, modify, and delete agents using natural language. It will also proactively suggest splitting complex workflows into focused agents or creating new ones when it sees an opportunity. > [accordion] What are Build and Run modes? > > [Build mode](/build-vs-run) is when you're creating or updating an agent - it uses high-reasoning AI and is the most credit-intensive. [Run mode](/build-vs-run) is when a deployed agent executes - it reuses the agent's tools and memory, so repeat runs are typically **3-10x cheaper**. Build once, then run on schedule for maximum efficiency. > [accordion] What happens when I run out of credits? > > Twin never interrupts a build that is already in progress. During the trial, you keep receiving daily credits until the 14 days end; on paid plans, you can top up or wait for your next billing cycle. See [Pricing](/pricing) for the current plan details. > [accordion] Does Twin use my local browser? > > **No.** When an agent needs browser automation, it runs in an isolated cloud computer dedicated to your agent — completely separate from your machine. Your local browser (Chrome, Safari, Arc) is never accessed. Think of it as a virtual computer we dedicate to you. See [Web Agent](/web-agent) for more. > [accordion] What are Interfaces? > > [Interfaces](/interfaces) let you build full websites and apps — with sign-ups, databases, and your agents as the backend — directly inside Twin. Describe what you want in the chat, and Twin generates a complete, deployable application. You can publish it as Private, Restricted, or Public. > [accordion] Can I monetize agents I build on Twin? > > Yes. With [Interfaces](/interfaces), you can build customer-facing apps with authentication and databases, powered by your Twin agents. Because you control the frontend, backend logic, and access — you can build products you charge for. > [accordion] Why is my agent consuming excessive credits? > > Common causes: > > * **First builds are expensive** - the agent is discovering APIs, handling auth, and shaping tools for the first time. Later runs reuse what it learned and are often **3-10x cheaper**. > * **Retry loops** — if a step keeps failing (e.g., sandbox restrictions or permission errors), the agent may retry repeatedly, burning credits without progress. > * **Context accumulation** — long-running agents carry the full conversation history, so each step gets more expensive as the session grows. > * **Expensive tool choices** — the agent may default to browser automation when an API would be cheaper and faster. > > **What to do:** Simplify your goal, break complex workflows into [multiple focused agents](/workspaces), prefer API-first instructions, and monitor early runs closely. See [Tips and Tricks](/tips-tricks) for detailed best practices. > [accordion] What if my agent ignores my instructions? > > This can happen when: > > * **Conflicting constraints** — goals with many conditions can create competing priorities. Simplify and be explicit about what matters most. > * **Technical fallbacks** — when a preferred method fails, the agent may fall back to a tool you explicitly prohibited. Restate the prohibition clearly and provide an alternative. > * **Step limits** — agents don't always track internal counters reliably. Instead of "do at most 5 searches," try "stop after finding the first 3 results." > > **What to do:** Use clear, specific language. Test incrementally with simple tasks first. If the agent consistently violates explicit instructions, contact [live in-app support](https://builder.twin.so/) with the run ID — the team can investigate and adjust credits if needed. > [accordion] How do I get started? > > Create an account, open the chat, and describe the workflow you want to automate. Start with a narrow task you can verify quickly (one website, one output destination), then expand from there. > > > [card] [Get Started Now](https://builder.twin.so/) > > > > Create your free account ## Features and Capabilities > [accordion] What tools can Twin integrate with? > > Twin can integrate with **ANY app**. We don't rely on a pre-built integrations library. Twin generates real Rust automation code to help you automate on any app. > > For the most common business tools (Gmail, Slack, Google Sheets, etc.) we have integrated Google OAuth to offer a seamless experience. > > The key difference is that Twin can operate directly inside web apps when APIs aren't available, using our Web Browser Agent to control the interface. > [accordion] Can Twin integrate with custom UIs built on Lovable & Base44 or external apps? > > Yes. You can ask the agent to connect using Lovable API or any other external service. > [accordion] Can Twin respond to external events automatically? > > Yes. You can run agents when Slack messages, email arrivals, webhook events, or form submissions occur. You can also run agents on a time schedule or trigger them from your own backend via the [REST API](/rest-api). See [Triggers](/triggers) for all options. > [accordion] Do I need to manage servers or infrastructure? > > No. Twin runs the agent executions in managed environments so you don't have to provision infrastructure for typical deployments. > [accordion] Can I chain multiple agents or workflows together? > > Yes. Inside a [Workspace](/workspaces), the [Orchestrator](/orchestrator) can create and coordinate multiple agents that share context. It will even proactively suggest splitting a complex workflow into focused agents. One agent's output can feed into another automatically. > [accordion] Can I connect multiple accounts for the same service? > > Each workspace supports **one connected account per service** (e.g., one X/Twitter account, one Gmail account). All agents in that workspace share the same connection. If you need to manage multiple accounts for the same service, create a **separate workspace** for each. Multi-account management — including managing accounts on behalf of your clients — is coming soon. See [Workspaces](/workspaces) for details. > [accordion] What about long workflows or large volumes? > > Twin is built to handle multi-step workflows. For higher volume or longer-running jobs, you typically design the process with batching, retries, and monitoring in mind. Twin can surface run results and failures so you can iterate. ## Running Workflows > [accordion] How do I run an agent? > > Common options: > > * Run it manually from the Twin interface > * Run it on a schedule > * Trigger it from another system (webhook/event) > * Trigger it programmatically via the [REST API](/rest-api) > [accordion] I accidentally deleted an agent — can I recover it? > > Yes. Deleted agents can be restored manually by the Twin team. Reach out via [live in-app support](https://builder.twin.so/) with the **name of the agent** and the team will recover it for you. > [accordion] Can other people use my agent? > > Depending on your workspace settings, you can share agents internally with teammates, and in some cases expose them as templates or reusable automations. > [accordion] How do I schedule workflows to run automatically? > > You can specify it directly in your initial prompt, or configure it manually after building. Twin supports cron-based schedules, event-based triggers, and programmatic triggers via the REST API. See [Triggers](/triggers) for details. > [accordion] Can others use my workflows? > > Yes — you can share workflows by clicking **Share agent** in the right panel. Anyone with the link can view the step-by-step run and clone the workflow in one click. ## Support > [accordion] Where can I find support? > > Twin has **live in-app support** with real human agents from the team — average response time is under 20 minutes. Open the support chat directly inside [Twin](https://builder.twin.so/) and you'll be talking to someone on the team. > > You can also browse our [documentation](https://docs.twin.so) or watch video tutorials on our [YouTube channel](https://www.youtube.com/@twin-so). > [accordion] How can I reach out to the team? > > The fastest way is through the **live in-app support** inside [Twin](https://builder.twin.so/) — real humans from the team reply in under 20 minutes. For anything else, email [hugo@twin.so](mailto:hugo@twin.so) (CEO). > [accordion] Where do I get help? > > Open [Twin](https://builder.twin.so/) and use the **live in-app support chat**. Human agents from the Twin team are available and typically respond in under 20 minutes. You can also email [hugo@twin.so](mailto:hugo@twin.so). > [accordion] How do I report a bug or failed run? > > Twin provides full run visibility so you can see exactly what happened. Use the **live in-app support** inside [Twin](https://builder.twin.so/) to share run details — the team will help you debug quickly, usually responding in under 20 minutes. ## About Twin > [accordion] Can I build solutions for clients using Twin? > > Yes — many teams use Twin to deliver automation outcomes for customers or internal stakeholders. If you're interested in distributing Twin to your clients or becoming a partner, reach out to **[alessandro@twin.so](mailto:alessandro@twin.so)**. > [accordion] How do I partner with Twin or distribute it to my clients? > > We're open to partnerships, reseller agreements, and distribution deals. Contact **[alessandro@twin.so](mailto:alessandro@twin.so)** to discuss how we can work together. > [accordion] Can I generate my own custom UI? > > Yes — Twin's [Interfaces](/interfaces) feature lets you build and publish full websites and apps directly inside Twin, with your agents as the backend. No external tools needed. You can also choose to make your app Private, Restricted, or Public. > [accordion] Can I call workflows via API? > > Yes. You can create agents, trigger runs, and manage schedules programmatically. See the full [REST API documentation](/rest-api) for endpoints and examples. > [accordion] How do I get an API key? > > Go to your [Twin account](https://builder.twin.so) and navigate to API key management, or create one via the [REST API](/rest-api#api-keys) itself. > [accordion] Is my data secure? > > Yes. Security is built into Twin by design. API tokens and keys are encrypted at rest and only decrypted in memory when needed for a request. Agent runs execute in isolated sandboxes, and credential access is tightly controlled, authenticated, and audited across internal services. > [accordion] How do I report a security vulnerability? > > If you discover a potential security vulnerability, please report it responsibly by emailing **[joao@twin.so](mailto:joao@twin.so)** with the following details: > > * **Impact assessment** — what are the consequences (e.g., unauthorized access, data exposure) > * **Timeline** — when the vulnerability was first observed > * **Technical details** — logs, affected Agent IDs, or any specifics that help our team investigate > > Our security and engineering teams will review your report and follow up regarding next steps and any potential rewards. > [accordion] What stack is Twin using? > > 100% Rust :) > [accordion] Can I get an invoice for my payments? > > Yes. Contact us via [live in-app support](https://builder.twin.so/) and provide your company information (name, address, VAT number, and any other details you need on the invoice). The team will issue it for you. > [accordion] Do you have an affiliate program? > > Yes! You can earn rewards for referring new customers to Twin. Sign up for the affiliate program here: > > > [card] [Join the Affiliate Program](https://twin-1.getrewardful.com/signup?campaign=friends-of-twin-20) > > > > Sign up and start earning > [accordion] Where can I follow product updates? > > Check out the [Changelog](https://twin.so/changelog) where we document our research, engineering and product work. > > Follow us on [LinkedIn](https://www.linkedin.com/company/twinso/), [X](https://x.com/twin_labs), and [YouTube](https://www.youtube.com/@twin-so) if you don't want to miss any updates. ## Still Have Questions? > [card] [Live In-App Support](https://builder.twin.so/) > > Real humans from the team — response in under 20 minutes > [card] [Book a Call](https://calendly.com/d/cs9s-xbz-bv5/twin-feedback-call) > > Talk to the founding team # Instructions Source: https://docs.twin.so/instructions The backend of each agent — auto-generated, fully editable Twin generates and maintains precise instructions for each agent, so autonomous runs stay on track. You can edit them anytime to keep full control. Think of instructions as **the backend of each agent** — they define exactly what the agent does, how it does it, which tools it uses, and in what order. Twin writes them automatically during build mode, but you always have the final say. ## How Instructions Work When you describe a goal to the Orchestrator, Twin doesn't just run it blindly. It generates a **structured set of instructions** that the agent follows on every run. > [card] Auto-generated > > Twin writes the instructions during build mode based on your goal > [card] Fully editable > > Open and modify them at any time to fine-tune behavior > [card] Persistent > > Instructions persist across runs — the agent follows them every time ## Accessing Instructions Every agent has an instructions panel you can open to see exactly what it's doing under the hood. **Step 1** — Click the instructions icon in the top-right corner of an agent's view: ![How to access agent instructions](https://mintcdn.com/twinlabs/32bkTaA33ltG-5t7/images/instructions-access.png?fit=max\&auto=format\&n=32bkTaA33ltG-5t7\&q=85\&s=03f28a56f2519678e23423b5db699704) Click the document icon in the top-right to open the agent's instructions **Step 2** — The instructions panel opens, showing the full breakdown: purpose, database schema, workflow steps, and tools used. ![Agent instructions detail view](https://mintcdn.com/twinlabs/32bkTaA33ltG-5t7/images/instructions-detail.png?fit=max\&auto=format\&n=32bkTaA33ltG-5t7\&q=85\&s=3b7c322b22594b48f2bdfa9c3314cb32) The instructions panel shows everything the agent does — purpose, database, workflow steps, and tools ## What's Inside Instructions Instructions are structured documents that typically include: | Section | What it contains | | - | - | | **Purpose** | A clear description of what the agent does | | **Database** | Tables and schemas the agent uses to store data | | **At Start of Run** | Pre-checks before the workflow begins (e.g. deduplication) | | **Workflow** | Step-by-step execution logic with tools and conditions | | **Tools** | The specific tools the agent has access to | ## Editing Instructions You can edit instructions in two ways: > [card] Through the Orchestrator > > Tell the Orchestrator what to change — "make the agent also extract email addresses" — and it will update the instructions automatically. > [card] Directly in the panel > > Click **Edit** in the instructions panel to modify them by hand. Useful for precise tweaks like changing a filter, adjusting a threshold, or fixing a field name. > [!TIP] > > Small instruction edits don't require a full rebuild. This is the cheapest way to improve an agent — update the instructions, then run again. ## Why Instructions Matter > [accordion] Consistency across runs > > Without instructions, every run would be a fresh interpretation of your goal. Instructions ensure the agent behaves the same way every time — even when running autonomously on a schedule. > [accordion] Full transparency > > You can always see exactly what an agent is doing and why. No black box — if something goes wrong, open the instructions to understand the logic and fix it. > [accordion] Cheaper iteration > > Editing instructions is much cheaper than rebuilding from scratch. Update a filter, add a step, or change an output format — all without triggering a full build. > [card] [Open Your Agents](https://builder.twin.so/) > > View and edit your agent instructions in Twin # Interfaces Source: https://docs.twin.so/interfaces Build and deploy full apps powered by your Twin agents Every agent deserves a frontend. Interfaces let you build **full websites and apps** — with sign-ups, databases, and your Twin agents working behind the scenes — directly inside Twin. No external tools needed. This is a new way to build software: describe what you want, and Twin generates a complete, deployable application with your agents as the backend. ## Why Interfaces Until now, deploying a Twin agent to users meant integrating via the [REST API](/rest-api) — great for developers, but a barrier for everyone else. Interfaces change that. Now **anyone** can build and ship a complete app powered by Twin agents: > [card] Websites > > Dashboards, landing pages, internal tools — fully responsive > [card] Apps with Auth > > User sign-ups, login flows, and per-user data > [card] Database-backed > > Full database schemas generated and managed automatically > [!TIP] > > For technical users, you can still deploy agents via the REST API. Interfaces are for when you want to ship a complete product without writing code. ## How It Works **1. Build your agent** Start by creating your agent in the Orchestrator as usual. Get it working, test it, deploy it. **2. Open Interfaces** Click the Interfaces icon in the top-right of your agent's view. The Orchestrator will often suggest building an interface at the end of a build — but you can open it anytime. ![How to access the Interfaces feature](https://mintcdn.com/twinlabs/32bkTaA33ltG-5t7/images/interfaces-access.png?fit=max\&auto=format\&n=32bkTaA33ltG-5t7\&q=85\&s=48363ba549e3d36dbe50d6e566ff4f47) Access Interfaces from the icon in the top-right corner of any agent **3. Describe your app** Use the chat on the left side to describe what you want your app to look like. Twin generates the full frontend — layout, components, styling, interactions — with your agent powering the backend. **4. Preview and iterate** See your app live on the right side. Want to change something? Just say it in the chat — "make the table sortable", "add a dark mode", "show a chart for daily trends" — and the interface updates instantly. ![Interface builder showing a live dashboard](https://mintcdn.com/twinlabs/32bkTaA33ltG-5t7/images/interfaces-dashboard.png?fit=max\&auto=format\&n=32bkTaA33ltG-5t7\&q=85\&s=81a661b461c38188218cae9b0e24fcb8) A complete dashboard app built with Interfaces — chat on the left, live preview on the right **5. Publish** When you're ready, publish your app online. Choose who can access it: **Private** (only you), **Restricted** (authenticated users only), or **Public** (open to everyone). ![Publishing options for interfaces](https://mintcdn.com/twinlabs/32bkTaA33ltG-5t7/images/interfaces-publish.png?fit=max\&auto=format\&n=32bkTaA33ltG-5t7\&q=85\&s=ee89eefb0d9098939e2ecfa28dee73eb) Choose your visibility: Private, Restricted, or Public ## Responsive by Default Every interface is responsive out of the box. You can preview how your app looks across different devices — from iPhone SE to wide desktop — using the built-in device picker. ![Responsive device picker for interfaces](https://mintcdn.com/twinlabs/32bkTaA33ltG-5t7/images/interfaces-responsive.png?fit=max\&auto=format\&n=32bkTaA33ltG-5t7\&q=85\&s=b75d044c6120b70a1ba35f36ec4047e2) Preview your app on any device size with the responsive picker ## Version Control Interfaces come with built-in version control. Every change you make is tracked, so you can: * Switch between versions * Roll back to a previous state * Compare what changed between iterations No git required — it's all managed inside Twin. ## What You Can Build > [accordion] Dashboards and internal tools > > Build data dashboards that display live results from your agents — lead trackers, competitor monitors, analytics views. Complete with search, filters, and charts. > [accordion] Customer-facing apps > > Build apps with user sign-up, authentication, and per-user data. Let your users interact with your agents through a polished interface you control. > [accordion] Landing pages and tools > > Ship a public-facing tool powered by your agents. Think: a free SEO analyzer, a price comparison tool, or a lead qualification form — all backed by Twin. > [accordion] Monetizable products > > Because Interfaces support auth and databases, you can build products you charge for. Your Twin agents handle the backend logic, and the interface handles the user experience. ## Two Ways to Deploy > [card] Interfaces > > Build and publish a full app inside Twin. No code, no external hosting. Best for non-technical users or when you want to ship fast. > [card] [REST API](/rest-api) > > Integrate your agents into any existing app. Best for developers who want full control over the frontend. > [card] [Build Your First Interface](https://builder.twin.so/) > > Open Twin and turn your agent into a live app # Orchestrator Source: https://docs.twin.so/orchestrator The workspace-level chat that manages all your agents The Orchestrator is the left-side chat in your workspace. It has full context on every agent, run, and schedule — and it's how you create, modify, and manage agents using natural language. ## What Is the Orchestrator? The Orchestrator is your workspace's command center. Instead of configuring workflows step by step, you describe what you need and the Orchestrator handles everything — from creating agents to coordinating multi-agent workflows. It knows about all agents in your workspace, their goals, their run history, and their current state. This means you can ask it to do things like: * "Create a new agent that monitors competitor pricing" * "Update the lead scraper to also extract LinkedIn profiles" * "Delete the old reporting agent, I don't need it anymore" * "Schedule the data collector to run every morning at 8am" ## How the Orchestrator Works **1. Describe what you need** Explain your goal in natural language. The Orchestrator analyzes your request, determines which agents are needed, and proposes a plan. Before anything runs, you can review and adjust the plan to make sure it matches your expectations. **2. Build or modify agents** Once the plan is approved, the Orchestrator creates or updates agents behind the scenes. This includes: * Defining the execution logic * Setting up navigation and decision points * Connecting outputs to your tools * Handling retries and edge cases **3. Clarify when needed** If something is ambiguous, the Orchestrator asks targeted follow-up questions to avoid incorrect assumptions. Clarifications can happen during initial setup, while refining an agent, or when extending it with new behavior. **4. Test and deploy** After building, the Orchestrator can run test executions with real data. If something doesn't work, follow up in the chat to adjust instructions and re-run — without rebuilding from scratch. ## Proactive Suggestions The Orchestrator doesn't just wait for instructions — it actively helps you improve your workspace. > [card] Split complex agents > > If an agent is doing too much, the Orchestrator will suggest breaking it into focused, smaller agents that are more reliable. > [card] Create new agents > > When it detects a workflow could benefit from a dedicated agent, it will propose creating one. > [card] Coordinate agents > > The Orchestrator can chain agents together — one agent's output becomes another's input. > [card] Optimize workflows > > It monitors how agents perform and suggests improvements to reduce costs or improve reliability. ## What You Can Do > [card] Create agents > > Turn a description like "log into a portal, download files, and store them" into a working agent. > [card] Modify agents > > Add steps, change logic, adjust outputs, or adapt to changes — all through conversation. > [card] Troubleshoot > > If an agent fails, refine instructions and improve reliability directly in the chat. ## Why This Approach Is Different > [accordion] Built for real-world workflows > > Traditional automation tools work best when everything has a clean API. > > The Orchestrator is designed for the opposite case: workflows that happen inside web interfaces, dashboards, and portals. > [accordion] Conversation instead of configuration > > There are no blocks to wire, no forms to fill, and no rigid action catalogs. > > You describe the task the way you would explain it to a teammate, and the Orchestrator handles the execution logic. > [accordion] Full workspace awareness > > Unlike a single-agent chat, the Orchestrator sees your entire workspace. It can reference any agent's history, coordinate between agents, and make workspace-level decisions. ## Get Started > [card] [Open the Orchestrator](https://builder.twin.so/) > > Start building your first agent now # Pricing Source: https://docs.twin.so/pricing Current trial, Pro tiers, and top-up pricing for Twin Twin uses a **credit-based system**. Credits are only deducted when agents do real work - building, running, browsing, researching, or generating output. Paid plans and top-ups are shown in your detected currency. Twin currently uses the same list price in **USD and EUR**, with automatic volume discounts on larger tiers. ## Build Mode vs Run Mode Understanding the difference between building and running is key to managing your credits. > [card] Build Mode > > **Creating or updating agents.** Uses high-reasoning AI to understand your goal, plan steps, and generate the automation logic. This is the most credit-intensive mode. > [card] Run Mode > > **Executing deployed agents.** Uses a lighter-weight model and the agent's memory from previous builds. Repeat runs are **typically 3-10x cheaper** than the initial build. When you launch a build from the chat, you'll confirm whether to use **high** or **low** reasoning before it starts — so you're always in control of the cost. > [!TIP] > > Build once, run many times. After Twin has already discovered the right tools and integrations, repeat runs usually cost far less than the original build. *** ## Plans > [card] Free Trial > > **14 days** - **1,000 credits** to start, then **+200/day** > [card] Pro > > **Tiered monthly credits** starting at **USD 20 / EUR 20** > [card] Custom > > **Shared wallets + custom pricing** for teams and enterprises ### Free Trial — \$0 New users start with **1,000 credits immediately**. During the **14-day trial**, Twin adds **200 more credits each day**, for up to **3,600 total credits** across the full trial. | Included | Details | | - | - | | Trial length | **14 days** | | Credits on day 1 | **1,000** | | Daily trial credits | **+200/day** | | Total credits across the trial | **Up to 3,600** | | What it is for | **Testing Twin end-to-end** | > [!NOTE] > > If you hit 0 credits during the trial, Twin does not interrupt work that is already in progress. More trial credits are granted on the next trial day, or you can upgrade to Pro immediately. ### Pro — tiered monthly pricing Pro is the main self-serve paid plan. You choose how many credits you need per month, and larger tiers automatically get better per-credit pricing. | Included | Details | | - | - | | **2,000 credits / month** | **USD 20 / EUR 20** | | **5,000 credits / month** | **USD 50 / EUR 50** | | **10,000 credits / month** | **USD 95 / EUR 95** | | **20,000 credits / month** | **USD 189 / EUR 189** | | **30,000 credits / month** | **USD 282 / EUR 282** | | **40,000 credits / month** | **USD 373 / EUR 373** | | **50,000 credits / month** | **USD 463 / EUR 463** | #### Pro includes * Unlimited chat * Web scrapers for major platforms * Browser automation * Image and video generation * Slide deck generation * Time triggers * Web search and deep research * Custom agent interfaces * Webhooks * Agent deployment and monetization * Priority support ### Top-Ups Paid subscribers can buy one-time top-ups when they need extra credits. Top-ups use the same tiered credit pricing model as Pro, including volume discounts on larger packages. Top-up credits stay valid for **6 months** as long as your subscription remains active. > [!TIP] > > Current pricing definitions support larger tiers as well, with volume discounts reaching **11.8%** on the biggest packages. ### Custom Need shared wallets, teammate invites, member caps, or custom commercial terms? Twin offers custom plans for teams and enterprise deployments. > [card] [Contact Us](mailto:alexis@twin.so) > > Reach out at [alexis@twin.so](mailto:alexis@twin.so) to discuss your needs *** ## Typical Credit Costs These are current rule-of-thumb examples from Twin's pricing logic: | Task | Typical credits | | - | - | | Simple automation (API -> filter -> email) | **15-30** | | Scraping job (around 100 items) | **20-70** | | Browser-agent session (around 20 steps) | **100-200** | | Media generation (image, video, slides) | **20-50 per asset** | *** ## What Credits Are Used For Credits are only consumed when agents do real work. > [card] Credits Are Used For > > * Building agents (high-reasoning AI) > * Running deployed agents > * Navigating websites > * Executing multi-step automations > * Calling APIs and processing data > [card] No Charges For > > * Idle agents > * Saved configurations > * Inactive workflows > * Viewing results and downloads *** ## Understanding Credit Costs | Mode | Relative Cost | When It's Used | | - | - | - | | **Build** (high reasoning) | Higher | Creating or updating an agent | | **Run** (lower reasoning + memory) | Lower - often **3-10x cheaper** | Running a deployed agent | The exact credits consumed per execution depend on: * Number of steps the agent performs * Whether it uses browser automation * Amount of data processed * Duration of the task Credit usage is always visible after each run in the app. *** ## Usage & Transparency Your credit balance is visible at all times in the app. From the **Credit Usage** view you can inspect: > [card] [Daily Consumption](https://builder.twin.so/credits) > > Track credits used each day > [card] [Runs Per Agent](https://builder.twin.so/credits) > > See how often each agent runs > [card] [Credits Per Agent](https://builder.twin.so/credits) > > Understand which agents cost the most > [card] [Historical Usage](https://builder.twin.so/credits) > > Review usage by month *** ## Need Help? > [card] [Live In-App Support](https://builder.twin.so/) > > Real humans from the team — average response in under 20 minutes > [card] [Email Us](mailto:alexis@twin.so) > > [alexis@twin.so](mailto:alexis@twin.so) > [card] [Get Started Now](https://builder.twin.so/) > > Create your account and start your 14-day trial # Quickstart Source: https://docs.twin.so/quickstart Build your first three Twin agents and experience the full platform This guide walks you through **three hands-on tasks** that cover the core Twin experience: scheduled agents, event-driven triggers, OAuth integrations, and browser automation. By the end you'll have built three working agents — all without writing code. > [card] [Create Your Free Account](https://builder.twin.so/) > > Sign up and get 1,000 free credits — no credit card required *** ## Task 1: Scheduled Email Categorizer Your first agent will run **every day at 9 AM**, scan your Gmail inbox, categorize emails into a Google Sheet, and send you a Slack message when it's done. This task introduces you to: > [card] Build Mode > > Creating your first agent from scratch > [card] Time Schedules > > Automating tasks on a recurring basis > [card] OAuth Integrations > > Seamlessly connecting Gmail, Sheets, and Slack ### Step 1 — Open a new Workspace Go to [Twin](https://builder.twin.so/) and create a new [Workspace](/workspaces). A workspace is where your agents live — think of it as a project folder where agents collaborate and share context. Every agent must live inside a workspace. ### Step 2 — Chat with the Orchestrator On the left side of your screen you'll see the [Orchestrator](/orchestrator) — the AI chat that manages your workspace. This is where you describe what you want to build. ![The Orchestrator managing a workspace](https://mintcdn.com/twinlabs/32bkTaA33ltG-5t7/images/orchestrator-example.png?fit=max\&auto=format\&n=32bkTaA33ltG-5t7\&q=85\&s=bbe69947a7c4cf83c2ea12397c17007f) The Orchestrator (left) is your workspace manager — describe what you need and it builds agents for you ### Step 3 — Give the Orchestrator your goal Paste this prompt (or adapt it to your needs): > [card] Your prompt > > "Every day at 9 AM, look into my Gmail inbox, categorize each new email by type (newsletter, client, internal, billing, other) into a Google Sheet, and send me a Slack message when finished with a summary of what was categorized." The Orchestrator will start a **build** — this is [Build mode](/build-vs-run), where Twin uses high-reasoning AI to interpret your goal, plan the steps, and set up integrations. ### Step 4 — Connect your accounts During the build, Twin will ask you to connect Gmail, Google Sheets, and Slack via **OAuth**. This is a one-click authorization — no API keys to manage, no tokens to copy. Twin handles the permissions securely. > [!TIP] > > OAuth integrations are workspace-scoped. Once you connect an account, all agents in the workspace can use it. ### Step 5 — Review, test, and deploy Twin will show you the execution plan and run a test. Review the results: * Are emails categorized correctly? * Is the Sheet formatted how you want? * Did the Slack message arrive? Refine in the chat if needed, then **deploy**. Your agent is now scheduled and will run every morning at 9 AM in [Run mode](/build-vs-run) - typically **3-10x cheaper** than the build that created it. > [!NOTE] > > This is just one type of [trigger](/triggers). Twin also supports event-based triggers, webhooks, and programmatic triggers via the [REST API](/rest-api). *** ## Task 2: Event-Driven Email Responder Your second agent reacts to **real-time events** — every time you receive a new email, it analyzes the content and sends you a suggested response via Telegram. This task introduces you to: > [card] Custom Webhooks > > Triggering agents based on external events > [card] Zero-Config Setup > > The agent builds the webhook infrastructure for you ### Step 1 — Create a new agent in your Workspace In the same workspace, tell the Orchestrator: > [card] Your prompt > > "Every time I receive a new email in Gmail, analyze it with AI and send me a suggested response via Telegram." ### Step 2 — Understand what's happening This is fundamentally different from Task 1. Instead of running on a schedule, this agent is triggered by an **external event** — a new email arriving. Twin will automatically set up a [custom webhook](/triggers#custom-webhooks) that listens for incoming emails and fires the agent. **You don't have to manage anything.** The agent builds the webhook infrastructure on the fly — no servers to configure, no endpoints to deploy, no polling logic to write. ### Step 3 — Connect Telegram Twin will ask you to connect your Telegram account. Follow the prompts — this is the same smooth OAuth flow you experienced in Task 1. ### Step 4 — Test it live Send yourself a test email and watch the agent react in real time. Within moments you should receive a Telegram message with a suggested response. Refine the tone, length, or format in the chat if needed, then deploy. > [!TIP] > > Event-driven agents are perfect for workflows that need to react immediately — like support triage, lead notifications, or alert escalation. See [Triggers](/triggers) for all the event sources Twin supports. *** ## Task 3: Browser Automation Your third agent uses Twin's [Web Agent](/web-agent) to interact with a real website — filling out a form just like a human would. This task introduces you to: > [card] Web Agent > > Autonomous browser automation in an isolated cloud computer > [card] Human-in-the-Loop > > You can watch, intervene, and take control at any time ### Step 1 — Create a new agent Tell the Orchestrator: > [card] Your prompt > > "Go to [https://httpbin.org/forms/post](https://httpbin.org/forms/post) and fill out the form with sample data, then submit it." ### Step 2 — Approve the browser task Because browser automation is the most credit-intensive operation, Twin will ask for your permission before launching. You'll see a preview of what the agent plans to do and can approve or edit the plan. ![Web Agent asking for permission before launching](https://mintcdn.com/twinlabs/32bkTaA33ltG-5t7/images/web-agent-permission.png?fit=max\&auto=format\&n=32bkTaA33ltG-5t7\&q=85\&s=37818a00cc71cc39a61a2a195c6a80bd) The agent asks for permission before launching the browser — you stay in control ### Step 3 — Watch the agent work An embedded browser window opens inside Twin. This is **not your local browser** — it's an isolated cloud computer dedicated to your agent. You can watch every click, scroll, and keystroke in real time. ![Web Agent browser window showing form interaction](https://mintcdn.com/twinlabs/32bkTaA33ltG-5t7/images/web-agent-browser.png?fit=max\&auto=format\&n=32bkTaA33ltG-5t7\&q=85\&s=0d97d1b17676e35907b2c3bc9b5798f6) The embedded browser shows the agent filling out the form step by step You can **cancel at any time** if something goes off track. ### Step 4 — Understand when the Web Agent activates The Web Agent isn't something you manually choose — the agent decides automatically. It will always prefer APIs and built-in tools (they're faster and cheaper). It only falls back to the browser when an API isn't available or doesn't support the required action. > [!TIP] > > Some agents mix API and browser automation. For example, an Airtable agent might use the API for most operations but launch the browser for "Create Base" because that specific scope isn't available via the API. See [Web Agent](/web-agent) for details and [Tips and Tricks](/tips-tricks) for optimization. *** ## What You've Built > [card] Scheduled Agent > > Runs every morning, categorizes emails, notifies via Slack > [card] Event-Driven Agent > > Reacts to incoming emails in real time via webhook > [card] Browser Agent > > Fills out web forms autonomously in a cloud browser In three tasks you've experienced the full Twin platform: * **[Workspaces](/workspaces)** — where agents live and collaborate * **[Orchestrator](/orchestrator)** — the chat that builds and manages your agents * **[Build vs Run](/build-vs-run)** - creating agents (more expensive) vs executing them (typically 3-10x cheaper) * **[Triggers](/triggers)** — schedules, webhooks, and event-driven automation * **[OAuth integrations](/tips-tricks)** — one-click account connections * **[Web Agent](/web-agent)** — browser automation when APIs aren't enough *** ## What's Next? > [card] [Tips and Tricks](/tips-tricks) > > Optimize your agents for cost, reliability, and quality > [card] [Build an Interface](/interfaces) > > Create a full app or website powered by your agents > [card] [REST API](/rest-api) > > Trigger agents programmatically from your own backend > [card] [Pricing](/pricing) > > Understand credits, plans, and how to stay cost-efficient # REST API Source: https://docs.twin.so/rest-api Integrate Twin programmatically using the REST API Twin exposes a REST API that lets you create agents, trigger runs, inspect events, and manage API keys programmatically. ## Base URL ``` https://build.twin.so ``` ## OpenAPI Specification A machine-readable OpenAPI 3.1 schema is available at: ``` https://build.twin.so/openapi.json ``` You can use this spec to generate client libraries, import into tools like Postman or Insomnia, or explore the API interactively in the docs playground above. ## Authentication Use the following header on every request: ```bash theme={null} x-api-key: YOUR_API_KEY ``` Generate an API key from your [Twin account](https://builder.twin.so) or via the API itself (see below). ## Error Handling Error responses follow RFC 9457 Problem Details and return `Content-Type: application/problem+json`. ```json theme={null} { "type": "about:blank", "title": "Not Found", "status": 404, "detail": "Description of what went wrong" } ``` * `type` is a URI identifying the problem type (`about:blank` means no extra semantics beyond the HTTP status). * `status` is the HTTP status code. * `title` is the standard HTTP reason phrase. * `detail` is a human-readable error message. > [!WARNING] > > If you are migrating from the previous `error.code` / `error.message` format, update your error parsing logic. *** ## API Keys API key management endpoints currently use the `/api/public/v1` path family. These endpoints use the same auth headers and Problem Detail error format as the `/v1` endpoints. ### List API keys > [accordion] GET /api/public/v1/access-api-keys > > Returns all API keys for the authenticated user. > > **Example** > > ```bash theme={null} > curl https://build.twin.so/api/public/v1/access-api-keys \ > -H "x-api-key: YOUR_API_KEY" > ``` > > **Response** > > ```json theme={null} > { > "keys": [ > { > "key_id": "abc123", > "name": "my-integration", > "display_prefix": "tw_live_abc...", > "created_at": 1706000000, > "last_used_at": 1706100000 > } > ] > } > ``` ### Create an API key > [accordion] POST /api/public/v1/access-api-keys > > Creates a new API key. The full key is only returned once, so store it securely. > > **Request body** > > | Field | Type | Required | Description | > | - | - | - | - | > | `name` | string | Yes | Key name (1-128 characters) | > > **Example** > > ```bash theme={null} > curl -X POST https://build.twin.so/api/public/v1/access-api-keys \ > -H "x-api-key: YOUR_API_KEY" \ > -H "Content-Type: application/json" \ > -d '{"name": "my-integration"}' > ``` > > **Response** > > ```json theme={null} > { > "key_id": "abc123", > "name": "my-integration", > "api_key": "tw_live_...", > "display_prefix": "tw_live_abc...", > "created_at": 1706000000 > } > ``` > > > [!WARNING] > > > > The `api_key` field is only returned at creation time. Store it immediately. ### Revoke an API key > [accordion] DELETE /api/public/v1/access-api-keys/\{key\_id} > > Permanently revokes an API key. Requests using it stop working immediately. > > **Path parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `key_id` | string | Yes | ID of the key to revoke | > > **Example** > > ```bash theme={null} > curl -X DELETE https://build.twin.so/api/public/v1/access-api-keys/abc123 \ > -H "x-api-key: YOUR_API_KEY" > ``` > > **Response** > > ```json theme={null} > { > "revoked": true > } > ``` *** ## Identity ### Get current user > [accordion] GET /v1/me > > Returns the authenticated user ID. > > **Example** > > ```bash theme={null} > curl https://build.twin.so/v1/me \ > -H "x-api-key: YOUR_API_KEY" > ``` > > **Response** > > ```json theme={null} > { > "user_id": "user_123" > } > ``` *** ## Agents Versioned agent endpoints live under `/v1/agents`. ### List agents > [accordion] GET /v1/agents > > Returns agents for the authenticated user, with optional pagination and workspace filtering. > > **Query parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `workspace_id` | string | No | Filter to a specific workspace | > | `cursor` | string | No | Cursor for pagination | > | `limit` | integer | No | Max results to return | > > **Example** > > ```bash theme={null} > curl "https://build.twin.so/v1/agents?limit=20" \ > -H "x-api-key: YOUR_API_KEY" > ``` > > **Response** > > ```json theme={null} > { > "agents": [ > { > "agent_id": "agent_abc123", > "latest_run_id": "run_xyz789", > "latest_run_is_finished": true, > "has_runs": true, > "deployment_state": "deployed" > } > ] > } > ``` ### Create an agent > [accordion] POST /v1/agents > > Creates a new agent and returns the full agent object. > > **Request body** > > | Field | Type | Required | Description | > | - | - | - | - | > | `workspace_id` | string | No | Workspace to assign the agent to | > | `owner_user_id` | string | No | Optional owner override | > | `is_subagent` | boolean | No | Whether the new agent is a subagent | > | `derived_from_agent_id` | string | No | Source agent ID for derived agents | > | `agent_id` | string | No | Explicit agent ID override | > > **Example** > > ```bash theme={null} > curl -X POST https://build.twin.so/v1/agents \ > -H "x-api-key: YOUR_API_KEY" \ > -H "Content-Type: application/json" \ > -d '{"workspace_id": "proj_001"}' > ``` > > **Response** `201 Created` > > ```json theme={null} > { > "agent": { > "agent_id": "agent_abc123", > "latest_run_id": "", > "latest_run_is_finished": false, > "has_runs": false, > "workspace_id": "proj_001", > "deployment_state": "not_deployed" > } > } > ``` ### Get an agent > [accordion] GET /v1/agents/\{agent\_id} > > Returns full details for a specific agent. > > **Path parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `agent_id` | string | Yes | The agent ID | > > **Example** > > ```bash theme={null} > curl https://build.twin.so/v1/agents/agent_abc123 \ > -H "x-api-key: YOUR_API_KEY" > ``` > > **Response** > > ```json theme={null} > { > "agent": { > "agent_id": "agent_abc123", > "latest_run_id": "run_xyz789", > "last_activity_at": "2026-02-20T14:30:00Z", > "latest_run_is_finished": true, > "has_runs": true, > "workspace_id": "proj_001", > "deployment_state": "deployed", > "deployed_at": "2026-02-18T10:00:00Z" > } > } > ``` ### Delete an agent > [accordion] DELETE /v1/agents/\{agent\_id} > > Permanently deletes an agent and its run data. > > **Path parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `agent_id` | string | Yes | The agent ID | > > **Example** > > ```bash theme={null} > curl -X DELETE https://build.twin.so/v1/agents/agent_abc123 \ > -H "x-api-key: YOUR_API_KEY" > ``` > > **Response** `204 No Content` — empty body on success. Returns `404` if the agent was not found. *** ## Runs Trigger, list, cancel, and delete runs under each agent. ### List runs > [accordion] GET /v1/agents/\{agent\_id}/runs > > Returns run history for an agent. > > **Path parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `agent_id` | string | Yes | The agent ID | > > **Query parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `page` | integer | No | Page number (default `1`) | > | `page_size` | integer | No | Results per page (default `100`) | > | `filter_status` | string | No | Run status filter | > | `filter_run_id` | string | No | Filter by exact run ID | > | `filter_started_after` | string | No | ISO-8601 lower bound | > | `filter_started_before` | string | No | ISO-8601 upper bound | > | `filter_policy_type` | string | No | Policy type filter | > | `filter_policy_group` | string | No | Policy group filter (`builder`/`runner`) | > > **Example** > > ```bash theme={null} > curl "https://build.twin.so/v1/agents/agent_abc123/runs?page=1&page_size=10&filter_status=finished" \ > -H "x-api-key: YOUR_API_KEY" > ``` > > **Response** > > ```json theme={null} > { > "runs": [ > { > "run_id": "run_xyz789", > "agent_id": "agent_abc123", > "status": "finished", > "started_at": "2026-02-20T14:30:00Z", > "finished_at": "2026-02-20T14:32:15Z" > } > ], > "total_runs": "42", > "page": 1, > "page_size": 10 > } > ``` ### Start a run > [accordion] POST /v1/agents/\{agent\_id}/runs > > Starts a run for an existing agent. > > **Path parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `agent_id` | string | Yes | The agent ID | > > **Request body** > > | Field | Type | Required | Description | > | - | - | - | - | > | `run_mode` | string | No | `"build"` or `"run"` | > | `user_message` | string | No | Optional user message for the run | > | `skip_deploy_check` | boolean | No | Skip deployment checks before starting | > > **Example** > > ```bash theme={null} > curl -X POST https://build.twin.so/v1/agents/agent_abc123/runs \ > -H "x-api-key: YOUR_API_KEY" \ > -H "Content-Type: application/json" \ > -d '{"run_mode": "run", "user_message": "Please execute the latest workflow."}' > ``` > > **Response** `201 Created` > > ```json theme={null} > { > "run": { > "run_id": "run_xyz789", > "agent_id": "agent_abc123", > "status": "in_progress", > "started_at": "2026-02-20T14:30:00Z", > "is_finished": false, > "is_paused": false, > "run_number": 1, > "policy_type": "runner_v2" > } > } > ``` ### Delete a run > [accordion] DELETE /v1/agents/\{agent\_id}/runs/\{run\_id} > > Deletes a run for a specific agent. > > **Path parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `agent_id` | string | Yes | The agent ID | > | `run_id` | string | Yes | The run ID | > > **Example** > > ```bash theme={null} > curl -X DELETE https://build.twin.so/v1/agents/agent_abc123/runs/run_xyz789 \ > -H "x-api-key: YOUR_API_KEY" > ``` > > **Response** `204 No Content` — empty body on success. Returns `404` if the run was not found. ### Cancel a run > [accordion] POST /v1/agents/\{agent\_id}/runs/\{run\_id}/cancel > > Cancels a running run. The request is idempotent — cancelling an already-finished run returns success. > > **Path parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `agent_id` | string | Yes | The agent ID | > | `run_id` | string | Yes | The run ID | > > **Request body** (optional) > > | Field | Type | Required | Description | > | - | - | - | - | > | `reason` | string | No | Human-readable cancellation reason | > > The body is entirely optional — you may send an empty object `{}` or omit the body altogether. > > **Example** > > ```bash theme={null} > curl -X POST https://build.twin.so/v1/agents/agent_abc123/runs/run_xyz789/cancel \ > -H "x-api-key: YOUR_API_KEY" \ > -H "Content-Type: application/json" \ > -d '{"reason": "User requested cancellation"}' > ``` > > **Response** > > ```json theme={null} > { > "error": "" > } > ``` > > An empty `error` means success. A non-empty value is informational (e.g. the run was already stopped). *** ## Events ### List run events > [accordion] GET /v1/agents/\{agent\_id}/runs/\{run\_id}/events > > Returns events for a specific run. > > **Path parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `agent_id` | string | Yes | The agent ID | > | `run_id` | string | Yes | The run ID | > > **Query parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `limit` | integer | No | Max events to return | > | `after_index` | integer | No | Return events after this event index | > > **Example** > > ```bash theme={null} > curl "https://build.twin.so/v1/agents/agent_abc123/runs/run_xyz789/events?limit=50" \ > -H "x-api-key: YOUR_API_KEY" > ``` > > **Response** > > ```json theme={null} > { > "events": [ > { > "index": 1, > "event": { > "started": {} > } > } > ] > } > ``` *** ## Webhooks Register webhook URLs to receive push notifications when runs change state. Instead of polling for run completion, your backend gets an HTTP POST for each lifecycle event. ### Event types | Event | Fired when | | - | - | | `run.started` | A run begins executing | | `run.completed` | A run finishes (success, partial, or fail outcome) | | `run.failed` | A run hits a policy error | | `run.stopped` | A run is stopped by the user | | `run.paused` | A run is paused by the user, or paused by the agent for 15+ minutes | ### Create a webhook > [accordion] POST /v1/agents/\{agent\_id}/webhooks > > Registers a webhook URL for the given agent. The signing secret is returned **only once** in the response — store it immediately. > > **Path parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `agent_id` | string | Yes | The agent ID | > > **Request body** > > | Field | Type | Required | Description | > | - | - | - | - | > | `url` | string | Yes | HTTPS (or HTTP) endpoint to receive events | > | `events` | string\[] | Yes | Event types to subscribe to (at least one required) | > > **Example** > > ```bash theme={null} > curl -X POST https://build.twin.so/v1/agents/agent_abc123/webhooks \ > -H "x-api-key: YOUR_API_KEY" \ > -H "Content-Type: application/json" \ > -d '{ > "url": "https://example.com/webhooks/twin", > "events": ["run.completed", "run.failed"] > }' > ``` > > **Response** `201 Created` > > ```json theme={null} > { > "webhook_id": "01234567-89ab-cdef-0123-456789abcdef", > "url": "https://example.com/webhooks/twin", > "events": ["run.completed", "run.failed"], > "signing_secret": "whsec_a1b2c3d4e5f6...", > "status": "active", > "created_at": "2026-03-11T12:00:00Z" > } > ``` > > > [!WARNING] > > > > The `signing_secret` is only returned at creation time. Store it securely — you need it to verify incoming webhook signatures. ### List webhooks > [accordion] GET /v1/agents/\{agent\_id}/webhooks > > Returns all webhooks registered for the given agent. > > **Path parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `agent_id` | string | Yes | The agent ID | > > **Example** > > ```bash theme={null} > curl https://build.twin.so/v1/agents/agent_abc123/webhooks \ > -H "x-api-key: YOUR_API_KEY" > ``` > > **Response** > > ```json theme={null} > { > "webhooks": [ > { > "webhook_id": "01234567-89ab-cdef-0123-456789abcdef", > "agent_id": "agent_abc123", > "user_id": "user_123", > "url": "https://example.com/webhooks/twin", > "events": ["run.completed", "run.failed"], > "status": "active", > "created_at": "2026-03-11T12:00:00Z", > "updated_at": "2026-03-11T12:00:00Z" > } > ] > } > ``` ### Get a webhook > [accordion] GET /v1/agents/\{agent\_id}/webhooks/\{webhook\_id} > > Returns details for a specific webhook. > > **Path parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `agent_id` | string | Yes | The agent ID | > | `webhook_id` | string | Yes | The webhook ID | > > **Example** > > ```bash theme={null} > curl https://build.twin.so/v1/agents/agent_abc123/webhooks/01234567-89ab-cdef-0123-456789abcdef \ > -H "x-api-key: YOUR_API_KEY" > ``` > > **Response** > > ```json theme={null} > { > "webhook_id": "01234567-89ab-cdef-0123-456789abcdef", > "agent_id": "agent_abc123", > "user_id": "user_123", > "url": "https://example.com/webhooks/twin", > "events": ["run.completed", "run.failed"], > "status": "active", > "created_at": "2026-03-11T12:00:00Z", > "updated_at": "2026-03-11T12:00:00Z" > } > ``` ### Update a webhook > [accordion] PATCH /v1/agents/\{agent\_id}/webhooks/\{webhook\_id} > > Updates a webhook's URL, subscribed events, or status. All fields are optional — only provided fields are changed. > > **Path parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `agent_id` | string | Yes | The agent ID | > | `webhook_id` | string | Yes | The webhook ID | > > **Request body** > > | Field | Type | Required | Description | > | - | - | - | - | > | `url` | string | No | New endpoint URL | > | `events` | string\[] | No | New set of event types | > | `status` | string | No | `"active"` or `"disabled"` | > > **Example** > > ```bash theme={null} > curl -X PATCH https://build.twin.so/v1/agents/agent_abc123/webhooks/01234567-89ab-cdef-0123-456789abcdef \ > -H "x-api-key: YOUR_API_KEY" \ > -H "Content-Type: application/json" \ > -d '{"status": "disabled"}' > ``` > > **Response** > > ```json theme={null} > { > "webhook_id": "01234567-89ab-cdef-0123-456789abcdef", > "agent_id": "agent_abc123", > "user_id": "user_123", > "url": "https://example.com/webhooks/twin", > "events": ["run.completed", "run.failed"], > "status": "disabled", > "created_at": "2026-03-11T12:00:00Z", > "updated_at": "2026-03-11T13:00:00Z" > } > ``` ### Delete a webhook > [accordion] DELETE /v1/agents/\{agent\_id}/webhooks/\{webhook\_id} > > Permanently deletes a webhook. No further events will be delivered. > > **Path parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `agent_id` | string | Yes | The agent ID | > | `webhook_id` | string | Yes | The webhook ID | > > **Example** > > ```bash theme={null} > curl -X DELETE https://build.twin.so/v1/agents/agent_abc123/webhooks/01234567-89ab-cdef-0123-456789abcdef \ > -H "x-api-key: YOUR_API_KEY" > ``` > > **Response** `204 No Content` ### Webhook payload When a subscribed event fires, Twin sends an HTTP POST to your webhook URL with a JSON body: ```json theme={null} { "event": "run.completed", "timestamp": "2026-03-11T14:32:15Z", "data": { "run_id": "run_xyz789", "agent_id": "agent_abc123", "status": "completed", "outcome": "success", "finished_at": "2026-03-11T14:32:15Z" } } ``` | Field | Description | | - | - | | `event` | The event type (e.g. `run.completed`) | | `timestamp` | ISO-8601 timestamp of when the event was dispatched | | `data.run_id` | The run that triggered the event | | `data.agent_id` | The agent the run belongs to | | `data.status` | Run status: `in_progress`, `completed`, `error`, `stopped`, or `paused` | | `data.outcome` | Present on `run.completed`: `success`, `partial`, or `fail` | | `data.finished_at` | Present on terminal events (`run.completed`, `run.failed`, `run.stopped`) | ### Verifying webhook signatures Every webhook delivery includes two headers: | Header | Value | | - | - | | `X-Cobb-Signature` | `sha256=` | | `X-Cobb-Event` | The event type (e.g. `run.completed`) | To verify authenticity, compute `HMAC-SHA256(signing_secret, raw_request_body)` and compare it to the signature in the header. **Example (Node.js)** ```javascript theme={null} const crypto = require("crypto"); function verifyWebhookSignature(secret, body, signatureHeader) { const expected = "sha256=" + crypto.createHmac("sha256", secret).update(body).digest("hex"); return crypto.timingSafeEqual( Buffer.from(expected), Buffer.from(signatureHeader) ); } ``` *** ## Schedules Manage cron-based schedules for agents. Each agent can have at most one schedule. ### Get agent schedule > [accordion] GET /v1/agents/\{agent\_id}/schedule > > Returns the current schedule for an agent, if one exists. > > **Path parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `agent_id` | string | Yes | The agent ID | > > **Example** > > ```bash theme={null} > curl https://build.twin.so/v1/agents/agent_abc123/schedule \ > -H "x-api-key: YOUR_API_KEY" > ``` > > **Response** > > ```json theme={null} > { > "schedule": { > "cron": "0 0 9 * * * *", > "paused": false > } > } > ``` > > > [!NOTE] > > > > Returns `{"schedule": null}` if no schedule is set. ### Set agent schedule > [accordion] PUT /v1/agents/\{agent\_id}/schedule > > Creates or replaces the cron schedule for an agent. The agent must be deployed. > > **Path parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `agent_id` | string | Yes | The agent ID | > > **Request body** > > | Field | Type | Required | Description | > | - | - | - | - | > | `cron` | string | Yes | Cron expression (7-field format) | > > **Example** > > ```bash theme={null} > curl -X PUT https://build.twin.so/v1/agents/agent_abc123/schedule \ > -H "x-api-key: YOUR_API_KEY" \ > -H "Content-Type: application/json" \ > -d '{"cron": "0 0 9 * * * *"}' > ``` > > **Response** > > ```json theme={null} > { > "success": true > } > ``` > > > [!NOTE] > > > > Twin uses 7-field cron expressions: `sec min hour day month day-of-week year`. ### Delete agent schedule > [accordion] DELETE /v1/agents/\{agent\_id}/schedule > > Removes the schedule from an agent. > > **Path parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `agent_id` | string | Yes | The agent ID | > > **Example** > > ```bash theme={null} > curl -X DELETE https://build.twin.so/v1/agents/agent_abc123/schedule \ > -H "x-api-key: YOUR_API_KEY" > ``` > > **Response** > > ```json theme={null} > { > "success": true > } > ``` ### Pause schedule > [accordion] POST /v1/agents/\{agent\_id}/schedule/pause > > Pauses the agent's schedule. The schedule is retained but will not trigger runs until resumed. > > **Path parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `agent_id` | string | Yes | The agent ID | > > **Example** > > ```bash theme={null} > curl -X POST https://build.twin.so/v1/agents/agent_abc123/schedule/pause \ > -H "x-api-key: YOUR_API_KEY" > ``` > > **Response** > > ```json theme={null} > { > "success": true > } > ``` ### Resume schedule > [accordion] POST /v1/agents/\{agent\_id}/schedule/resume > > Resumes a paused schedule. > > **Path parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `agent_id` | string | Yes | The agent ID | > > **Example** > > ```bash theme={null} > curl -X POST https://build.twin.so/v1/agents/agent_abc123/schedule/resume \ > -H "x-api-key: YOUR_API_KEY" > ``` > > **Response** > > ```json theme={null} > { > "success": true > } > ``` ### List all schedules > [accordion] GET /v1/schedules > > Returns all schedules for the authenticated user across all agents. > > **Example** > > ```bash theme={null} > curl https://build.twin.so/v1/schedules \ > -H "x-api-key: YOUR_API_KEY" > ``` > > **Response** > > ```json theme={null} > { > "schedules": [ > { > "agent_id": "agent_abc123", > "cron": "0 0 9 * * * *", > "paused": false > } > ] > } > ``` *** ## Instructions Read and update the auto-generated instructions for an agent, with version history. ### Get instructions > [accordion] GET /v1/agents/\{agent\_id}/instructions > > Returns the current instructions for an agent. > > **Path parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `agent_id` | string | Yes | The agent ID | > > **Example** > > ```bash theme={null} > curl https://build.twin.so/v1/agents/agent_abc123/instructions \ > -H "x-api-key: YOUR_API_KEY" > ``` > > **Response** > > ```json theme={null} > { > "instructions": { > "content": "Check email every morning and summarize unread messages." > } > } > ``` ### Update instructions > [accordion] PUT /v1/agents/\{agent\_id}/instructions > > Replaces the agent's instructions. Each update creates a new version in the history. > > **Path parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `agent_id` | string | Yes | The agent ID | > > **Request body** > > | Field | Type | Required | Description | > | - | - | - | - | > | `content` | string | Yes | The new instructions text | > | `source_type` | string | No | Source of the update (e.g. `"api"`, `"builder"`) | > | `source_id` | string | No | Identifier for the source | > > **Example** > > ```bash theme={null} > curl -X PUT https://build.twin.so/v1/agents/agent_abc123/instructions \ > -H "x-api-key: YOUR_API_KEY" \ > -H "Content-Type: application/json" \ > -d '{"content": "Check email and Slack every morning."}' > ``` > > **Response** > > ```json theme={null} > { > "success": true > } > ``` ### Get instructions history > [accordion] GET /v1/agents/\{agent\_id}/instructions/history > > Returns previous versions of the agent's instructions. > > **Path parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `agent_id` | string | Yes | The agent ID | > > **Query parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `limit` | integer | No | Max versions to return (default: all) | > > **Example** > > ```bash theme={null} > curl "https://build.twin.so/v1/agents/agent_abc123/instructions/history?limit=10" \ > -H "x-api-key: YOUR_API_KEY" > ``` > > **Response** > > ```json theme={null} > { > "instruction_versions": [ > { > "content": "Check email and Slack every morning.", > "created_at": "2026-03-11T15:00:00Z" > }, > { > "content": "Check email every morning and summarize unread messages.", > "created_at": "2026-03-11T14:00:00Z" > } > ] > } > ``` *** ## Workspaces Organize agents into workspaces (folders). Every user has at least one default workspace. ### List workspaces > [accordion] GET /v1/workspaces > > Returns all workspaces for the authenticated user. > > **Example** > > ```bash theme={null} > curl https://build.twin.so/v1/workspaces \ > -H "x-api-key: YOUR_API_KEY" > ``` > > **Response** > > ```json theme={null} > { > "workspaces": [ > { > "workspace_id": "ws_001", > "name": "My Workspace" > } > ] > } > ``` ### Create a workspace > [accordion] POST /v1/workspaces > > Creates a new workspace. > > **Request body** > > | Field | Type | Required | Description | > | - | - | - | - | > | `name` | string | Yes | Workspace name | > > **Example** > > ```bash theme={null} > curl -X POST https://build.twin.so/v1/workspaces \ > -H "x-api-key: YOUR_API_KEY" \ > -H "Content-Type: application/json" \ > -d '{"name": "Marketing Agents"}' > ``` > > **Response** `201 Created` > > ```json theme={null} > { > "workspace": { > "workspace_id": "ws_002", > "name": "Marketing Agents" > } > } > ``` ### Update a workspace > [accordion] PUT /v1/workspaces/\{workspace\_id} > > Updates a workspace's name or icon. > > **Path parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `workspace_id` | string | Yes | The workspace ID | > > **Request body** > > | Field | Type | Required | Description | > | - | - | - | - | > | `name` | string | Yes | New workspace name | > | `icon_config` | string | No | Icon configuration string | > > **Example** > > ```bash theme={null} > curl -X PUT https://build.twin.so/v1/workspaces/proj_002 \ > -H "x-api-key: YOUR_API_KEY" \ > -H "Content-Type: application/json" \ > -d '{"name": "Renamed Workspace"}' > ``` > > **Response** > > ```json theme={null} > { > "workspace": { > "workspace_id": "ws_002", > "name": "Renamed Workspace" > } > } > ``` ### Delete a workspace > [accordion] DELETE /v1/workspaces/\{workspace\_id} > > Deletes a workspace and all agents inside it. > > **Path parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `workspace_id` | string | Yes | The workspace ID | > > **Example** > > ```bash theme={null} > curl -X DELETE https://build.twin.so/v1/workspaces/proj_002 \ > -H "x-api-key: YOUR_API_KEY" > ``` > > **Response** > > ```json theme={null} > { > "deleted": true > } > ``` > > > [!WARNING] > > > > This permanently deletes the workspace and all agents within it. ### Reorder workspaces > [accordion] POST /v1/workspaces/reorder > > Sets the display order of workspaces. > > **Request body** > > | Field | Type | Required | Description | > | - | - | - | - | > | `workspace_ids` | string\[] | Yes | Workspace IDs in the desired order | > > **Example** > > ```bash theme={null} > curl -X POST https://build.twin.so/v1/workspaces/reorder \ > -H "x-api-key: YOUR_API_KEY" \ > -H "Content-Type: application/json" \ > -d '{"workspace_ids": ["proj_002", "proj_001"]}' > ``` > > **Response** > > ```json theme={null} > { > "success": true > } > ``` ### Move agent to workspace > [accordion] POST /v1/agents/\{agent\_id}/move > > Moves an agent from its current workspace to a different one. > > **Path parameters** > > | Field | Type | Required | Description | > | - | - | - | - | > | `agent_id` | string | Yes | The agent ID | > > **Request body** > > | Field | Type | Required | Description | > | - | - | - | - | > | `workspace_id` | string | Yes | Target workspace ID | > > **Example** > > ```bash theme={null} > curl -X POST https://build.twin.so/v1/agents/agent_abc123/move \ > -H "x-api-key: YOUR_API_KEY" \ > -H "Content-Type: application/json" \ > -d '{"workspace_id": "proj_002"}' > ``` > > **Response** > > ```json theme={null} > { > "success": true > } > ``` *** ## Quick Reference | Action | Method | Endpoint | | - | - | - | | List API keys | `GET` | `/api/public/v1/access-api-keys` | | Create API key | `POST` | `/api/public/v1/access-api-keys` | | Revoke API key | `DELETE` | `/api/public/v1/access-api-keys/{key_id}` | | Get current user | `GET` | `/v1/me` | | List agents | `GET` | `/v1/agents` | | Create agent | `POST` | `/v1/agents` | | Get agent | `GET` | `/v1/agents/{agent_id}` | | Delete agent | `DELETE` | `/v1/agents/{agent_id}` | | List runs | `GET` | `/v1/agents/{agent_id}/runs` | | Start run | `POST` | `/v1/agents/{agent_id}/runs` | | Delete run | `DELETE` | `/v1/agents/{agent_id}/runs/{run_id}` | | Cancel run | `POST` | `/v1/agents/{agent_id}/runs/{run_id}/cancel` | | List run events | `GET` | `/v1/agents/{agent_id}/runs/{run_id}/events` | | Create webhook | `POST` | `/v1/agents/{agent_id}/webhooks` | | List webhooks | `GET` | `/v1/agents/{agent_id}/webhooks` | | Get webhook | `GET` | `/v1/agents/{agent_id}/webhooks/{webhook_id}` | | Update webhook | `PATCH` | `/v1/agents/{agent_id}/webhooks/{webhook_id}` | | Delete webhook | `DELETE` | `/v1/agents/{agent_id}/webhooks/{webhook_id}` | | Get schedule | `GET` | `/v1/agents/{agent_id}/schedule` | | Set schedule | `PUT` | `/v1/agents/{agent_id}/schedule` | | Delete schedule | `DELETE` | `/v1/agents/{agent_id}/schedule` | | Pause schedule | `POST` | `/v1/agents/{agent_id}/schedule/pause` | | Resume schedule | `POST` | `/v1/agents/{agent_id}/schedule/resume` | | List all schedules | `GET` | `/v1/schedules` | | Get instructions | `GET` | `/v1/agents/{agent_id}/instructions` | | Update instructions | `PUT` | `/v1/agents/{agent_id}/instructions` | | Instructions history | `GET` | `/v1/agents/{agent_id}/instructions/history` | | List workspaces | `GET` | `/v1/workspaces` | | Create workspace | `POST` | `/v1/workspaces` | | Update workspace | `PUT` | `/v1/workspaces/{workspace_id}` | | Delete workspace | `DELETE` | `/v1/workspaces/{workspace_id}` | | Reorder workspaces | `POST` | `/v1/workspaces/reorder` | | Move agent | `POST` | `/v1/agents/{agent_id}/move` | > [!NOTE] > > Agent, run, and event APIs are now versioned REST endpoints under `/v1` with standard HTTP methods. > [card] [Get your API key](https://builder.twin.so/) > > Sign in to Twin to generate your API key and start building. # Tips and Tricks Source: https://docs.twin.so/tips-tricks Get the most out of your Twin plan with these best practices Twin is an AI company builder — you can create complex automations in minutes using only natural language. The agents you build can feel like giving a smart person 24/7 access to all your tools, so they can get things done for you. We're still in the early days, and your results will vary depending on how you use it. These best practices will help you get the most out of Twin. > [card] TL;DR > > Be specific, build once, then run on schedule with API-first instructions. **The key principles:** * State the problem clearly and brainstorm with the agent to find the right solution * Give enough context and mention the tools you use * Leverage Twin's built-in tools (research, sheets, slides, email, and more) * During build mode, monitor your agent and course-correct in the chat if it goes off track *** ## 1. How Credits Work Paid credits start at **USD 0.01 / EUR 0.01 per credit**, with volume discounts on larger tiers. Credits are then consumed by model decisions (input/output/cache tokens) and paid tool usage when applicable. > [card] First runs cost more > > Twin is discovering APIs, handling auth, and shaping reusable tools for the first time. This exploration is credit-intensive. > [card] Later runs cost less > > The agent reuses what it already learned — established tools, cached decisions, and proven paths. > [!NOTE] > > Every decision counts, including retries. If an agent retries a failed step, that still consumes credits. *** ## 2. Why Scheduled Runs Are Cheaper Build-style runs discover and design workflows. Run-style executions reuse established tools and instructions - making recurring runs **typically 3-10x cheaper** than builds. **1. Build and refine once** Get the agent working correctly through the chat editor. Iterate until the output is reliable. **2. Schedule it** Deploy the agent on a recurring schedule. Each scheduled run uses the lightweight run mode. **3. Improve with small updates** When something needs to change, make small instruction updates instead of rebuilding from scratch. This preserves the agent's memory and keeps costs low. *** ## 3. API-First Beats Browser-First Not all execution paths cost the same. Use this priority order whenever possible: | Priority | Method | Why | | - | - | - | | 1 | **Built-in tools** | Fastest, cheapest, most reliable | | 2 | **APIs** | Deterministic and easy to maintain | | 3 | **Scrapers** | Good for static pages | | 4 | **Browser automation** | Last resort | > [card] APIs > > Faster, more deterministic, and easier to maintain. Always preferred when available. > [card] Browser automation > > Slower, more brittle, and more expensive. Use only when there's no API or scraper alternative. > [!TIP] > > Mention the tools and APIs you already use in your instructions. This helps Twin choose the most efficient path. *** ## 4. Better Instructions = Lower Costs + Better Quality The quality of your instructions directly impacts both cost and accuracy. Always include: | Detail | What to specify | | - | - | | **Source app(s)** | Exactly where data comes from | | **Filters & constraints** | Date range, owners, statuses, thresholds | | **Output format** | Table, CSV, JSON, email summary, doc, slide deck | | **Destination** | Where the final output should go (Sheets, email, docs, etc.) | | **Definition of done** | One sentence that says what success looks like | ### Prompt template > [card] Example prompt > > Every weekday at 8:00 AM, pull yesterday's new leads from HubSpot, exclude duplicates by email, append to my "Inbound Leads" Google Sheet, then send me a 5-bullet summary email with total count and top 3 companies. > > **Done when** the sheet is updated and the email is sent. *** ## 5. Brainstorm and Debug to Keep Agents Efficient Don't just build and forget — actively improve your agents over time. > [card] Brainstorm tasks > > Use Twin to discover high-ROI workflows before building. Ask it what's possible with the tools you already use. > [card] Debug last run > > When costs feel high or results are weak, ask Twin to analyze what happened and suggest improvements. Ask Twin explicitly: * "Where did this run spend most credits?" * "What should I change to reduce cost by 30%?" Review cost by run and by agent in the [credits dashboard](https://builder.twin.so/credits), then iterate your goal and instructions. *** ## 6. Keep Agents Focused to Avoid Context Bloat Long-running agents accumulate context with every message and decision. The more steps an agent takes in a single session, the larger its context window grows — and the more tokens (credits) each subsequent step consumes. > [!WARNING] > > An agent that runs 50+ steps in a single build can cost significantly more per step toward the end than at the beginning, because it carries the full conversation history. To keep costs predictable: * **Break complex workflows into multiple focused agents** inside a [Workspace](/workspaces) — the [Orchestrator](/orchestrator) can help you split them * **Avoid open-ended goals** like "research everything about X" — set clear boundaries and a definition of done * **Use Run mode** for recurring tasks — it starts fresh with the agent's memory, avoiding context buildup *** ## Built-In Tools These are available out of the box and unlock a wide range of workflows without any setup: > [card] web\_search > > Fetch current info, API docs, and web answers > [card] scrape > > Pull clean content from specific pages > [card] deep\_research > > Multi-source research with async polling > [card] stock\_market > > Quotes, historical prices, and market news > [card] send\_email > > Alerts, summaries, and outbound updates > [card] build\_chart > > Generate chart images for reports > [card] scrape\_platforms > > Scrape social, job, map, and marketplace platforms > [card] sheets > > Create, read, update, and export Google Sheets > [card] slides > > Generate presentation decks (PDF output) > [card] docs > > Create and edit formatted Google Docs > [card] generate\_media > > Create AI images and videos for campaigns and content > [!TIP] > > You don't need to tell Twin which tool to use — just describe what you need, and it will pick the right one. But mentioning a specific tool can help if you have a preference. *** ## Quick Recap > [card] Be specific > > Clear goals with filters, formats, and destinations > [card] Build once > > Refine until reliable, then schedule > [card] API-first > > Prefer APIs and built-in tools over browser automation > [card] [Start Building](https://builder.twin.so/) > > Apply these tips in the Twin App # Triggers Source: https://docs.twin.so/triggers Start Twin agents automatically Triggers let Twin agents run without manual input — either when something happens in another app or on a defined schedule. ## Overview Triggers are how agents move from "on-demand" to fully autonomous. With triggers, an agent can: * Start immediately when an external event occurs * Run automatically at fixed intervals * Be triggered programmatically from your own backend > [card] Event-based triggers > > Agents react to incoming events from other apps > [card] Time-based triggers > > Agents run on a defined schedule > [card] REST API > > Trigger agents from your own backend via API Both allow Twin to operate continuously in the background. ## Event-Based Triggers Event-based triggers launch an agent as soon as something happens in another system — for example, when a message arrives or new data is created. ### Built-in Event Sources Twin supports direct connections to common communication and productivity tools. Once an account is connected, events from that tool can be used to start an agent automatically. > [card] Examples > > * New messages or activity in Slack > * Updates in GDrive or Attio > * Changes in Intercom or internal tools ### External App Events Twin can also react to events from a wide range of third-party services via event platforms and connectors. This makes it possible to trigger agents from thousands of applications, including: > [card] Gmail > > New emails, label changes, or draft creation > [card] Google Calendar > > Event creation, updates, or deletions > [card] GitHub > > Code pushes, new issues, pull requests > [card] Notion > > Page or database updates Also supports **HubSpot, Stripe, Airtable**, and many more. If your app supports event-based actions, Twin can likely trigger from it. ### Custom Webhooks For systems that aren't supported out of the box, Twin can expose **custom webhook endpoints**. These endpoints accept structured HTTP requests and can be called from: * Internal services * Custom applications * Scripts * Any platform capable of sending JSON payloads You simply specify what system should call the webhook and what data it will send — Twin handles the rest. ## Setting Up Event Triggers **1. Connect the source system** Link the tool or service that will emit the event. **2. Define the triggering condition** Specify what should start the agent (for example, "a new message is received" or "a record is created"). **3. Review and activate** Once configured, the trigger becomes active and will start the agent automatically when the condition is met. You can see and manage active triggers from your agent settings. ## Scheduled Triggers Scheduled triggers run agents at predefined times, regardless of external events. This is useful for: > [card] Data Collection > > Recurring data gathering tasks > [card] Reports > > Daily or weekly automated reports > [card] Monitoring > > Regular monitoring tasks > [card] Maintenance > > Routine maintenance workflows ### Creating a Schedule **1. Verify the agent** Make sure the agent runs correctly when executed manually. **2. Choose a schedule** Select how often it should run — hourly, daily, weekly, or a custom interval. **3. Activate the schedule** Once saved, the agent will run automatically based on the defined timing. **4. Manage schedules** All active schedules can be viewed and adjusted from the scheduling dashboard. ## REST API Triggers If you're a developer, you can trigger Twin agents directly from your own backend using the [REST API](/rest-api). This lets you integrate Twin into any existing application or workflow. ```bash theme={null} curl -X POST https://build.twin.so/v1/agents/agent_abc123/runs \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"run_mode": "run", "user_message": "Run now"}' ``` Use API triggers when you want to: * Run agents in response to events in your own system * Integrate Twin into a custom pipeline or CI/CD flow * Build a product where Twin agents power backend logic > [card] [REST API Reference](/rest-api) > > See the full API documentation for triggering runs, managing agents, and more ## Choosing the Right Trigger | Scenario | Recommended Trigger | | - | - | | React immediately to messages or updates | Event-based trigger | | Run recurring jobs or reports | Scheduled trigger | | Integrate with unsupported systems | Webhook trigger | | Trigger from your own backend | REST API | **Event-based triggers** are ideal when speed matters. **Scheduled triggers** are best for predictable, recurring work. **REST API** is best for developers integrating Twin into existing systems. > [card] [Start Building](https://builder.twin.so/) > > Set up your first trigger in the Twin App # Troubleshooting Source: https://docs.twin.so/troubleshooting Diagnose and fix issues when an agent doesn't behave as expected This page helps you diagnose and fix issues when an agent doesn't behave as expected — whether it fails with an error or completes with the wrong output. ## 1) Start With the Fast Path: Inspect the Last Run The quickest way to debug is to look at the most recent execution. In Twin, your first stop should always be: * The **latest run details** (what the agent did, step by step) * The **inputs** that were provided * Any **errors / warnings** surfaced during execution If you're using the chat editor, describe what happened and reference the last run so Twin can reason over it. > [card] Examples of what to ask in chat > > * "This agent run failed — explain what happened and how to fix it." > * "The run completed but the output is wrong. Identify where it went off track." > * "Rerun with the same input, but add stronger extraction rules and return structured output." ## 2) If the Agent Finished but the Output Is Wrong Sometimes everything "succeeds," but the result is incomplete, oddly formatted, or inaccurate. Treat this differently than a hard failure. ### Debug checklist > [accordion] Validate inputs > > * Were you using the expected URL, file, row, or payload? > * Are fields missing or in a different format than usual? > [accordion] Follow the execution path > > * Review the run steps and confirm the agent visited the right page(s) and captured the right data. > * Look for skipped branches (filters, conditions, early exits). > [accordion] Reduce the problem > > Re-run with a very simple input you can predict: > > * Example: use one test URL instead of a list of 50 > * Example: use a single row instead of the full spreadsheet > > If the simple case works, the issue is likely input complexity or edge cases. > [accordion] Check decision points > > If the agent is making choices (e.g., "pick the best result", "find the right page"), tighten your instructions: > > * Specify which page to prefer (About vs Team vs Contact) > * Define what counts as a "match" > * Define the exact output schema > [accordion] Verify external systems > > If the agent writes into a tool (Sheets, CRM, email), confirm: > > * Correct destination > * Correct permissions > * Correct field mapping ## 3) Common Failure Patterns These are the most frequent reasons an agent fails or becomes unreliable: > [card] Web Access & Page Changes > > * The page layout changed > * Content loads dynamically and needs extra waiting > * The site blocks automation or rate-limits requests > [card] Authentication Issues > > * The agent is being redirected to a login page > * A session expired > * Multi-factor authentication is required > [card] Data & Formatting Issues > > * Input fields are empty or malformed > * Outputs are in a different format than expected > * A filter is too strict (or not strict enough) > [card] Retry Loops & Excessive Credits > > * The agent retries a failed step repeatedly (e.g., sandbox or permission errors) > * Expensive tools are chosen when simpler alternatives exist > * Long-running agents accumulate context, increasing cost per step > [card] Agent Ignoring Instructions > > * Complex goals with conflicting constraints confuse priority > * The agent falls back to a prohibited tool when preferred methods fail > * Step limits or explicit prohibitions aren't consistently tracked ## 4) Escalate to Support With the Right Details If you've tried the steps above and you're still blocked, reach out — but include enough information for a fast diagnosis. ### Where to escalate Twin has **live in-app support** with real human agents from the team, responding in under 20 minutes. Open [Twin](https://builder.twin.so/) and use the support chat — it's the fastest way to get help. ### What to include | Item | Description | | - | - | | **Agent link** | Agent or workflow link (or the agent name in your workspace) | | **Run ID** | The exact failing run identifier | | **Summary** | One-line summary of the issue | | **Expected vs actual** | What should have happened vs what did happen | | **Inputs used** | Redact sensitive info if needed | | **What you tried** | So support doesn't repeat steps | ## Quick Rule of Thumb > [card] Hard error / crash > > Focus on logs, permissions, authentication, and missing inputs > [card] Success but wrong output > > Focus on data flow, decision rules, and tightening instructions > [card] Intermittent failures > > Focus on website variability, rate limits, and retries ## Getting Help > [card] [Book a Call](https://calendly.com/d/cs9s-xbz-bv5/twin-feedback-call) > > Talk to the founding team ## Still Stuck? Contact us at **[hugo@twin.so](mailto:hugo@twin.so)** for urgent issues. # Web Agent Source: https://docs.twin.so/web-agent Browser automation for when APIs aren't enough Twin's Web Agent automates tasks that happen inside websites — multi-step flows, logins, dynamic pages — by controlling a browser autonomously. It's powerful, but it's also the **most expensive and least reliable** execution mode in Twin. > [!WARNING] > > Browser automation consumes significantly more credits than API-based execution. Always prefer APIs and built-in tools when available. See [Tips and Tricks](/tips-tricks) for the recommended priority order. > [!NOTE] > > **Run a website the Web Agent visits?** See [For Website Owners](#for-website-owners) for who operates it, how it uses your content, and how to identify or contact us. ## Important: This Is Not Your Local Browser The Web Agent does **not** access your local browser (Chrome, Safari, Arc, etc.). It runs in an **embedded window on an isolated cloud computer** dedicated to your agent. Think of it as a virtual computer that Twin spins up for you — completely separate from your machine. Your local browser, cookies, and sessions are never touched. ## When Does the Web Agent Activate? The Web Agent is not something you manually turn on. It's triggered in two situations: > [card] No API available > > The agent realizes there's no API for the service or action it needs to perform, so it falls back to browser automation. > [card] Missing API scope > > An API exists but doesn't expose the specific action needed. The agent switches to the browser for just that step. Many agents end up being a **mix of API and browser automation** — using APIs for most tasks and the browser only when a specific scope or endpoint isn't available. > [accordion] Real-world example: Airtable > > Airtable has a comprehensive API, but the **"Create Base"** scope is not available through it. Twin is smart enough to detect this automatically — it uses the browser only for the base creation step, then switches back to the API for everything else. > > This hybrid approach keeps costs down while still handling edge cases that APIs can't cover. ## Permission Before Browser Tasks During the [build phase](/build-vs-run), if the agent determines it needs browser automation, it will **ask for your permission** before launching it — because browser tasks are more expensive. You're always in control: you can approve the browser task, or ask the agent to find an alternative approach. > [!TIP] > > Check the [Tips and Tricks](/tips-tricks) page for guidance on how to write instructions that prefer APIs over browser automation, keeping your costs low. ## How the Web Agent Works — Step by Step Here's an example of the Web Agent filling out a web form. This is a simple demo task, but form submission is a common and practical use case. **1. Scrape the page first** Before launching the browser, the agent **scrapes the target page** to understand its structure — what fields exist, what's expected, and what actions are needed. This pre-analysis step saves credits by planning the browser session efficiently. ![Agent analyzing a web form before launching the browser](https://mintcdn.com/twinlabs/32bkTaA33ltG-5t7/images/web-agent-overview.png?fit=max\&auto=format\&n=32bkTaA33ltG-5t7\&q=85\&s=b35d0e56bb04521d0e44a8084fbc6e7d) The agent scrapes the form page first, identifies the fields, and asks you for the details it needs **2. Review the browser task before launch** Before the browser session starts, the Builder shows you the **exact plan** for what the Web Agent will do — target URL, fields to fill, actions to take. You can **Launch** it as-is, **Edit** the prompt to adjust the behavior, or **Cancel** entirely. You're always in control of what the browser agent does before it starts. ![Permission dialog showing the browser automation plan](https://mintcdn.com/twinlabs/32bkTaA33ltG-5t7/images/web-agent-permission.png?fit=max\&auto=format\&n=32bkTaA33ltG-5t7\&q=85\&s=37818a00cc71cc39a61a2a195c6a80bd) Review the browser automation goal — you can launch, edit, or cancel before any browser action happens **3. Watch it execute in the embedded browser** An embedded browser window opens and you can **watch the agent work step by step** in real time. It navigates, clicks, fills forms, and interacts with the page autonomously. You can **cancel at any time** if something goes wrong. ![Live browser view of the Web Agent filling a form](https://mintcdn.com/twinlabs/32bkTaA33ltG-5t7/images/web-agent-browser.png?fit=max\&auto=format\&n=32bkTaA33ltG-5t7\&q=85\&s=0d97d1b17676e35907b2c3bc9b5798f6) The embedded cloud browser showing the agent filling out the form — you can cancel at any time **4. Returns to API mode** Once the browser task is done, the agent **closes the browser session** and continues using APIs for any remaining steps. This hybrid approach minimizes cost. ## Human-in-the-Loop: Login & Authentication For tasks that require logging into a gated app (LinkedIn, Reddit, etc.), the Web Agent **automatically detects login pages** and pauses to give you control. When this happens: 1. The agent recognizes the login page and **stops** 2. You get **full control of the browser** — type, scroll, click, use 2FA 3. Once logged in, you **hand control back** to the agent 4. The agent continues from where you left off and **stores the cookies** to keep you logged in for future runs This means you only need to log in once — subsequent runs will reuse the session automatically (until cookies expire, see [Credentials & Cookies](#credentials--cookies) below). ## Scheduling Web Agent Tasks Web Agent tasks can be **scheduled just like any other agent** — using cron-based schedules, event-based triggers, or the [REST API](/rest-api). Once an agent is built and deployed, it runs autonomously on schedule regardless of whether it uses APIs, browser automation, or both. See [Triggers](/triggers) for all the ways to automate agent execution. ## Cost Considerations Browser automation is the most credit-intensive execution mode. To keep costs under control: | Do | Don't | | - | - | | Mention the APIs and tools you use in your instructions | Leave it to the agent to discover APIs from scratch | | Let the agent use built-in tools first | Force browser automation when an API would work | | Review which steps use the browser and optimize | Ignore high-credit runs without investigating | See the [Tips and Tricks](/tips-tricks) page for detailed guidance on writing API-first instructions. ## Credentials & Cookies Since each agent gets a dedicated cloud browser, login sessions work just like on your desktop browser. When your agent logs into an app, **we store the cookies** so that on the next run or visit, the agent is still logged in. However, cookie expiration varies by service — some expire in hours, others last for months. Twin has no control over how long a service keeps its session cookies active. > [card] Cookies are persisted > > Login sessions carry over between runs, just like in a regular browser > [card] Expiration varies > > Some services expire sessions quickly, others keep them for months — we can't control this > [!NOTE] > > **Coming soon: Password Manager.** You'll be able to store your credentials securely inside Twin. When cookies expire, the Web Agent will automatically pick up your stored credentials and re-authenticate — no manual intervention needed. ## For Website Owners This section is for people who run websites the Web Agent visits. It covers who operates the agent, what it does with your content, and how to identify or contact us. ### Who Operates It Twin operates the Web Agent as a service for its users. It is an **intermediary agent**: each browser session is started on behalf of one Twin user, to complete a task that user asked for, either in a conversation or in an automation they scheduled. * **It does not crawl.** It opens the page a task starts from and follows only the links that task needs. It does not build a search index or collect pages in bulk. * **It acts only for the user.** It signs in only with credentials the user enters themselves, and acts only inside that user's own account. * **It browses at a human pace.** Each session drives a single browser, and an AI model decides each step. A task can run a few sessions at once, for example to compare offers across sites. ### How We Use Your Content * Content from your pages is used only to complete the task of the user who started the session, and the results go only to that user. * Twin does not use it to train or fine-tune AI models, and the AI model providers that run the agent do not train on it either. We do not use it for advertising. * Session data, such as screenshots, the session replay, and page content the agent saw, stays in that user's workspace so they can review what the agent did, until they delete it. Deletion follows our [Privacy Policy](https://twin.so/privacy). In Content Signals terms: `ai-input` yes, `search` no, `ai-train` no. ### robots.txt The Web Agent does not crawl, so it does not read robots.txt. Like a person's browser, it visits only the pages a user's task needs. To limit or block it, identify its requests as described below, or [contact us](#contact). ### How to Identify It **Web Bot Auth signatures.** The Web Agent signs requests with HTTP Message Signatures ([RFC 9421](https://www.rfc-editor.org/rfc/rfc9421.html)), following the [Web Bot Auth](https://datatracker.ietf.org/wg/webbotauth/about/) drafts. Signed requests carry this header: ``` Signature-Agent: "https://prod.cua.twin.so" ``` Verify signatures with the public keys published at: ``` https://prod.cua.twin.so/.well-known/http-message-signatures-directory ``` **User agent.** Some requests also identify the agent in the user agent string: ``` Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36 Twin/1.0 (+https://docs.twin.so/web-agent) ``` ### Contact For questions, rate concerns, or to ask us to block or allow the agent on your site, email [support@twin.so](mailto:support@twin.so). Include your domain and, if you have them, the timestamps of the requests. ## FAQ > [accordion] Is the browser running on my computer? > > **No.** The Web Agent runs on an isolated cloud computer dedicated to your agent. Your local browser, cookies, and sessions are never accessed or affected. > [accordion] When should I use the Web Agent vs APIs? > > You generally don't choose — the agent decides automatically. It will always prefer APIs and built-in tools. It only falls back to the browser when an API isn't available or doesn't support the required action. See [Tips and Tricks](/tips-tricks) for how to guide this behavior. > [accordion] Can I see what the agent is doing in the browser? > > Yes. A live browser session shows the agent's actions step by step, making the process fully transparent. > [accordion] What types of sites can it handle? > > The Web Agent works with most modern websites, including dynamic and authenticated ones. Performance depends on site complexity and access constraints. > [accordion] Is it safe to use on private or logged-in pages? > > Yes. The Web Agent operates within a secure, isolated execution environment. Credentials are handled securely and are not shared outside your workspace. > [card] [Learn How to Optimize Costs](/tips-tricks) > > Read Tips and Tricks for API-first best practices # What is Twin? Source: https://docs.twin.so/welcome Twin is the platform for **building, running, and distributing fully autonomous AI agents**. Describe an outcome in plain language and Twin will autonomously design an agent that executes the work end-to-end — using APIs when they exist, an embedded browser when they don't, and producing real deliverables rather than just answers. > [card] [Start Building](https://builder.twin.so/) > > Create your free account — no credit card required *** ## What Twin Is — and What It Isn't Twin is **not a chatbot**. It doesn't just answer questions — it does the work. Twin is **not a workflow builder** that requires you to predefine every step with nodes and connectors. It takes a goal, figures out the steps, integrates with your tools, executes them reliably, and keeps running over time. People don't come to Twin to automate a single task once. **They build systems that run repeatedly and improve over time.** *** ## Why Twin? > [accordion] Build AI agents — no code required > > Twin lets non-technical users turn simple prompts into production-ready AI agents you can deploy, use internally, or sell to clients. > > Most automation tools fail for the same reason: they push complexity onto the user. You have to host something, configure permissions, manage keys, think about security, keep the workflow from breaking, and then be the on-call engineer when an API changes. **Twin removes all of that.** > [accordion] The AI-native alternative to traditional automation tools > > Twin delivers the power of traditional automation platforms to non-technical professionals — without the complexity of building and maintaining workflows. > > Traditional tools require you to wire up triggers, map fields, handle errors, and babysit integrations. Twin takes a goal, figures out the steps, and runs them. When something breaks, it adapts. When APIs change, it adjusts. You describe the outcome — Twin handles the rest. > [accordion] The setup-free, safe, and scalable alternative to trendy local AI assistants > > Twin is simple enough for non-technical builders to get their first autonomous system running in minutes, yet powerful enough to scale into full end-to-end operations without breaking. > > It runs in the cloud with isolated execution environments and managed security — you don't think about servers, ports, or credentials hygiene. Just like people use hosted AI over local models, Twin agents run remotely, safely, and continuously — even when your computer is closed. There is **no setup and nothing to deploy**. You don't spin up a VPS, you don't run a local machine, and you don't manage keys by hand. > [accordion] Run your entire business with AI agents > > From marketing operations to lead generation and client services, Twin helps SMBs and agencies automate repetitive work and scale output with intelligent agents. > > Agent builders are the new SaaS builders. The economy will increasingly be powered by autonomous agents rather than traditional software. **Twin is the platform where these new systems emerge and are shared.** *** ## Key Features > [card] Autonomous AI Agents > > Once built, agents run autonomously — triggered by schedules or real-world events — and coordinate across tools and browsers without human supervision. > [card] No-Code > > Describe what you want to achieve. Twin translates it into executable workflows thanks to a brainstorm mode. No code required, ever. > [card] No API Required > > Agents interact with websites like real users (clicking, typing, navigating), enabling automation even on tools without APIs or without specific API scopes. > [card] Self-Healing & Cheaper Over Time > > Twin is built for long-term reliability. When integrations throw errors, the agent diagnoses and adapts. When workflows hit edge cases, it learns from them. *** ## What Can You Automate? Twin can work with **any app** — from the tools your team already uses to systems that traditional automation can't reach. Common use cases include: > [card] Lead Generation > > Research, enrich, and qualify leads from any source > [card] Customer Support > > Automate ticket triage, responses, and escalation > [card] Finance & Invoicing > > Collect invoices, reconcile data, and generate reports > [card] Reporting & Analytics > > Pull data from multiple sources into dashboards and summaries > [card] Logistics & Operations > > Track shipments, update systems, and coordinate workflows > [card] Competitive Intelligence > > Monitor competitor websites, pricing, and job postings And the dozens of repetitive workflows that keep a company alive — if you can describe it, Twin can automate it. *** ## How Twin Connects to Your Tools Twin goes beyond pre-built integrations. It connects to your tools in three ways: **1. Native App Connections — 2,700+ Apps** Twin connects to common business tools (spreadsheets, CRMs, databases, messaging) to read data, store results, and trigger downstream actions. **2. Webhooks & APIs — Your Custom Systems** Agents are code-native, so they integrate seamlessly with any external API. You can also trigger agents from your backend via the [REST API](/rest-api). **3. Websites Without APIs — Twin's Core Strength** If a tool doesn't have an API or the right scopes, Twin logs in, navigates the UI, extracts data, and completes actions — just like a human would. See [Web Agent](/web-agent) for details. *** ## Who Is Twin For? > [accordion] Non-technical users > > Get real automation without writing a single line of code. Build [Interfaces](/interfaces) to create full apps for your agents. > [accordion] Operators & Ops Teams > > Replace manual workflows with autonomous agents that run 24/7 on schedule. > [accordion] Developers > > Use the [REST API](/rest-api) to integrate Twin agents into your own products and backends. > [accordion] Agencies & Freelancers > > Build agents for your clients, distribute them, and manage multiple accounts. > [accordion] Enterprises > > Deploy agents at scale with dedicated support, volume pricing, and SLAs. *** ## Start Building in Minutes **1. Create your account** Sign up and get **1,000 free credits** immediately. No credit card required. > [card] [Sign Up Free](https://builder.twin.so/) > > Get started in seconds **2. Describe your automation** Open the chat and tell Twin what you want to automate: > [card] Invoice Collection > > "Log into vendor portals and download invoices" > [card] Competitor Monitoring > > "Monitor competitor career pages and track new roles" > [card] Portfolio Tracking > > "Collect portfolio companies from VC websites and compare changes" Twin will brainstorm with you, ask follow-up questions, and translate your instructions into an autonomous agent. **3. Test, refine, deploy** Run the agent, review its behavior, and refine in the chat if needed. Once ready, deploy it to run **on demand**, **on a schedule**, or **via API**. *** > [card] [Start Building Now](https://builder.twin.so/) > > Jump into the Twin App and create your first automation > [card] [Read the Quickstart](/quickstart) > > Build your first Twin agent step by step # Workspaces Source: https://docs.twin.so/workspaces Organize agents that collaborate and share context Organise agents into workspaces where they collaborate and share context, so you can tackle complex workflows while keeping each agent focused and reliable. ## What Is a Workspace? A workspace is where your agents live. Every agent in Twin exists inside a workspace — you can't create an agent outside of one. A workspace can contain a **single agent** or **as many as you need**. When you have multiple agents, they all share the same context — making it easy to build multi-agent workflows where each agent handles a specific part of the job. > [card] Unlimited Agents > > Create as many agents as you need inside a workspace > [card] Shared Context > > Agents in the same workspace can collaborate and share knowledge > [card] Focused & Reliable > > Keep each agent focused on a single task for better results ## The Orchestrator To create, delete, or modify agents inside a workspace, use the **Orchestrator** — the chat on the left side of the screen. ![The Orchestrator (left) managing a workspace while an agent builds on the right](https://mintcdn.com/twinlabs/32bkTaA33ltG-5t7/images/orchestrator-example.png?fit=max\&auto=format\&n=32bkTaA33ltG-5t7\&q=85\&s=bbe69947a7c4cf83c2ea12397c17007f) The Orchestrator has full context on everything in your workspace. You can talk to it to: > [card] Create new agents > > Describe what you need and the Orchestrator will build a new agent for you > [card] Modify existing agents > > Ask to update goals, change behavior, or add new steps to any agent > [card] Delete agents > > Remove agents you no longer need > [card] Coordinate workflows > > The Orchestrator knows about all your agents, so it can help you design multi-agent workflows The Orchestrator is also **proactive** — if it thinks your workflow would benefit from splitting into multiple agents or creating a new one, it will suggest it on its own. > [!TIP] > > Think of the Orchestrator as the manager of your workspace — it sees everything, can act on any agent, and will propose changes when it spots opportunities to improve your setup. ## Multiple Workspaces > [card] Separate projects > > Keep client work, internal tools, and experiments isolated from each other. > [card] Team boundaries > > Give different teams access to only the agents they need. > [!NOTE] > > Workspaces are currently **independent** — agents in one workspace can't directly connect to or communicate with agents in another workspace. > [!WARNING] > > **Connected accounts are workspace-scoped.** Each workspace can only connect to one account per service (e.g., one X/Twitter account, one Gmail account). If you need to manage multiple accounts for the same service, create a separate workspace for each. > > Multi-account management — including managing accounts on behalf of your clients — is coming soon. However, Twin maintains a **User Memory** that carries context across workspaces. When you create a new workspace, Twin already knows your preferences, tools, and patterns from previous workspaces — so you don't start from scratch every time. ## Get Started > [card] [Open Your Workspace](https://builder.twin.so/) > > Sign in to Twin and start building