[{"data":1,"prerenderedAt":507},["ShallowReactive",2],{"navigation":3,"/workflows/creating-a-workflow":261,"/workflows/creating-a-workflow-surround":502},[4,22,50,83,125,161,194,205,231],{"title":5,"path":6,"stem":7,"children":8,"icon":16},"Getting Started","/getting-started","1.getting-started/1.index",[9,12,17],{"title":10,"path":6,"stem":7,"icon":11},"Introduction","i-ph-house",{"title":13,"path":14,"stem":15,"icon":16},"Quickstart","/getting-started/quickstart","1.getting-started/2.quickstart","i-ph-rocket",{"title":18,"path":19,"stem":20,"icon":21},"Plans","/getting-started/plans","1.getting-started/3.plans","i-ph-credit-card",{"title":23,"path":24,"stem":25,"children":26,"icon":29},"Agents","/agents","2.agents/1.index",[27,30,35,40,45],{"title":28,"path":24,"stem":25,"icon":29},"Overview","i-ph-robot",{"title":31,"path":32,"stem":33,"icon":34},"Creating an agent","/agents/creating-an-agent","2.agents/2.creating-an-agent","i-ph-plus",{"title":36,"path":37,"stem":38,"icon":39},"Agent settings","/agents/settings","2.agents/3.settings","i-ph-gear",{"title":41,"path":42,"stem":43,"icon":44},"Memory","/agents/memory","2.agents/4.memory","i-ph-database",{"title":46,"path":47,"stem":48,"icon":49},"Residential proxy","/agents/proxy","2.agents/5.proxy","i-ph-globe-hemisphere-west",{"title":51,"path":52,"stem":53,"children":54,"icon":57},"Chats & Tasks","/chats-and-tasks","3.chats-and-tasks/1.index",[55,58,63,68,73,78],{"title":56,"path":52,"stem":53,"icon":57},"Chats","i-ph-chats-circle",{"title":59,"path":60,"stem":61,"icon":62},"Sharing chats","/chats-and-tasks/sharing-chats","3.chats-and-tasks/2.sharing-chats","i-ph-share-network",{"title":64,"path":65,"stem":66,"icon":67},"Tasks","/chats-and-tasks/tasks","3.chats-and-tasks/3.tasks","i-ph-list-checks",{"title":69,"path":70,"stem":71,"icon":72},"Recurring tasks","/chats-and-tasks/recurring-tasks","3.chats-and-tasks/4.recurring-tasks","i-ph-repeat",{"title":74,"path":75,"stem":76,"icon":77},"Results & deliverables","/chats-and-tasks/results-and-deliverables","3.chats-and-tasks/5.results-and-deliverables","i-ph-package",{"title":79,"path":80,"stem":81,"icon":82},"Save a chat as a skill","/chats-and-tasks/save-chat-as-skill","3.chats-and-tasks/6.save-chat-as-skill","i-ph-sparkle",{"title":84,"path":85,"stem":86,"children":87,"icon":90},"Models & Skills","/models-and-skills","4.models-and-skills/1.index",[88,91,96,101,105,110,115,120],{"title":89,"path":85,"stem":86,"icon":90},"LLM configuration","i-ph-cpu",{"title":92,"path":93,"stem":94,"icon":95},"Providers & models","/models-and-skills/providers","4.models-and-skills/2.providers","i-ph-stack",{"title":97,"path":98,"stem":99,"icon":100},"Bring your own key","/models-and-skills/byok","4.models-and-skills/3.byok","i-ph-key",{"title":102,"path":103,"stem":104,"icon":29},"ChatGPT subscription","/models-and-skills/chatgpt-subscription","4.models-and-skills/4.chatgpt-subscription",{"title":106,"path":107,"stem":108,"icon":109},"Skills","/models-and-skills/skills","4.models-and-skills/5.skills","i-ph-puzzle-piece",{"title":111,"path":112,"stem":113,"icon":114},"Installing skills","/models-and-skills/installing-skills","4.models-and-skills/6.installing-skills","i-ph-download-simple",{"title":116,"path":117,"stem":118,"icon":119},"Custom skills","/models-and-skills/custom-skills","4.models-and-skills/7.custom-skills","i-ph-code",{"title":121,"path":122,"stem":123,"icon":124},"Local models","/models-and-skills/local-models","4.models-and-skills/8.local-models","i-ph-desktop-tower",{"title":126,"path":127,"stem":128,"children":129,"icon":131},"Connect Your Tools","/connect-your-tools","5.connect-your-tools/1.index",[130,132,137,142,147,152,156],{"title":28,"path":127,"stem":128,"icon":131},"i-ph-plug",{"title":133,"path":134,"stem":135,"icon":136},"Telegram","/connect-your-tools/telegram","5.connect-your-tools/2.telegram","i-ph-telegram-logo",{"title":138,"path":139,"stem":140,"icon":141},"Discord","/connect-your-tools/discord","5.connect-your-tools/3.discord","i-ph-discord-logo",{"title":143,"path":144,"stem":145,"icon":146},"Slack","/connect-your-tools/slack","5.connect-your-tools/4.slack","i-ph-slack-logo",{"title":148,"path":149,"stem":150,"icon":151},"Connectors","/connect-your-tools/connectors","5.connect-your-tools/5.connectors","i-ph-link",{"title":153,"path":154,"stem":155,"icon":100},"Secrets","/connect-your-tools/secrets","5.connect-your-tools/6.secrets",{"title":157,"path":158,"stem":159,"icon":160},"Audit log","/connect-your-tools/secret-audit-log","5.connect-your-tools/7.secret-audit-log","i-ph-scroll",{"title":162,"path":163,"stem":164,"children":165,"icon":193},"Account & Team","/account-and-team","6.account-and-team/1.index",[166,169,174,179,184,188],{"title":167,"path":163,"stem":164,"icon":168},"Signing in","i-ph-sign-in",{"title":170,"path":171,"stem":172,"icon":173},"Team members","/account-and-team/teams","6.account-and-team/3.teams","i-ph-users",{"title":175,"path":176,"stem":177,"icon":178},"Roles & permissions","/account-and-team/roles-and-permissions","6.account-and-team/4.roles-and-permissions","i-ph-shield",{"title":180,"path":181,"stem":182,"icon":183},"Invitations","/account-and-team/invitations","6.account-and-team/5.invitations","i-ph-envelope-simple",{"title":185,"path":186,"stem":187,"icon":21},"Billing & upgrades","/account-and-team/billing","6.account-and-team/6.billing",{"title":189,"path":190,"stem":191,"icon":192},"Support","/account-and-team/support","6.account-and-team/7.support","i-ph-lifebuoy","i-ph-user",{"title":195,"path":196,"stem":197,"children":198,"icon":200},"Apps","/apps","7.apps/1.index",[199,201],{"title":195,"path":196,"stem":197,"icon":200},"i-ph-squares-four",{"title":202,"path":203,"stem":204,"icon":119},"Building an app","/apps/building-an-app","7.apps/2.building-an-app",{"title":206,"path":207,"stem":208,"children":209,"icon":211},"Workflows","/workflows","8.workflows/1.index",[210,212,216,221,226],{"title":28,"path":207,"stem":208,"icon":211},"i-ph-flow-arrow",{"title":213,"path":214,"stem":215,"icon":82},"Create a workflow","/workflows/creating-a-workflow","8.workflows/2.creating-a-workflow",{"title":217,"path":218,"stem":219,"icon":220},"Edit sections","/workflows/editing-sections","8.workflows/3.editing-sections","i-ph-pencil-simple",{"title":222,"path":223,"stem":224,"icon":225},"Run and schedule","/workflows/running-and-scheduling","8.workflows/4.running-and-scheduling","i-ph-clock",{"title":227,"path":228,"stem":229,"icon":230},"Workflow directory","/workflows/directory","8.workflows/5.directory","i-ph-compass",{"title":232,"path":233,"stem":234,"children":235,"icon":119},"Agent API","/agent-api","9.agent-api/1.index",[236,237,241,246,251,256],{"title":28,"path":233,"stem":234,"icon":119},{"title":13,"path":238,"stem":239,"icon":240},"/agent-api/quickstart","9.agent-api/2.quickstart","i-ph-rocket-launch",{"title":242,"path":243,"stem":244,"icon":245},"Authentication","/agent-api/authentication","9.agent-api/3.authentication","i-ph-lock-key",{"title":247,"path":248,"stem":249,"icon":250},"Endpoints","/agent-api/endpoints","9.agent-api/4.endpoints","i-ph-list-bullets",{"title":252,"path":253,"stem":254,"icon":255},"Streaming","/agent-api/streaming","9.agent-api/5.streaming","i-ph-broadcast",{"title":257,"path":258,"stem":259,"icon":260},"Errors","/agent-api/errors","9.agent-api/6.errors","i-ph-warning-circle",{"id":262,"title":213,"body":263,"description":495,"extension":496,"links":497,"meta":498,"navigation":499,"path":214,"seo":500,"stem":215,"__hash__":501},"docs/8.workflows/2.creating-a-workflow.md",{"type":264,"value":265,"toc":484},"minimark",[266,270,274,279,286,351,354,363,369,373,391,395,402,443,446,460,465],[267,268,213],"h1",{"id":269},"create-a-workflow",[271,272,273],"p",{},"You start a workflow by describing the job. BetterClaw writes a draft for you to review, and\nsaves nothing until you keep it.",[275,276,278],"h2",{"id":277},"generate-a-workflow-from-a-description","Generate a workflow from a description",[271,280,281],{},[282,283],"img",{"alt":284,"src":285},"the New workflow screen asking \"What should this workflow do?\"","/screenshots/workflows-new.png",[287,288,289,301,312,319,334,341],"ol",{},[290,291,292,293,296,297,300],"li",{},"Go to ",[294,295,206],"strong",{}," and click ",[294,298,299],{},"New workflow",".",[290,302,303,304,307,308],{},"Under ",[294,305,306],{},"What should this workflow do?",", describe the job the way you'd explain it to a\ncolleague. Say what should happen, when, and where the result goes. For example: ",[309,310,311],"em",{},"\"Every\nMonday at 9am, find invoices more than a week overdue and email each customer a short,\npolite reminder with the amount and a link to pay.\"",[290,313,314,315,318],{},"If your workspace has more than one agent, choose the ",[294,316,317],{},"agent"," that will write and run it.\nYou can switch to a different agent later.",[290,320,321,322,325,326,329,330,333],{},"Click ",[294,323,324],{},"Generate workflow"," (or press ",[294,327,328],{},"⌘↵"," / ",[294,331,332],{},"Ctrl+↵","). It usually takes under a minute.",[290,335,336,337,340],{},"Read the draft under ",[294,338,339],{},"Here's what we'd build",". It lists each section with its contract\nline and its text.",[290,342,321,343,346,347,350],{},[294,344,345],{},"Use this workflow"," to keep it. If the draft isn't right, click ",[294,348,349],{},"Try again",", or\nreword your description and generate again.",[271,352,353],{},"When you keep the draft, the workflow is created and opens in the editor.",[355,356,357],"tip",{},[271,358,359,360,300],{},"To change the draft as a whole, edit your description and generate again. Once you keep the\nworkflow, you can edit any part of it directly. See ",[361,362,217],"a",{"href":218},[364,365,366],"note",{},[271,367,368],{},"Descriptions can be up to 4,000 characters. You need at least one agent available on your plan\nto generate a workflow.",[275,370,372],{"id":371},"start-from-a-popular-workflow","Start from a popular workflow",[271,374,375,376,378,379,382,383,386,387,390],{},"Before you generate anything, ",[294,377,299],{}," may show a list of ",[294,380,381],{},"Popular workflows",".\nThese are ready-made workflows from the ",[361,384,385],{"href":228},"directory",". Pick one, choose the\nagent that should run it, and click ",[294,388,389],{},"Install",". It is added to your workspace as a draft: no\nschedule and no runs yet.",[275,392,394],{"id":393},"what-a-new-workflow-looks-like","What a new workflow looks like",[271,396,397,398,401],{},"A new workflow opens in the editor in ",[294,399,400],{},"Template"," view. The top of the document has:",[403,404,405,411],"ul",{},[290,406,407,410],{},[294,408,409],{},"The title and description."," Click either one to edit it in place.",[290,412,413,416],{},[294,414,415],{},"A row of controls:",[403,417,418,424,430,437],{},[290,419,420,421,423],{},"the ",[294,422,317],{}," that runs it",[290,425,420,426,429],{},[294,427,428],{},"schedule"," (\"Only when you run it\" until you set one)",[290,431,432,433,436],{},"the number of ",[294,434,435],{},"inputs",", if it has any",[290,438,432,439,442],{},[294,440,441],{},"connections",", with a dot when one still needs connecting",[271,444,445],{},"Under that, the sections are listed in order. A note above the sections lists anything that\nmust be fixed before the workflow can run, such as a connector that isn't connected. Click an\nitem in the note to jump to its section.",[271,447,448,449,452,453,456,457,300],{},"Your edits save automatically, and the top bar shows ",[294,450,451],{},"Saving…"," or ",[294,454,455],{},"Saved",". A new workflow\nisn't scheduled and doesn't run until you\n",[361,458,459],{"href":223},"publish it or run it yourself",[461,462,464],"h3",{"id":463},"write-a-first-draft-from-the-description","Write a first draft from the description",[271,466,467,468,471,472,475,476,479,480,483],{},"If a workflow has a description but no section text yet, the editor offers ",[294,469,470],{},"Want a first draft\nfrom what you wrote?"," Click ",[294,473,474],{},"Write a first draft"," to turn the description into sections. The\ndraft opens beside the document, along with any questions worth deciding before the first run.\nClick ",[294,477,478],{},"Use this"," to keep it or ",[294,481,482],{},"Discard"," to drop it.",{"title":485,"searchDepth":486,"depth":487,"links":488},"",1,2,[489,490,491],{"id":277,"depth":487,"text":278},{"id":371,"depth":487,"text":372},{"id":393,"depth":487,"text":394,"children":492},[493],{"id":463,"depth":494,"text":464},3,"Describe a job in plain English, review the generated draft, and keep it.","md",null,{},{"icon":82},{"title":213,"description":495},"44K-mH4mKirq4Qx-8H7OlsotkFvOFKIGcJ7hxxxth5M",[503,505],{"title":28,"path":207,"stem":208,"description":504,"icon":211,"children":-1},"Repeatable multi-step jobs, written in plain English, that your agent runs on a schedule or on demand.",{"title":217,"path":218,"stem":219,"description":506,"icon":220,"children":-1},"Reword sections, redraft their contracts, change reads, writes and connectors, and add or remove sections.",1791467820816]