[{"data":1,"prerenderedAt":572},["ShallowReactive",2],{"docs.navigation":3,"docs.content.lead-capture":317,"docs.section.bots":555,"docs.prevnext.lead-capture":569},[4,46,100,137,171,232,239,258,275,292],{"id":5,"title":6,"position":7,"children":8},32,"Introduction",0,[9,13,17,22,27,32,36,41],{"id":10,"title":6,"slug":11,"position":7,"directory":12},34,"getting-started","introduction",{"id":14,"title":15,"slug":16,"position":7,"directory":12},35,"Quickstart guide","quickstart-guide",{"id":18,"title":19,"slug":20,"position":21,"directory":12},37,"What is a bot?","what-is-a-bot",3,{"id":23,"title":24,"slug":25,"position":26,"directory":12},39,"What is a data source?","what-is-a-data-source",4,{"id":28,"title":29,"slug":30,"position":31,"directory":12},38,"What is a channel?","what-is-a-channel",6,{"id":33,"title":34,"slug":35,"position":31,"directory":12},40,"What is a power-up?","what-is-a-power-up",{"id":37,"title":38,"slug":39,"position":40,"directory":12},33,"FAQ","faq",7,{"id":42,"title":43,"slug":44,"position":45,"directory":12},36,"Troubleshooting","troubleshooting",8,{"id":7,"title":47,"position":48,"children":49},"Bots",1,[50,54,58,62,66,70,74,77,81,84,87,92,96],{"id":21,"title":51,"slug":52,"position":7,"directory":53},"Bot advanced settings","bot-advanced-settings","bots",{"id":55,"title":56,"slug":57,"position":48,"directory":53},10,"Prompt engineering tips","prompt-engineering-tips",{"id":59,"title":60,"slug":61,"position":59,"directory":53},2,"Available models","available-models",{"id":63,"title":64,"slug":65,"position":21,"directory":53},13,"Widget customisation","widget-customisation",{"id":67,"title":68,"slug":69,"position":26,"directory":53},12,"Webhooks","webhooks",{"id":71,"title":72,"slug":73,"position":71,"directory":53},5,"Custom domains","custom-domains",{"id":26,"title":75,"slug":76,"position":31,"directory":53},"Bot testing","bot-testing",{"id":78,"title":79,"slug":80,"position":31,"directory":53},11,"SDK","sdk",{"id":40,"title":82,"slug":83,"position":40,"directory":53},"Human takeover","human-takeover",{"id":31,"title":85,"slug":86,"position":55,"directory":53},"Duplicating bots","duplicating-bots",{"id":88,"title":89,"slug":90,"position":91,"directory":53},9,"My Chats","my-chats",15,{"id":48,"title":93,"slug":94,"position":95,"directory":53},"Analytics","analytics",16,{"id":45,"title":97,"slug":98,"position":99,"directory":53},"Lead capture","lead-capture",20,{"id":101,"title":102,"position":59,"children":103},23,"Data sources",[104,109,113,117,121,125,129,133],{"id":105,"title":106,"slug":107,"position":7,"directory":108},25,"File","file-data-source","data-sources",{"id":110,"title":111,"slug":112,"position":7,"directory":108},28,"Notion","notion-data-source",{"id":114,"title":115,"slug":116,"position":59,"directory":108},30,"Website","website-data-source",{"id":118,"title":119,"slug":120,"position":21,"directory":108},31,"YouTube","youtube-data-source",{"id":122,"title":123,"slug":124,"position":26,"directory":108},29,"RSS","rss-data-source",{"id":126,"title":127,"slug":128,"position":71,"directory":108},27,"Manual","manual-data-source",{"id":130,"title":131,"slug":132,"position":88,"directory":108},24,"Data source best practices","data-source-best-practices",{"id":134,"title":135,"slug":136,"position":55,"directory":108},26,"Keeping your bot up to date","keeping-your-bot-up-to-date",{"id":138,"title":139,"position":26,"children":140},14,"Channels",[141,146,150,154,157,160,164,167],{"id":142,"title":143,"slug":144,"position":7,"directory":145},21,"Web","web-channel","channels",{"id":147,"title":148,"slug":149,"position":48,"directory":145},18,"Slack","slack-bot-channel",{"id":151,"title":152,"slug":153,"position":48,"directory":145},19,"Slack (V1 Deprecated)","slack-channel",{"id":95,"title":155,"slug":156,"position":59,"directory":145},"Discord","discord-channel",{"id":99,"title":158,"slug":159,"position":21,"directory":145},"Telegram","telegram-channel",{"id":161,"title":162,"slug":163,"position":26,"directory":145},22,"WhatsApp","whatsapp-channel",{"id":91,"title":165,"slug":166,"position":71,"directory":145},"API","api-channel",{"id":168,"title":169,"slug":170,"position":45,"directory":145},17,"Email","email-channel",{"id":172,"title":173,"position":26,"children":174},47,"Power-ups",[175,180,184,188,192,196,200,204,208,212,216,220,224,228],{"id":176,"title":177,"slug":178,"position":7,"directory":179},49,"Browse Webpage Power-up","browse-webpage-power-up","power-ups",{"id":181,"title":182,"slug":183,"position":7,"directory":179},53,"Google Search Power-up","google-search-power-up",{"id":185,"title":186,"slug":187,"position":7,"directory":179},55,"Power-up basics","power-up-basics",{"id":189,"title":190,"slug":191,"position":7,"directory":179},60,"Use API Power-up","use-api-power-up",{"id":193,"title":194,"slug":195,"position":48,"directory":179},61,"Zapier Power-up","zapier-power-up",{"id":197,"title":198,"slug":199,"position":59,"directory":179},54,"Notion Power-ups","notion-power-ups",{"id":201,"title":202,"slug":203,"position":21,"directory":179},59,"Talk to a Human Power-up","talk-to-a-human",{"id":205,"title":206,"slug":207,"position":26,"directory":179},52,"Email Power-ups","email-power-up",{"id":209,"title":210,"slug":211,"position":71,"directory":179},57,"Send an email","send-email-power-up",{"id":213,"title":214,"slug":215,"position":55,"directory":179},58,"Slack Power-ups","slack-power-ups",{"id":217,"title":218,"slug":219,"position":78,"directory":179},50,"Discord Power-ups","discord-power-ups",{"id":221,"title":222,"slug":223,"position":67,"directory":179},48,"Bot-to-bot power-up","bot-to-bot-power-up",{"id":225,"title":226,"slug":227,"position":63,"directory":179},51,"Display power-ups","display-power-ups",{"id":229,"title":230,"slug":231,"position":138,"directory":179},56,"Power-up display modes","power-up-display-modes",{"id":233,"title":234,"position":71,"children":235},62,"Tasks",[236],{"id":237,"title":234,"slug":238,"position":7,"directory":238},63,"tasks",{"id":240,"title":241,"position":31,"children":242},64,"Teams",[243,246,250,254],{"id":244,"title":241,"slug":245,"position":7,"directory":245},65,"teams",{"id":247,"title":248,"slug":249,"position":48,"directory":245},66,"Inviting team members","teams-inviting",{"id":251,"title":252,"slug":253,"position":59,"directory":245},67,"Managing team members","teams-member-roles",{"id":255,"title":256,"slug":257,"position":21,"directory":245},68,"Transferring bots","teams-transferring-bots",{"id":259,"title":260,"position":31,"children":261},73,"Use cases",[262,267,271],{"id":263,"title":264,"slug":265,"position":7,"directory":266},76,"Build a support bot for your website","support-bot","use-cases",{"id":268,"title":269,"slug":270,"position":48,"directory":266},74,"Build an internal knowledge bot for your team","internal-knowledge-bot",{"id":272,"title":273,"slug":274,"position":59,"directory":266},75,"Build a lead capture bot for your website","lead-capture-bot",{"id":276,"title":277,"position":40,"children":278},69,"Usage and billing",[279,284,288],{"id":280,"title":281,"slug":282,"position":7,"directory":283},70,"How does billing work?","how-does-billing-work","usage-and-billing",{"id":285,"title":286,"slug":287,"position":7,"directory":283},72,"What are storage tokens?","what-are-storage-tokens",{"id":289,"title":290,"slug":291,"position":21,"directory":283},71,"What are message tokens?","what-are-message-tokens",{"id":293,"title":294,"position":45,"children":295},41,"Plans",[296,301,305,309,313],{"id":297,"title":298,"slug":299,"position":7,"directory":300},44,"Free","free-plan","plans",{"id":302,"title":303,"slug":304,"position":48,"directory":300},42,"Basic","basic-plan",{"id":306,"title":307,"slug":308,"position":59,"directory":300},46,"Standard","standard-plan",{"id":310,"title":311,"slug":312,"position":21,"directory":300},45,"Pro","pro-plan",{"id":314,"title":315,"slug":316,"position":26,"directory":300},43,"Enterprise","enterprise-plan",{"id":318,"title":97,"body":319,"description":546,"extension":547,"longTitle":548,"meta":549,"navigation":550,"path":551,"position":99,"seo":552,"stem":553,"__hash__":554},"docs\u002Fdocs\u002Fbots\u002Flead-capture.md",{"type":320,"value":321,"toc":537},"minimark",[322,334,339,349,356,363,367,377,384,390,394,397,454,458,461,486,490,493,499,503,506,518,531],[323,324,325],"callout",{},[326,327,328,329,333],"p",{},"Lead capture lets you ask visitors for their details - name, email, anything else you need - before they send their first message. It's a ",[330,331,332],"strong",{},"web channel"," feature: you configure the fields, visitors fill them in, and the data is made available to your systems via webhooks. All fields are fully configurable, so you can tailor the form to whatever information your team needs to follow up.",[335,336,338],"h2",{"id":337},"enabling-lead-capture","Enabling lead capture",[326,340,341,342,344,345,348],{},"To turn lead capture on, head to the ",[330,343,139],{}," tab on your bot's dashboard and click the settings icon on the web channel card. Scroll to the lead capture section and toggle on ",[330,346,347],{},"Require a pre-chat form",".",[326,350,351,352,355],{},"You can also set ",[330,353,354],{},"Intro copy"," - a short message shown above the form to welcome visitors and explain why you're asking for their details. If you leave it blank, a sensible default is used.",[326,357,358],{},[359,360],"img",{"alt":361,"src":362},"Pre-chat form toggle and intro copy in web channel settings","https:\u002F\u002Fres.cloudinary.com\u002Fdjyjvrw5u\u002Fimage\u002Fupload\u002Fv1777051081\u002Fdocs\u002Fprechat-form-toggle.png",[335,364,366],{"id":365},"adding-fields","Adding fields",[326,368,369,370,373,374,376],{},"With lead capture enabled, you'll see the form builder. By default, the form has two fields: ",[330,371,372],{},"Name"," and ",[330,375,169],{},", both required.",[326,378,379,380,383],{},"Click ",[330,381,382],{},"Add field"," to add a new field, and drag the handle on the left of any field to reorder them. Click a field to expand its editor, where you can change its type, label, and other options.",[326,385,386],{},[359,387],{"alt":388,"src":389},"Pre-chat form builder with the Name field expanded","https:\u002F\u002Fres.cloudinary.com\u002Fdjyjvrw5u\u002Fimage\u002Fupload\u002Fv1777051092\u002Fdocs\u002Fprechat-form-builder.png",[335,391,393],{"id":392},"field-types","Field types",[326,395,396],{},"Each field has a type that controls how it's rendered to visitors and what they can enter:",[398,399,400,407,412,418,424,442,448],"ul",{},[401,402,403,406],"li",{},[330,404,405],{},"Text"," - short free-text input. Use it for things like company name or role.",[401,408,409,411],{},[330,410,169],{}," - email input with built-in validation. Use it to collect a visitor's email address.",[401,413,414,417],{},[330,415,416],{},"Phone"," - phone number input. No format is enforced, so visitors can enter numbers in whatever style they're used to.",[401,419,420,423],{},[330,421,422],{},"Long text"," - multi-line textarea. Use it for open-ended prompts like \"What are you trying to do?\".",[401,425,426,429,430,433,434,437,438,441],{},[330,427,428],{},"Select"," - dropdown with custom options. When you pick this type, an ",[330,431,432],{},"Options"," grid appears where you can set each option's ",[330,435,436],{},"Value"," (required) and an optional ",[330,439,440],{},"Label"," shown to visitors.",[401,443,444,447],{},[330,445,446],{},"Checkbox"," - a single toggle. Use it for opt-ins or consent questions like \"I agree to be contacted\".",[401,449,450,453],{},[330,451,452],{},"Date"," - a date picker. Use it when you need a specific day, like a preferred callback date.",[335,455,457],{"id":456},"per-field-options","Per-field options",[326,459,460],{},"Every field supports these options in its editor:",[398,462,463,468,474,480],{},[401,464,465,467],{},[330,466,440],{}," - the question or prompt shown above the field. This is also used to derive the field's slug (see below).",[401,469,470,473],{},[330,471,472],{},"Placeholder"," - greyed-out example text shown inside the field before the visitor types.",[401,475,476,479],{},[330,477,478],{},"Help text"," - an optional hint shown under the field for extra context.",[401,481,482,485],{},[330,483,484],{},"Required"," - when on, visitors must complete the field before they can start chatting.",[335,487,489],{"id":488},"previewing-the-form","Previewing the form",[326,491,492],{},"When a visitor opens your bot, they'll see your intro copy followed by the form. They fill it in, submit it, and then the normal chat interface appears - ready for their first message.",[326,494,495],{},[359,496],{"alt":497,"src":498},"Visitor-facing pre-chat form rendered on a bot page","https:\u002F\u002Fres.cloudinary.com\u002Fdjyjvrw5u\u002Fimage\u002Fupload\u002Fv1777051094\u002Fdocs\u002Fprechat-form-visitor.png",[335,500,502],{"id":501},"using-captured-data","Using captured data",[326,504,505],{},"Once a visitor submits the form, their answers are attached to the conversation and sent to your systems via webhooks.",[326,507,508,509,512,513,517],{},"Each answer is keyed by the field's ",[330,510,511],{},"slug"," - a machine-readable ID automatically derived from the field's label (for example, \"Company name\" becomes ",[514,515,516],"code",{},"company_name","). If you change a field's label later, the slug updates to match, so pick labels you're happy to key your data on.",[326,519,520,521,526,527,530],{},"To send the captured data to your systems, set up a ",[522,523,525],"a",{"href":524},"\u002Fdocs\u002Fwebhooks","webhook"," and read the ",[514,528,529],{},"userData"," object from the payload - it contains a key-value pair for every field the visitor filled in.",[326,532,533],{},[359,534],{"alt":535,"src":536},"Webhook payload example with a userData object","https:\u002F\u002Fres.cloudinary.com\u002Fdjyjvrw5u\u002Fimage\u002Fupload\u002Fv1777051095\u002Fdocs\u002Fprechat-form-webhook-payload.png",{"title":538,"searchDepth":59,"depth":59,"links":539},"",[540,541,542,543,544,545],{"id":337,"depth":59,"text":338},{"id":365,"depth":59,"text":366},{"id":392,"depth":59,"text":393},{"id":456,"depth":59,"text":457},{"id":488,"depth":59,"text":489},{"id":501,"depth":59,"text":502},"Capture visitor details with a pre-chat form before a conversation starts, and pass the data to your systems via webhooks.","md",null,{},true,"\u002Fdocs\u002Fbots\u002Flead-capture",{"title":97,"description":546},"docs\u002Fbots\u002Flead-capture","1Tfsc2dO6jN3X53cY0cyzeJ4Yl6besfUFgx1OQj7c5o",{"id":556,"title":47,"body":557,"description":538,"extension":547,"longTitle":548,"meta":564,"navigation":550,"path":565,"position":48,"seo":566,"stem":567,"__hash__":568},"docs\u002Fdocs\u002Fbots\u002F_index.md",{"type":320,"value":558,"toc":562},[559],[560,561,47],"h1",{"id":53},{"title":538,"searchDepth":59,"depth":59,"links":563},[],{},"\u002Fdocs\u002Fbots\u002F_index",{"title":47,"description":538},"docs\u002Fbots\u002F_index","LInSds9dB2V3BPa4s2Zj6NtChX_0uTxLY942NyFy688",{"prev":570,"next":571},{"title":93,"slug":94,"position":95,"directory":53},{"title":106,"slug":107,"position":7,"directory":108},1780676214585]