[{"data":1,"prerenderedAt":2525},["ShallowReactive",2],{"navigation_docs_en":3,"-en-api-guides-knowledge-from-website":705,"-en-api-guides-knowledge-from-website-surround":2520},[4,8,26,52,101,131,181,219,237,247,269,291,562,572,612,661,691],{"title":5,"path":6,"stem":7},"Introduction","\u002Fen\u002Fintroduction","en\u002F01.introduction",{"title":9,"path":10,"stem":11,"children":12},"Getting started","\u002Fen\u002Fgetting-started","en\u002F02.getting-started\u002Findex",[13,14,18,22],{"title":9,"path":10,"stem":11},{"title":15,"path":16,"stem":17},"Initial setup","\u002Fen\u002Fgetting-started\u002Finitial-setup","en\u002F02.getting-started\u002F01.initial-setup",{"title":19,"path":20,"stem":21},"Create your first agent","\u002Fen\u002Fgetting-started\u002Ffirst-agent","en\u002F02.getting-started\u002F02.first-agent",{"title":23,"path":24,"stem":25},"Run a test call","\u002Fen\u002Fgetting-started\u002Ftest-call","en\u002F02.getting-started\u002F03.test-call",{"title":27,"path":28,"stem":29,"children":30},"Concepts","\u002Fen\u002Fconcepts","en\u002F03.concepts\u002Findex",[31,32,36,40,44,48],{"title":27,"path":28,"stem":29},{"title":33,"path":34,"stem":35},"Voice agent","\u002Fen\u002Fconcepts\u002Fagent","en\u002F03.concepts\u002F01.agent",{"title":37,"path":38,"stem":39},"Flow","\u002Fen\u002Fconcepts\u002Fflow","en\u002F03.concepts\u002F02.flow",{"title":41,"path":42,"stem":43},"Runtime","\u002Fen\u002Fconcepts\u002Fruntime","en\u002F03.concepts\u002F03.runtime",{"title":45,"path":46,"stem":47},"Organization and permissions","\u002Fen\u002Fconcepts\u002Forganization","en\u002F03.concepts\u002F04.organization",{"title":49,"path":50,"stem":51},"Prompt Builder","\u002Fen\u002Fconcepts\u002Fprompt-builder","en\u002F03.concepts\u002F05.prompt-builder",{"title":53,"path":54,"stem":55,"children":56},"Guides","\u002Fen\u002Fguides","en\u002F04.guides\u002Findex",[57,58,61,65,69,73,77,81,85,89,93,97],{"title":53,"path":54,"stem":55},{"title":19,"path":59,"stem":60},"\u002Fen\u002Fguides\u002Fcreate-first-agent","en\u002F04.guides\u002F01.create-first-agent",{"title":62,"path":63,"stem":64},"Use the Flow Builder","\u002Fen\u002Fguides\u002Fuse-flow-builder","en\u002F04.guides\u002F02.use-flow-builder",{"title":66,"path":67,"stem":68},"Publish and receive calls","\u002Fen\u002Fguides\u002Fpublish-agent","en\u002F04.guides\u002F03.publish-agent",{"title":70,"path":71,"stem":72},"Test an agent","\u002Fen\u002Fguides\u002Ftest-agent","en\u002F04.guides\u002F04.test-agent",{"title":74,"path":75,"stem":76},"Transfer to a human","\u002Fen\u002Fguides\u002Ftransfer-to-human","en\u002F04.guides\u002F05.transfer-to-human",{"title":78,"path":79,"stem":80},"Book meetings with Cal.com","\u002Fen\u002Fguides\u002Fbook-meetings","en\u002F04.guides\u002F06.book-meetings",{"title":82,"path":83,"stem":84},"Send SMS","\u002Fen\u002Fguides\u002Fsend-sms","en\u002F04.guides\u002F07.send-sms",{"title":86,"path":87,"stem":88},"Configure a phone book","\u002Fen\u002Fguides\u002Fconfigure-phone-book","en\u002F04.guides\u002F08.configure-phone-book",{"title":90,"path":91,"stem":92},"Embed the voice widget","\u002Fen\u002Fguides\u002Fembed-widget","en\u002F04.guides\u002F09.embed-widget",{"title":94,"path":95,"stem":96},"Record calls","\u002Fen\u002Fguides\u002Frecord-calls","en\u002F04.guides\u002F10.record-calls",{"title":98,"path":99,"stem":100},"Redact personal data","\u002Fen\u002Fguides\u002Fredact-personal-data","en\u002F04.guides\u002F11.redact-personal-data",{"title":102,"path":103,"stem":104,"children":105},"Flow Builder","\u002Fen\u002Fflow-builder","en\u002F05.flow-builder\u002Findex",[106,107,111,115,119,123,127],{"title":102,"path":103,"stem":104},{"title":108,"path":109,"stem":110},"Builder interface","\u002Fen\u002Fflow-builder\u002Finterface","en\u002F05.flow-builder\u002F01.interface",{"title":112,"path":113,"stem":114},"Flow structure","\u002Fen\u002Fflow-builder\u002Fstructure","en\u002F05.flow-builder\u002F02.structure",{"title":116,"path":117,"stem":118},"Flow variables","\u002Fen\u002Fflow-builder\u002Fvariables","en\u002F05.flow-builder\u002F03.variables",{"title":120,"path":121,"stem":122},"Conditions and paths","\u002Fen\u002Fflow-builder\u002Fbranches","en\u002F05.flow-builder\u002F04.branches",{"title":124,"path":125,"stem":126},"Test a flow","\u002Fen\u002Fflow-builder\u002Ftesting","en\u002F05.flow-builder\u002F05.testing",{"title":128,"path":129,"stem":130},"Validation and publishing","\u002Fen\u002Fflow-builder\u002Fvalidation-publishing","en\u002F05.flow-builder\u002F06.validation-publishing",{"title":132,"path":133,"stem":134,"children":135},"Nodes","\u002Fen\u002Fnodes","en\u002F06.nodes\u002Findex",[136,137,141,145,149,153,157,161,165,169,173,177],{"title":132,"path":133,"stem":134},{"title":138,"path":139,"stem":140},"Conversation","\u002Fen\u002Fnodes\u002Fconversation","en\u002F06.nodes\u002F01.conversation",{"title":142,"path":143,"stem":144},"Message","\u002Fen\u002Fnodes\u002Fmessage","en\u002F06.nodes\u002F02.message",{"title":146,"path":147,"stem":148},"Split path","\u002Fen\u002Fnodes\u002Fsplit-path","en\u002F06.nodes\u002F03.split-path",{"title":150,"path":151,"stem":152},"Jump to","\u002Fen\u002Fnodes\u002Fjump-to","en\u002F06.nodes\u002F04.jump-to",{"title":154,"path":155,"stem":156},"Trigger subflow","\u002Fen\u002Fnodes\u002Ftrigger-subflow","en\u002F06.nodes\u002F05.trigger-subflow",{"title":158,"path":159,"stem":160},"Custom action","\u002Fen\u002Fnodes\u002Fcustom-action","en\u002F06.nodes\u002F06.custom-action",{"title":162,"path":163,"stem":164},"Send SMS during the call","\u002Fen\u002Fnodes\u002Fsend-sms-during-call","en\u002F06.nodes\u002F07.send-sms-during-call",{"title":166,"path":167,"stem":168},"Transfer","\u002Fen\u002Fnodes\u002Ftransfer","en\u002F06.nodes\u002F08.transfer",{"title":170,"path":171,"stem":172},"Booking","\u002Fen\u002Fnodes\u002Fbooking","en\u002F06.nodes\u002F09.booking",{"title":174,"path":175,"stem":176},"End call","\u002Fen\u002Fnodes\u002Fend-call","en\u002F06.nodes\u002F10.end-call",{"title":178,"path":179,"stem":180},"Nodes coming soon","\u002Fen\u002Fnodes\u002Fcoming-soon","en\u002F06.nodes\u002F11.coming-soon",{"title":182,"path":183,"stem":184,"children":185},"Actions","\u002Fen\u002Factions","en\u002F07.actions\u002Findex",[186,187,191,195,199,203,207,211,215],{"title":182,"path":183,"stem":184},{"title":188,"path":189,"stem":190},"Call transfers","\u002Fen\u002Factions\u002Fcall-transfers","en\u002F07.actions\u002F01.call-transfers",{"title":192,"path":193,"stem":194},"IVR","\u002Fen\u002Factions\u002Fivr","en\u002F07.actions\u002F02.ivr",{"title":196,"path":197,"stem":198},"SMS during the call","\u002Fen\u002Factions\u002Fduring-call-sms","en\u002F07.actions\u002F03.during-call-sms",{"title":200,"path":201,"stem":202},"Post-call SMS","\u002Fen\u002Factions\u002Fpost-call-sms","en\u002F07.actions\u002F04.post-call-sms",{"title":204,"path":205,"stem":206},"Custom actions","\u002Fen\u002Factions\u002Fcustom-actions","en\u002F07.actions\u002F05.custom-actions",{"title":208,"path":209,"stem":210},"Information extractors","\u002Fen\u002Factions\u002Finformation-extractors","en\u002F07.actions\u002F06.information-extractors",{"title":212,"path":213,"stem":214},"Custom evaluations","\u002Fen\u002Factions\u002Fcustom-evaluations","en\u002F07.actions\u002F07.custom-evaluations",{"title":216,"path":217,"stem":218},"Real-time booking","\u002Fen\u002Factions\u002Freal-time-booking","en\u002F07.actions\u002F08.real-time-booking",{"title":220,"path":221,"stem":222,"children":223},"Knowledge base","\u002Fen\u002Fknowledge-base","en\u002F08.knowledge-base\u002Findex",[224,225,229,233],{"title":220,"path":221,"stem":222},{"title":226,"path":227,"stem":228},"Sources","\u002Fen\u002Fknowledge-base\u002Fsources","en\u002F08.knowledge-base\u002F01.sources",{"title":230,"path":231,"stem":232},"Citations","\u002Fen\u002Fknowledge-base\u002Fcitations","en\u002F08.knowledge-base\u002F02.citations",{"title":234,"path":235,"stem":236},"Shared memory","\u002Fen\u002Fknowledge-base\u002Fshared-memory","en\u002F08.knowledge-base\u002F03.shared-memory",{"title":238,"path":239,"stem":240,"children":241},"Test Center","\u002Fen\u002Ftest-center","en\u002F09.test-center\u002Findex",[242,243],{"title":238,"path":239,"stem":240},{"title":244,"path":245,"stem":246},"Evaluations","\u002Fen\u002Ftest-center\u002Fevaluations","en\u002F09.test-center\u002F01.evaluations",{"title":248,"path":249,"stem":250,"children":251},"History and analytics","\u002Fen\u002Fhistory","en\u002F10.history\u002Findex",[252,253,257,261,265],{"title":248,"path":249,"stem":250},{"title":254,"path":255,"stem":256},"Overview","\u002Fen\u002Fhistory\u002Fdashboard","en\u002F10.history\u002F01.dashboard",{"title":258,"path":259,"stem":260},"Calls","\u002Fen\u002Fhistory\u002Fcalls","en\u002F10.history\u002F02.calls",{"title":262,"path":263,"stem":264},"Recordings","\u002Fen\u002Fhistory\u002Frecordings","en\u002F10.history\u002F03.recordings",{"title":266,"path":267,"stem":268},"Analytics","\u002Fen\u002Fhistory\u002Fanalytics","en\u002F10.history\u002F04.analytics",{"title":270,"path":271,"stem":272,"children":273},"WhatsApp","\u002Fen\u002Fwhatsapp","en\u002F11.whatsapp\u002Findex",[274,275,279,283,287],{"title":270,"path":271,"stem":272},{"title":276,"path":277,"stem":278},"Connect the number","\u002Fen\u002Fwhatsapp\u002Fconnect","en\u002F11.whatsapp\u002F01.connect",{"title":280,"path":281,"stem":282},"Templates","\u002Fen\u002Fwhatsapp\u002Ftemplates","en\u002F11.whatsapp\u002F02.templates",{"title":284,"path":285,"stem":286},"Conversations","\u002Fen\u002Fwhatsapp\u002Fconversations","en\u002F11.whatsapp\u002F03.conversations",{"title":288,"path":289,"stem":290},"Voice calls","\u002Fen\u002Fwhatsapp\u002Fcalls","en\u002F11.whatsapp\u002F04.calls",{"title":292,"path":293,"stem":294,"children":295},"API","\u002Fen\u002Fapi","en\u002F12.api\u002Findex",[296,297,301,305,309,313,317,321,536,554,558],{"title":292,"path":293,"stem":294},{"title":298,"path":299,"stem":300},"Getting started with the API","\u002Fen\u002Fapi\u002Fgetting-started","en\u002F12.api\u002F01.getting-started",{"title":302,"path":303,"stem":304},"DISKA API","\u002Fen\u002Fapi\u002Fapi-channel","en\u002F12.api\u002F02.api-channel",{"title":306,"path":307,"stem":308},"Authentication","\u002Fen\u002Fapi\u002Fauthentication","en\u002F12.api\u002F03.authentication",{"title":310,"path":311,"stem":312},"Webhooks","\u002Fen\u002Fapi\u002Fwebhooks","en\u002F12.api\u002F04.webhooks",{"title":314,"path":315,"stem":316},"Endpoints","\u002Fen\u002Fapi\u002Fendpoints","en\u002F12.api\u002F05.endpoints",{"title":318,"path":319,"stem":320},"Realtime","\u002Fen\u002Fapi\u002Frealtime","en\u002F12.api\u002F06.realtime",{"title":322,"path":323,"stem":324,"children":325},"API reference","\u002Fen\u002Fapi\u002Freference","en\u002F12.api\u002F07.reference\u002Findex",[326,327,337,363,380,398,440,466,475,485,511],{"title":322,"path":323,"stem":324},{"title":328,"path":329,"stem":330,"children":331},"Identity","\u002Fen\u002Fapi\u002Freference\u002Fidentity","en\u002F12.api\u002F07.reference\u002F01.identity\u002Findex",[332,333],{"title":328,"path":329,"stem":330},{"title":334,"path":335,"stem":336},"Get the key and organization","\u002Fen\u002Fapi\u002Freference\u002Fidentity\u002Fget-identity","en\u002F12.api\u002F07.reference\u002F01.identity\u002F01.get-identity",{"title":338,"path":339,"stem":340,"children":341},"Agents","\u002Fen\u002Fapi\u002Freference\u002Fagents","en\u002F12.api\u002F07.reference\u002F02.agents\u002Findex",[342,343,347,351,355,359],{"title":338,"path":339,"stem":340},{"title":344,"path":345,"stem":346},"List agents","\u002Fen\u002Fapi\u002Freference\u002Fagents\u002Flist-agents","en\u002F12.api\u002F07.reference\u002F02.agents\u002F01.list-agents",{"title":348,"path":349,"stem":350},"Get an agent","\u002Fen\u002Fapi\u002Freference\u002Fagents\u002Fget-agent","en\u002F12.api\u002F07.reference\u002F02.agents\u002F02.get-agent",{"title":352,"path":353,"stem":354},"Update an agent","\u002Fen\u002Fapi\u002Freference\u002Fagents\u002Fupdate-agent","en\u002F12.api\u002F07.reference\u002F02.agents\u002F03.update-agent",{"title":356,"path":357,"stem":358},"Create an agent","\u002Fen\u002Fapi\u002Freference\u002Fagents\u002Fcreate-agent","en\u002F12.api\u002F07.reference\u002F02.agents\u002F04.create-agent",{"title":360,"path":361,"stem":362},"Publish an agent","\u002Fen\u002Fapi\u002Freference\u002Fagents\u002Fpublish-agent","en\u002F12.api\u002F07.reference\u002F02.agents\u002F05.publish-agent",{"title":258,"path":364,"stem":365,"children":366},"\u002Fen\u002Fapi\u002Freference\u002Fcalls","en\u002F12.api\u002F07.reference\u002F03.calls\u002Findex",[367,368,372,376],{"title":258,"path":364,"stem":365},{"title":369,"path":370,"stem":371},"List calls","\u002Fen\u002Fapi\u002Freference\u002Fcalls\u002Flist-calls","en\u002F12.api\u002F07.reference\u002F03.calls\u002F01.list-calls",{"title":373,"path":374,"stem":375},"Get a call","\u002Fen\u002Fapi\u002Freference\u002Fcalls\u002Fget-call","en\u002F12.api\u002F07.reference\u002F03.calls\u002F02.get-call",{"title":377,"path":378,"stem":379},"Download the recording","\u002Fen\u002Fapi\u002Freference\u002Fcalls\u002Fget-call-recording","en\u002F12.api\u002F07.reference\u002F03.calls\u002F03.get-call-recording",{"title":381,"path":382,"stem":383,"children":384},"Outbound calls","\u002Fen\u002Fapi\u002Freference\u002Foutbound-calls","en\u002F12.api\u002F07.reference\u002F04.outbound-calls\u002Findex",[385,386,390,394],{"title":381,"path":382,"stem":383},{"title":387,"path":388,"stem":389},"Make an outbound call","\u002Fen\u002Fapi\u002Freference\u002Foutbound-calls\u002Fcreate-outbound-call","en\u002F12.api\u002F07.reference\u002F04.outbound-calls\u002F01.create-outbound-call",{"title":391,"path":392,"stem":393},"Get an outbound call","\u002Fen\u002Fapi\u002Freference\u002Foutbound-calls\u002Fget-outbound-call","en\u002F12.api\u002F07.reference\u002F04.outbound-calls\u002F02.get-outbound-call",{"title":395,"path":396,"stem":397},"Hang up an outbound call","\u002Fen\u002Fapi\u002Freference\u002Foutbound-calls\u002Fhang-up-outbound-call","en\u002F12.api\u002F07.reference\u002F04.outbound-calls\u002F03.hang-up-outbound-call",{"title":399,"path":400,"stem":401,"children":402},"Campaigns","\u002Fen\u002Fapi\u002Freference\u002Fcampaigns","en\u002F12.api\u002F07.reference\u002F05.campaigns\u002Findex",[403,404,408,412,416,420,424,428,432,436],{"title":399,"path":400,"stem":401},{"title":405,"path":406,"stem":407},"List campaigns","\u002Fen\u002Fapi\u002Freference\u002Fcampaigns\u002Flist-campaigns","en\u002F12.api\u002F07.reference\u002F05.campaigns\u002F01.list-campaigns",{"title":409,"path":410,"stem":411},"Create a campaign","\u002Fen\u002Fapi\u002Freference\u002Fcampaigns\u002Fcreate-campaign","en\u002F12.api\u002F07.reference\u002F05.campaigns\u002F02.create-campaign",{"title":413,"path":414,"stem":415},"Get a campaign","\u002Fen\u002Fapi\u002Freference\u002Fcampaigns\u002Fget-campaign","en\u002F12.api\u002F07.reference\u002F05.campaigns\u002F03.get-campaign",{"title":417,"path":418,"stem":419},"Add recipients","\u002Fen\u002Fapi\u002Freference\u002Fcampaigns\u002Fadd-campaign-recipients","en\u002F12.api\u002F07.reference\u002F05.campaigns\u002F04.add-campaign-recipients",{"title":421,"path":422,"stem":423},"List recipients","\u002Fen\u002Fapi\u002Freference\u002Fcampaigns\u002Flist-campaign-recipients","en\u002F12.api\u002F07.reference\u002F05.campaigns\u002F05.list-campaign-recipients",{"title":425,"path":426,"stem":427},"Start a campaign","\u002Fen\u002Fapi\u002Freference\u002Fcampaigns\u002Fstart-campaign","en\u002F12.api\u002F07.reference\u002F05.campaigns\u002F06.start-campaign",{"title":429,"path":430,"stem":431},"Pause a campaign","\u002Fen\u002Fapi\u002Freference\u002Fcampaigns\u002Fpause-campaign","en\u002F12.api\u002F07.reference\u002F05.campaigns\u002F07.pause-campaign",{"title":433,"path":434,"stem":435},"Resume a campaign","\u002Fen\u002Fapi\u002Freference\u002Fcampaigns\u002Fresume-campaign","en\u002F12.api\u002F07.reference\u002F05.campaigns\u002F08.resume-campaign",{"title":437,"path":438,"stem":439},"Cancel a campaign","\u002Fen\u002Fapi\u002Freference\u002Fcampaigns\u002Fcancel-campaign","en\u002F12.api\u002F07.reference\u002F05.campaigns\u002F09.cancel-campaign",{"title":441,"path":442,"stem":443,"children":444},"Chat","\u002Fen\u002Fapi\u002Freference\u002Fchats","en\u002F12.api\u002F07.reference\u002F06.chats\u002Findex",[445,446,450,454,458,462],{"title":441,"path":442,"stem":443},{"title":447,"path":448,"stem":449},"Create a chat","\u002Fen\u002Fapi\u002Freference\u002Fchats\u002Fcreate-chat","en\u002F12.api\u002F07.reference\u002F06.chats\u002F01.create-chat",{"title":451,"path":452,"stem":453},"Send a message","\u002Fen\u002Fapi\u002Freference\u002Fchats\u002Fsend-chat-message","en\u002F12.api\u002F07.reference\u002F06.chats\u002F02.send-chat-message",{"title":455,"path":456,"stem":457},"Get a chat","\u002Fen\u002Fapi\u002Freference\u002Fchats\u002Fget-chat","en\u002F12.api\u002F07.reference\u002F06.chats\u002F03.get-chat",{"title":459,"path":460,"stem":461},"List chats","\u002Fen\u002Fapi\u002Freference\u002Fchats\u002Flist-chats","en\u002F12.api\u002F07.reference\u002F06.chats\u002F04.list-chats",{"title":463,"path":464,"stem":465},"End a chat","\u002Fen\u002Fapi\u002Freference\u002Fchats\u002Fend-chat","en\u002F12.api\u002F07.reference\u002F06.chats\u002F05.end-chat",{"title":266,"path":467,"stem":468,"children":469},"\u002Fen\u002Fapi\u002Freference\u002Fanalytics","en\u002F12.api\u002F07.reference\u002F07.analytics\u002Findex",[470,471],{"title":266,"path":467,"stem":468},{"title":472,"path":473,"stem":474},"Analytics overview","\u002Fen\u002Fapi\u002Freference\u002Fanalytics\u002Fget-overview","en\u002F12.api\u002F07.reference\u002F07.analytics\u002F01.get-overview",{"title":476,"path":477,"stem":478,"children":479},"Phone numbers","\u002Fen\u002Fapi\u002Freference\u002Fphone-numbers","en\u002F12.api\u002F07.reference\u002F08.phone-numbers\u002Findex",[480,481],{"title":476,"path":477,"stem":478},{"title":482,"path":483,"stem":484},"List phone numbers","\u002Fen\u002Fapi\u002Freference\u002Fphone-numbers\u002Flist-phone-numbers","en\u002F12.api\u002F07.reference\u002F08.phone-numbers\u002F01.list-phone-numbers",{"title":486,"path":487,"stem":488,"children":489},"Knowledge","\u002Fen\u002Fapi\u002Freference\u002Fknowledge","en\u002F12.api\u002F07.reference\u002F09.knowledge\u002Findex",[490,491,495,499,503,507],{"title":486,"path":487,"stem":488},{"title":492,"path":493,"stem":494},"List knowledge bases","\u002Fen\u002Fapi\u002Freference\u002Fknowledge\u002Flist-knowledge-bases","en\u002F12.api\u002F07.reference\u002F09.knowledge\u002F01.list-knowledge-bases",{"title":496,"path":497,"stem":498},"Create a knowledge base","\u002Fen\u002Fapi\u002Freference\u002Fknowledge\u002Fcreate-knowledge-base","en\u002F12.api\u002F07.reference\u002F09.knowledge\u002F02.create-knowledge-base",{"title":500,"path":501,"stem":502},"Add a text document","\u002Fen\u002Fapi\u002Freference\u002Fknowledge\u002Fadd-text-document","en\u002F12.api\u002F07.reference\u002F09.knowledge\u002F03.add-text-document",{"title":504,"path":505,"stem":506},"Import a web page","\u002Fen\u002Fapi\u002Freference\u002Fknowledge\u002Fimport-url","en\u002F12.api\u002F07.reference\u002F09.knowledge\u002F04.import-url",{"title":508,"path":509,"stem":510},"Upload a PDF","\u002Fen\u002Fapi\u002Freference\u002Fknowledge\u002Fupload-pdf","en\u002F12.api\u002F07.reference\u002F09.knowledge\u002F05.upload-pdf",{"title":310,"path":512,"stem":513,"children":514},"\u002Fen\u002Fapi\u002Freference\u002Fwebhooks","en\u002F12.api\u002F07.reference\u002F10.webhooks\u002Findex",[515,516,520,524,528,532],{"title":310,"path":512,"stem":513},{"title":517,"path":518,"stem":519},"List webhook endpoints","\u002Fen\u002Fapi\u002Freference\u002Fwebhooks\u002Flist-webhook-endpoints","en\u002F12.api\u002F07.reference\u002F10.webhooks\u002F01.list-webhook-endpoints",{"title":521,"path":522,"stem":523},"Create a webhook endpoint","\u002Fen\u002Fapi\u002Freference\u002Fwebhooks\u002Fcreate-webhook-endpoint","en\u002F12.api\u002F07.reference\u002F10.webhooks\u002F02.create-webhook-endpoint",{"title":525,"path":526,"stem":527},"Update a webhook endpoint","\u002Fen\u002Fapi\u002Freference\u002Fwebhooks\u002Fupdate-webhook-endpoint","en\u002F12.api\u002F07.reference\u002F10.webhooks\u002F03.update-webhook-endpoint",{"title":529,"path":530,"stem":531},"Delete a webhook endpoint","\u002Fen\u002Fapi\u002Freference\u002Fwebhooks\u002Fdelete-webhook-endpoint","en\u002F12.api\u002F07.reference\u002F10.webhooks\u002F04.delete-webhook-endpoint",{"title":533,"path":534,"stem":535},"Test a webhook endpoint","\u002Fen\u002Fapi\u002Freference\u002Fwebhooks\u002Ftest-webhook-endpoint","en\u002F12.api\u002F07.reference\u002F10.webhooks\u002F05.test-webhook-endpoint",{"title":537,"path":538,"stem":539,"children":540},"API guides","\u002Fen\u002Fapi\u002Fguides","en\u002F12.api\u002F08.guides\u002Findex",[541,542,546,550],{"title":537,"path":538,"stem":539},{"title":543,"path":544,"stem":545},"Sync calls with your CRM","\u002Fen\u002Fapi\u002Fguides\u002Fsync-calls-crm","en\u002F12.api\u002F08.guides\u002F01.sync-calls-crm",{"title":547,"path":548,"stem":549},"Export the call history","\u002Fen\u002Fapi\u002Fguides\u002Fexport-call-history","en\u002F12.api\u002F08.guides\u002F02.export-call-history",{"title":551,"path":552,"stem":553},"Feed knowledge from your website","\u002Fen\u002Fapi\u002Fguides\u002Fknowledge-from-website","en\u002F12.api\u002F08.guides\u002F03.knowledge-from-website",{"title":555,"path":556,"stem":557},"Versioning and changelog","\u002Fen\u002Fapi\u002Fchangelog","en\u002F12.api\u002F09.changelog",{"title":559,"path":560,"stem":561},"OAuth for partner platforms","\u002Fen\u002Fapi\u002Foauth","en\u002F12.api\u002F10.oauth",{"title":563,"path":564,"stem":565,"children":566},"Integrations","\u002Fen\u002Fintegrations","en\u002F13.integrations\u002Findex",[567,568],{"title":563,"path":564,"stem":565},{"title":569,"path":570,"stem":571},"Cal.com","\u002Fen\u002Fintegrations\u002Fcalcom","en\u002F13.integrations\u002F01.calcom",{"title":573,"path":574,"stem":575,"children":576},"Telephony","\u002Fen\u002Ftelephony","en\u002F14.telephony\u002Findex",[577,578,581,585,589,593,596,600,604,608],{"title":573,"path":574,"stem":575},{"title":476,"path":579,"stem":580},"\u002Fen\u002Ftelephony\u002Fnumbers","en\u002F14.telephony\u002F01.numbers",{"title":582,"path":583,"stem":584},"Connect over SIP","\u002Fen\u002Ftelephony\u002Fsip-trunk","en\u002F14.telephony\u002F02.sip-trunk",{"title":586,"path":587,"stem":588},"Phone calls","\u002Fen\u002Ftelephony\u002Fphone-calls","en\u002F14.telephony\u002F03.phone-calls",{"title":590,"path":591,"stem":592},"Call settings","\u002Fen\u002Ftelephony\u002Fcall-settings","en\u002F14.telephony\u002F04.call-settings",{"title":399,"path":594,"stem":595},"\u002Fen\u002Ftelephony\u002Fcampaigns","en\u002F14.telephony\u002F05.campaigns",{"title":597,"path":598,"stem":599},"Simultaneous calls","\u002Fen\u002Ftelephony\u002Fconcurrency","en\u002F14.telephony\u002F06.concurrency",{"title":601,"path":602,"stem":603},"Transfers","\u002Fen\u002Ftelephony\u002Ftransfers","en\u002F14.telephony\u002F07.transfers",{"title":605,"path":606,"stem":607},"Agent webhooks","\u002Fen\u002Ftelephony\u002Fwebhooks","en\u002F14.telephony\u002F08.webhooks",{"title":609,"path":610,"stem":611},"Errors and end reasons","\u002Fen\u002Ftelephony\u002Ferrors","en\u002F14.telephony\u002F09.errors",{"title":613,"path":614,"stem":615,"children":616},"Settings","\u002Fen\u002Fsettings","en\u002F15.settings\u002Findex",[617,618,622,626,630,634,638,642,646,650,653,657],{"title":613,"path":614,"stem":615},{"title":619,"path":620,"stem":621},"Profile","\u002Fen\u002Fsettings\u002Fpersonal-profile","en\u002F15.settings\u002F01.personal-profile",{"title":623,"path":624,"stem":625},"Credentials","\u002Fen\u002Fsettings\u002Fcredentials","en\u002F15.settings\u002F02.credentials",{"title":627,"path":628,"stem":629},"Password","\u002Fen\u002Fsettings\u002Fpassword","en\u002F15.settings\u002F03.password",{"title":631,"path":632,"stem":633},"Two-factor authentication","\u002Fen\u002Fsettings\u002Ftwo-factor","en\u002F15.settings\u002F04.two-factor",{"title":635,"path":636,"stem":637},"Active sessions","\u002Fen\u002Fsettings\u002Fsessions","en\u002F15.settings\u002F05.sessions",{"title":639,"path":640,"stem":641},"Company","\u002Fen\u002Fsettings\u002Fcompany","en\u002F15.settings\u002F06.company",{"title":643,"path":644,"stem":645},"Organization","\u002Fen\u002Fsettings\u002Forganization","en\u002F15.settings\u002F07.organization",{"title":647,"path":648,"stem":649},"Members","\u002Fen\u002Fsettings\u002Fmembers","en\u002F15.settings\u002F08.members",{"title":563,"path":651,"stem":652},"\u002Fen\u002Fsettings\u002Fintegrations","en\u002F15.settings\u002F09.integrations",{"title":654,"path":655,"stem":656},"API keys","\u002Fen\u002Fsettings\u002Fapi-keys","en\u002F15.settings\u002F10.api-keys",{"title":658,"path":659,"stem":660},"Connected apps and OAuth apps","\u002Fen\u002Fsettings\u002Fconnected-apps","en\u002F15.settings\u002F11.connected-apps",{"title":662,"path":663,"stem":664,"children":665},"Common problems","\u002Fen\u002Ftroubleshooting","en\u002F16.troubleshooting\u002Findex",[666,667,671,675,679,683,687],{"title":662,"path":663,"stem":664},{"title":668,"path":669,"stem":670},"Agent not answering","\u002Fen\u002Ftroubleshooting\u002Fagent-not-answering","en\u002F16.troubleshooting\u002F01.agent-not-answering",{"title":672,"path":673,"stem":674},"Calls drop","\u002Fen\u002Ftroubleshooting\u002Fcalls-drop","en\u002F16.troubleshooting\u002F02.calls-drop",{"title":676,"path":677,"stem":678},"Flow not publishing","\u002Fen\u002Ftroubleshooting\u002Fflow-not-publishing","en\u002F16.troubleshooting\u002F03.flow-not-publishing",{"title":680,"path":681,"stem":682},"Knowledge not answering","\u002Fen\u002Ftroubleshooting\u002Fkb-not-answering","en\u002F16.troubleshooting\u002F04.kb-not-answering",{"title":684,"path":685,"stem":686},"Integration not connecting","\u002Fen\u002Ftroubleshooting\u002Fintegration-not-connecting","en\u002F16.troubleshooting\u002F05.integration-not-connecting",{"title":688,"path":689,"stem":690},"Tests failing","\u002Fen\u002Ftroubleshooting\u002Ftests-failing","en\u002F16.troubleshooting\u002F06.tests-failing",{"title":692,"path":693,"stem":694,"children":695,"page":704},"Legal","\u002Fen\u002Flegal","en\u002F17.legal",[696,700],{"title":697,"path":698,"stem":699},"Privacy Policy","\u002Fen\u002Flegal\u002Fprivacy","en\u002F17.legal\u002F01.privacy",{"title":701,"path":702,"stem":703},"Terms and Conditions","\u002Fen\u002Flegal\u002Fterms","en\u002F17.legal\u002F02.terms",false,{"id":706,"title":551,"body":707,"description":2514,"extension":2515,"links":2516,"meta":2517,"navigation":810,"path":552,"seo":2518,"stem":553,"__hash__":2519},"docs_en\u002Fen\u002F12.api\u002F08.guides\u002F03.knowledge-from-website.md",{"type":708,"value":709,"toc":2508},"minimark",[710,724,729,762,766,2428,2458,2465,2469,2472,2495,2499,2504],[711,712,713,714,718,719,723],"p",{},"This guide creates a ",[715,716,717],"a",{"href":221},"knowledge base"," with your website's content. The script reads ",[720,721,722],"code",{},"sitemap.xml",", imports each page by its address and uploads the PDFs. At the end it says how many documents it imported and which ones failed.",[725,726,728],"h2",{"id":727},"before-you-start","Before you start",[730,731,732,749,755],"ul",{},[733,734,735,736,739,740,744,745,748],"li",{},"An ",[715,737,738],{"href":307},"API key"," with the ",[741,742,743],"strong",{},"Conhecimento — escrita"," (",[720,746,747],{},"knowledge:write",") scope.",[733,750,751,752,754],{},"The address of your website's ",[720,753,722],{},".",[733,756,757,758,761],{},"Python 3.11 or later with ",[720,759,760],{},"requests",", or Node.js 18 or later.",[725,763,765],{"id":764},"the-script","The script",[767,768,769,1103],"code-group",{},[770,771,777],"pre",{"className":772,"code":773,"filename":774,"language":775,"meta":776,"style":776},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import os\nimport re\nimport time\nfrom urllib.parse import urlparse\n\nimport requests\n\nAPI = \"https:\u002F\u002Fapi.diska.ai\u002Fv1\"\nSITEMAP = \"https:\u002F\u002Fwww.exemplo.ao\u002Fsitemap.xml\"  # your website's sitemap\nMAX_PAGES = 100\nsession = requests.Session()\nsession.headers[\"Authorization\"] = f\"Bearer {os.environ['DISKA_API_KEY']}\"\n\n\ndef post(path: str, **kwargs) -> requests.Response:\n    while True:\n        response = session.post(f\"{API}{path}\", timeout=60, **kwargs)\n        if response.status_code == 429:  # rate limit: wait as long as the API says\n            time.sleep(int(response.headers.get(\"Retry-After\", \"5\")))\n            continue\n        return response\n\n\n# 1. A new base for the website's content.\nresponse = post(\"\u002Fknowledge-bases\", json={\n    \"name\": \"Website\",\n    \"instruction\": \"Use this base to answer questions about the company, its products and prices, with the information on the website.\",\n})\nresponse.raise_for_status()\nbase_id = response.json()[\"id\"]\n\n# 2. The sitemap's pages.\nsitemap = requests.get(SITEMAP, timeout=30)\nsitemap.raise_for_status()\nurls = re.findall(r\"\u003Cloc>\\s*([^\u003C\\s]+)\\s*\u003C\u002Floc>\", sitemap.text)[:MAX_PAGES]\n\n# 3. Each page as a document: web pages by URL, PDFs by upload.\nimported, failed = 0, []\nfor url in urls:\n    name = urlparse(url).path.strip(\"\u002F\") or \"Home page\"\n    if url.lower().endswith(\".pdf\"):\n        pdf = requests.get(url, timeout=60)\n        result = post(f\"\u002Fknowledge-bases\u002F{base_id}\u002Fdocuments\u002Fpdf\",\n                      files={\"file\": (name, pdf.content, \"application\u002Fpdf\")})\n    else:\n        result = post(f\"\u002Fknowledge-bases\u002F{base_id}\u002Fdocuments\u002Furl\", json={\"name\": name[:200], \"url\": url})\n    if result.status_code == 201:\n        imported += 1\n    else:\n        failed.append((url, result.json().get(\"detail\")))\n    time.sleep(0.5)  # at most 120 requests per minute per key\n\nprint(f\"Base {base_id}: {imported} documents imported\")\nfor url, detail in failed:\n    print(\"failed:\", url, \"—\", detail)\n","Python","python","",[720,778,779,787,793,799,805,812,818,823,829,835,841,847,853,858,863,869,875,881,887,893,899,905,910,915,921,927,933,939,945,951,957,962,968,974,980,986,991,997,1003,1009,1015,1021,1027,1033,1039,1045,1051,1057,1063,1068,1074,1080,1085,1091,1097],{"__ignoreMap":776},[780,781,784],"span",{"class":782,"line":783},"line",1,[780,785,786],{},"import os\n",[780,788,790],{"class":782,"line":789},2,[780,791,792],{},"import re\n",[780,794,796],{"class":782,"line":795},3,[780,797,798],{},"import time\n",[780,800,802],{"class":782,"line":801},4,[780,803,804],{},"from urllib.parse import urlparse\n",[780,806,808],{"class":782,"line":807},5,[780,809,811],{"emptyLinePlaceholder":810},true,"\n",[780,813,815],{"class":782,"line":814},6,[780,816,817],{},"import requests\n",[780,819,821],{"class":782,"line":820},7,[780,822,811],{"emptyLinePlaceholder":810},[780,824,826],{"class":782,"line":825},8,[780,827,828],{},"API = \"https:\u002F\u002Fapi.diska.ai\u002Fv1\"\n",[780,830,832],{"class":782,"line":831},9,[780,833,834],{},"SITEMAP = \"https:\u002F\u002Fwww.exemplo.ao\u002Fsitemap.xml\"  # your website's sitemap\n",[780,836,838],{"class":782,"line":837},10,[780,839,840],{},"MAX_PAGES = 100\n",[780,842,844],{"class":782,"line":843},11,[780,845,846],{},"session = requests.Session()\n",[780,848,850],{"class":782,"line":849},12,[780,851,852],{},"session.headers[\"Authorization\"] = f\"Bearer {os.environ['DISKA_API_KEY']}\"\n",[780,854,856],{"class":782,"line":855},13,[780,857,811],{"emptyLinePlaceholder":810},[780,859,861],{"class":782,"line":860},14,[780,862,811],{"emptyLinePlaceholder":810},[780,864,866],{"class":782,"line":865},15,[780,867,868],{},"def post(path: str, **kwargs) -> requests.Response:\n",[780,870,872],{"class":782,"line":871},16,[780,873,874],{},"    while True:\n",[780,876,878],{"class":782,"line":877},17,[780,879,880],{},"        response = session.post(f\"{API}{path}\", timeout=60, **kwargs)\n",[780,882,884],{"class":782,"line":883},18,[780,885,886],{},"        if response.status_code == 429:  # rate limit: wait as long as the API says\n",[780,888,890],{"class":782,"line":889},19,[780,891,892],{},"            time.sleep(int(response.headers.get(\"Retry-After\", \"5\")))\n",[780,894,896],{"class":782,"line":895},20,[780,897,898],{},"            continue\n",[780,900,902],{"class":782,"line":901},21,[780,903,904],{},"        return response\n",[780,906,908],{"class":782,"line":907},22,[780,909,811],{"emptyLinePlaceholder":810},[780,911,913],{"class":782,"line":912},23,[780,914,811],{"emptyLinePlaceholder":810},[780,916,918],{"class":782,"line":917},24,[780,919,920],{},"# 1. A new base for the website's content.\n",[780,922,924],{"class":782,"line":923},25,[780,925,926],{},"response = post(\"\u002Fknowledge-bases\", json={\n",[780,928,930],{"class":782,"line":929},26,[780,931,932],{},"    \"name\": \"Website\",\n",[780,934,936],{"class":782,"line":935},27,[780,937,938],{},"    \"instruction\": \"Use this base to answer questions about the company, its products and prices, with the information on the website.\",\n",[780,940,942],{"class":782,"line":941},28,[780,943,944],{},"})\n",[780,946,948],{"class":782,"line":947},29,[780,949,950],{},"response.raise_for_status()\n",[780,952,954],{"class":782,"line":953},30,[780,955,956],{},"base_id = response.json()[\"id\"]\n",[780,958,960],{"class":782,"line":959},31,[780,961,811],{"emptyLinePlaceholder":810},[780,963,965],{"class":782,"line":964},32,[780,966,967],{},"# 2. The sitemap's pages.\n",[780,969,971],{"class":782,"line":970},33,[780,972,973],{},"sitemap = requests.get(SITEMAP, timeout=30)\n",[780,975,977],{"class":782,"line":976},34,[780,978,979],{},"sitemap.raise_for_status()\n",[780,981,983],{"class":782,"line":982},35,[780,984,985],{},"urls = re.findall(r\"\u003Cloc>\\s*([^\u003C\\s]+)\\s*\u003C\u002Floc>\", sitemap.text)[:MAX_PAGES]\n",[780,987,989],{"class":782,"line":988},36,[780,990,811],{"emptyLinePlaceholder":810},[780,992,994],{"class":782,"line":993},37,[780,995,996],{},"# 3. Each page as a document: web pages by URL, PDFs by upload.\n",[780,998,1000],{"class":782,"line":999},38,[780,1001,1002],{},"imported, failed = 0, []\n",[780,1004,1006],{"class":782,"line":1005},39,[780,1007,1008],{},"for url in urls:\n",[780,1010,1012],{"class":782,"line":1011},40,[780,1013,1014],{},"    name = urlparse(url).path.strip(\"\u002F\") or \"Home page\"\n",[780,1016,1018],{"class":782,"line":1017},41,[780,1019,1020],{},"    if url.lower().endswith(\".pdf\"):\n",[780,1022,1024],{"class":782,"line":1023},42,[780,1025,1026],{},"        pdf = requests.get(url, timeout=60)\n",[780,1028,1030],{"class":782,"line":1029},43,[780,1031,1032],{},"        result = post(f\"\u002Fknowledge-bases\u002F{base_id}\u002Fdocuments\u002Fpdf\",\n",[780,1034,1036],{"class":782,"line":1035},44,[780,1037,1038],{},"                      files={\"file\": (name, pdf.content, \"application\u002Fpdf\")})\n",[780,1040,1042],{"class":782,"line":1041},45,[780,1043,1044],{},"    else:\n",[780,1046,1048],{"class":782,"line":1047},46,[780,1049,1050],{},"        result = post(f\"\u002Fknowledge-bases\u002F{base_id}\u002Fdocuments\u002Furl\", json={\"name\": name[:200], \"url\": url})\n",[780,1052,1054],{"class":782,"line":1053},47,[780,1055,1056],{},"    if result.status_code == 201:\n",[780,1058,1060],{"class":782,"line":1059},48,[780,1061,1062],{},"        imported += 1\n",[780,1064,1066],{"class":782,"line":1065},49,[780,1067,1044],{},[780,1069,1071],{"class":782,"line":1070},50,[780,1072,1073],{},"        failed.append((url, result.json().get(\"detail\")))\n",[780,1075,1077],{"class":782,"line":1076},51,[780,1078,1079],{},"    time.sleep(0.5)  # at most 120 requests per minute per key\n",[780,1081,1083],{"class":782,"line":1082},52,[780,1084,811],{"emptyLinePlaceholder":810},[780,1086,1088],{"class":782,"line":1087},53,[780,1089,1090],{},"print(f\"Base {base_id}: {imported} documents imported\")\n",[780,1092,1094],{"class":782,"line":1093},54,[780,1095,1096],{},"for url, detail in failed:\n",[780,1098,1100],{"class":782,"line":1099},55,[780,1101,1102],{},"    print(\"failed:\", url, \"—\", detail)\n",[770,1104,1109],{"className":1105,"code":1106,"filename":1107,"language":1108,"meta":776,"style":776},"language-js shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F Node.js 18 or later, in a .mjs file\nimport { setTimeout as sleep } from 'node:timers\u002Fpromises'\n\nconst API = 'https:\u002F\u002Fapi.diska.ai\u002Fv1'\nconst SITEMAP = 'https:\u002F\u002Fwww.exemplo.ao\u002Fsitemap.xml' \u002F\u002F your website's sitemap\nconst MAX_PAGES = 100\nconst auth = { Authorization: `Bearer ${process.env.DISKA_API_KEY}` }\n\nasync function post(path, init) {\n  for (;;) {\n    const response = await fetch(`${API}${path}`, { method: 'POST', ...init, headers: { ...auth, ...init.headers } })\n    if (response.status !== 429) return response\n    await sleep(1000 * Number(response.headers.get('retry-after') || 5)) \u002F\u002F rate limit\n  }\n}\nconst json = body => ({ headers: { 'Content-Type': 'application\u002Fjson' }, body: JSON.stringify(body) })\n\n\u002F\u002F 1. A new base for the website's content.\nconst created = await post('\u002Fknowledge-bases', json({\n  name: 'Website',\n  instruction: 'Use this base to answer questions about the company, its products and prices, with the information on the website.'\n}))\nif (!created.ok) throw new Error(`${created.status} ${await created.text()}`)\nconst base = await created.json()\n\n\u002F\u002F 2. The sitemap's pages.\nconst xml = await (await fetch(SITEMAP)).text()\nconst urls = [...xml.matchAll(\u002F\u003Cloc>\\s*([^\u003C\\s]+)\\s*\u003C\\\u002Floc>\u002Fg)].map(m => m[1]).slice(0, MAX_PAGES)\n\n\u002F\u002F 3. Each page as a document: web pages by URL, PDFs by upload.\nlet imported = 0\nconst failed = []\nfor (const url of urls) {\n  const name = new URL(url).pathname.replace(\u002F^\\\u002F+|\\\u002F+$\u002Fg, '') || 'Home page'\n  let result\n  if (url.toLowerCase().endsWith('.pdf')) {\n    const form = new FormData()\n    form.append('file', new Blob([await (await fetch(url)).arrayBuffer()], { type: 'application\u002Fpdf' }), name)\n    result = await post(`\u002Fknowledge-bases\u002F${base.id}\u002Fdocuments\u002Fpdf`, { body: form })\n  } else {\n    result = await post(`\u002Fknowledge-bases\u002F${base.id}\u002Fdocuments\u002Furl`, json({ name: name.slice(0, 200), url }))\n  }\n  if (result.status === 201) imported++\n  else failed.push([url, (await result.json()).detail])\n  await sleep(500) \u002F\u002F at most 120 requests per minute per key\n}\nconsole.log(`Base ${base.id}: ${imported} documents imported`)\nfor (const [url, detail] of failed) console.log('failed:', url, '—', detail)\n","Node.js","js",[720,1110,1111,1117,1153,1157,1176,1196,1209,1255,1259,1290,1306,1393,1422,1476,1481,1486,1551,1555,1560,1591,1608,1622,1629,1689,1710,1714,1719,1745,1844,1848,1853,1866,1878,1898,1970,1978,2012,2028,2106,2156,2166,2235,2239,2266,2307,2324,2328,2371],{"__ignoreMap":776},[780,1112,1113],{"class":782,"line":783},[780,1114,1116],{"class":1115},"sHwdD","\u002F\u002F Node.js 18 or later, in a .mjs file\n",[780,1118,1119,1123,1127,1131,1134,1137,1140,1143,1146,1150],{"class":782,"line":789},[780,1120,1122],{"class":1121},"s7zQu","import",[780,1124,1126],{"class":1125},"sMK4o"," {",[780,1128,1130],{"class":1129},"sTEyZ"," setTimeout",[780,1132,1133],{"class":1121}," as",[780,1135,1136],{"class":1129}," sleep",[780,1138,1139],{"class":1125}," }",[780,1141,1142],{"class":1121}," from",[780,1144,1145],{"class":1125}," '",[780,1147,1149],{"class":1148},"sfazB","node:timers\u002Fpromises",[780,1151,1152],{"class":1125},"'\n",[780,1154,1155],{"class":782,"line":795},[780,1156,811],{"emptyLinePlaceholder":810},[780,1158,1159,1163,1166,1169,1171,1174],{"class":782,"line":801},[780,1160,1162],{"class":1161},"spNyl","const",[780,1164,1165],{"class":1129}," API ",[780,1167,1168],{"class":1125},"=",[780,1170,1145],{"class":1125},[780,1172,1173],{"class":1148},"https:\u002F\u002Fapi.diska.ai\u002Fv1",[780,1175,1152],{"class":1125},[780,1177,1178,1180,1183,1185,1187,1190,1193],{"class":782,"line":807},[780,1179,1162],{"class":1161},[780,1181,1182],{"class":1129}," SITEMAP ",[780,1184,1168],{"class":1125},[780,1186,1145],{"class":1125},[780,1188,1189],{"class":1148},"https:\u002F\u002Fwww.exemplo.ao\u002Fsitemap.xml",[780,1191,1192],{"class":1125},"'",[780,1194,1195],{"class":1115}," \u002F\u002F your website's sitemap\n",[780,1197,1198,1200,1203,1205],{"class":782,"line":814},[780,1199,1162],{"class":1161},[780,1201,1202],{"class":1129}," MAX_PAGES ",[780,1204,1168],{"class":1125},[780,1206,1208],{"class":1207},"sbssI"," 100\n",[780,1210,1211,1213,1216,1218,1220,1224,1227,1230,1233,1236,1239,1241,1244,1246,1249,1252],{"class":782,"line":820},[780,1212,1162],{"class":1161},[780,1214,1215],{"class":1129}," auth ",[780,1217,1168],{"class":1125},[780,1219,1126],{"class":1125},[780,1221,1223],{"class":1222},"swJcz"," Authorization",[780,1225,1226],{"class":1125},":",[780,1228,1229],{"class":1125}," `",[780,1231,1232],{"class":1148},"Bearer ",[780,1234,1235],{"class":1125},"${",[780,1237,1238],{"class":1129},"process",[780,1240,754],{"class":1125},[780,1242,1243],{"class":1129},"env",[780,1245,754],{"class":1125},[780,1247,1248],{"class":1129},"DISKA_API_KEY",[780,1250,1251],{"class":1125},"}`",[780,1253,1254],{"class":1125}," }\n",[780,1256,1257],{"class":782,"line":825},[780,1258,811],{"emptyLinePlaceholder":810},[780,1260,1261,1264,1267,1271,1274,1278,1281,1284,1287],{"class":782,"line":831},[780,1262,1263],{"class":1161},"async",[780,1265,1266],{"class":1161}," function",[780,1268,1270],{"class":1269},"s2Zo4"," post",[780,1272,1273],{"class":1125},"(",[780,1275,1277],{"class":1276},"sHdIc","path",[780,1279,1280],{"class":1125},",",[780,1282,1283],{"class":1276}," init",[780,1285,1286],{"class":1125},")",[780,1288,1289],{"class":1125}," {\n",[780,1291,1292,1295,1297,1300,1303],{"class":782,"line":837},[780,1293,1294],{"class":1121},"  for",[780,1296,744],{"class":1222},[780,1298,1299],{"class":1125},";;",[780,1301,1302],{"class":1222},") ",[780,1304,1305],{"class":1125},"{\n",[780,1307,1308,1311,1314,1317,1320,1323,1325,1328,1330,1333,1335,1337,1339,1341,1344,1346,1348,1351,1353,1355,1358,1361,1363,1366,1368,1370,1372,1375,1377,1379,1381,1383,1386,1388,1390],{"class":782,"line":843},[780,1309,1310],{"class":1161},"    const",[780,1312,1313],{"class":1129}," response",[780,1315,1316],{"class":1125}," =",[780,1318,1319],{"class":1121}," await",[780,1321,1322],{"class":1269}," fetch",[780,1324,1273],{"class":1222},[780,1326,1327],{"class":1125},"`${",[780,1329,292],{"class":1129},[780,1331,1332],{"class":1125},"}${",[780,1334,1277],{"class":1129},[780,1336,1251],{"class":1125},[780,1338,1280],{"class":1125},[780,1340,1126],{"class":1125},[780,1342,1343],{"class":1222}," method",[780,1345,1226],{"class":1125},[780,1347,1145],{"class":1125},[780,1349,1350],{"class":1148},"POST",[780,1352,1192],{"class":1125},[780,1354,1280],{"class":1125},[780,1356,1357],{"class":1125}," ...",[780,1359,1360],{"class":1129},"init",[780,1362,1280],{"class":1125},[780,1364,1365],{"class":1222}," headers",[780,1367,1226],{"class":1125},[780,1369,1126],{"class":1125},[780,1371,1357],{"class":1125},[780,1373,1374],{"class":1129},"auth",[780,1376,1280],{"class":1125},[780,1378,1357],{"class":1125},[780,1380,1360],{"class":1129},[780,1382,754],{"class":1125},[780,1384,1385],{"class":1129},"headers",[780,1387,1139],{"class":1125},[780,1389,1139],{"class":1125},[780,1391,1392],{"class":1222},")\n",[780,1394,1395,1398,1400,1403,1405,1408,1411,1414,1416,1419],{"class":782,"line":849},[780,1396,1397],{"class":1121},"    if",[780,1399,744],{"class":1222},[780,1401,1402],{"class":1129},"response",[780,1404,754],{"class":1125},[780,1406,1407],{"class":1129},"status",[780,1409,1410],{"class":1125}," !==",[780,1412,1413],{"class":1207}," 429",[780,1415,1302],{"class":1222},[780,1417,1418],{"class":1121},"return",[780,1420,1421],{"class":1129}," response\n",[780,1423,1424,1427,1429,1431,1434,1437,1440,1442,1444,1446,1448,1450,1453,1455,1457,1460,1462,1464,1467,1470,1473],{"class":782,"line":855},[780,1425,1426],{"class":1121},"    await",[780,1428,1136],{"class":1269},[780,1430,1273],{"class":1222},[780,1432,1433],{"class":1207},"1000",[780,1435,1436],{"class":1125}," *",[780,1438,1439],{"class":1269}," Number",[780,1441,1273],{"class":1222},[780,1443,1402],{"class":1129},[780,1445,754],{"class":1125},[780,1447,1385],{"class":1129},[780,1449,754],{"class":1125},[780,1451,1452],{"class":1269},"get",[780,1454,1273],{"class":1222},[780,1456,1192],{"class":1125},[780,1458,1459],{"class":1148},"retry-after",[780,1461,1192],{"class":1125},[780,1463,1302],{"class":1222},[780,1465,1466],{"class":1125},"||",[780,1468,1469],{"class":1207}," 5",[780,1471,1472],{"class":1222},")) ",[780,1474,1475],{"class":1115},"\u002F\u002F rate limit\n",[780,1477,1478],{"class":782,"line":860},[780,1479,1480],{"class":1125},"  }\n",[780,1482,1483],{"class":782,"line":865},[780,1484,1485],{"class":1125},"}\n",[780,1487,1488,1490,1493,1495,1498,1501,1503,1506,1508,1510,1512,1514,1517,1519,1521,1523,1526,1528,1531,1533,1535,1538,1540,1543,1546,1549],{"class":782,"line":871},[780,1489,1162],{"class":1161},[780,1491,1492],{"class":1129}," json ",[780,1494,1168],{"class":1125},[780,1496,1497],{"class":1276}," body",[780,1499,1500],{"class":1161}," =>",[780,1502,744],{"class":1129},[780,1504,1505],{"class":1125},"{",[780,1507,1365],{"class":1222},[780,1509,1226],{"class":1125},[780,1511,1126],{"class":1125},[780,1513,1145],{"class":1125},[780,1515,1516],{"class":1222},"Content-Type",[780,1518,1192],{"class":1125},[780,1520,1226],{"class":1125},[780,1522,1145],{"class":1125},[780,1524,1525],{"class":1148},"application\u002Fjson",[780,1527,1192],{"class":1125},[780,1529,1530],{"class":1125}," },",[780,1532,1497],{"class":1222},[780,1534,1226],{"class":1125},[780,1536,1537],{"class":1129}," JSON",[780,1539,754],{"class":1125},[780,1541,1542],{"class":1269},"stringify",[780,1544,1545],{"class":1129},"(body) ",[780,1547,1548],{"class":1125},"}",[780,1550,1392],{"class":1129},[780,1552,1553],{"class":782,"line":877},[780,1554,811],{"emptyLinePlaceholder":810},[780,1556,1557],{"class":782,"line":883},[780,1558,1559],{"class":1115},"\u002F\u002F 1. A new base for the website's content.\n",[780,1561,1562,1564,1567,1569,1571,1573,1575,1577,1580,1582,1584,1587,1589],{"class":782,"line":889},[780,1563,1162],{"class":1161},[780,1565,1566],{"class":1129}," created ",[780,1568,1168],{"class":1125},[780,1570,1319],{"class":1121},[780,1572,1270],{"class":1269},[780,1574,1273],{"class":1129},[780,1576,1192],{"class":1125},[780,1578,1579],{"class":1148},"\u002Fknowledge-bases",[780,1581,1192],{"class":1125},[780,1583,1280],{"class":1125},[780,1585,1586],{"class":1269}," json",[780,1588,1273],{"class":1129},[780,1590,1305],{"class":1125},[780,1592,1593,1596,1598,1600,1603,1605],{"class":782,"line":895},[780,1594,1595],{"class":1222},"  name",[780,1597,1226],{"class":1125},[780,1599,1145],{"class":1125},[780,1601,1602],{"class":1148},"Website",[780,1604,1192],{"class":1125},[780,1606,1607],{"class":1125},",\n",[780,1609,1610,1613,1615,1617,1620],{"class":782,"line":901},[780,1611,1612],{"class":1222},"  instruction",[780,1614,1226],{"class":1125},[780,1616,1145],{"class":1125},[780,1618,1619],{"class":1148},"Use this base to answer questions about the company, its products and prices, with the information on the website.",[780,1621,1152],{"class":1125},[780,1623,1624,1626],{"class":782,"line":907},[780,1625,1548],{"class":1125},[780,1627,1628],{"class":1129},"))\n",[780,1630,1631,1634,1636,1639,1642,1644,1647,1650,1653,1656,1658,1660,1662,1664,1666,1668,1671,1674,1677,1679,1682,1685,1687],{"class":782,"line":912},[780,1632,1633],{"class":1121},"if",[780,1635,744],{"class":1129},[780,1637,1638],{"class":1125},"!",[780,1640,1641],{"class":1129},"created",[780,1643,754],{"class":1125},[780,1645,1646],{"class":1129},"ok) ",[780,1648,1649],{"class":1121},"throw",[780,1651,1652],{"class":1125}," new",[780,1654,1655],{"class":1269}," Error",[780,1657,1273],{"class":1129},[780,1659,1327],{"class":1125},[780,1661,1641],{"class":1129},[780,1663,754],{"class":1125},[780,1665,1407],{"class":1129},[780,1667,1548],{"class":1125},[780,1669,1670],{"class":1125}," ${",[780,1672,1673],{"class":1121},"await",[780,1675,1676],{"class":1129}," created",[780,1678,754],{"class":1125},[780,1680,1681],{"class":1269},"text",[780,1683,1684],{"class":1129},"()",[780,1686,1251],{"class":1125},[780,1688,1392],{"class":1129},[780,1690,1691,1693,1696,1698,1700,1702,1704,1707],{"class":782,"line":917},[780,1692,1162],{"class":1161},[780,1694,1695],{"class":1129}," base ",[780,1697,1168],{"class":1125},[780,1699,1319],{"class":1121},[780,1701,1676],{"class":1129},[780,1703,754],{"class":1125},[780,1705,1706],{"class":1269},"json",[780,1708,1709],{"class":1129},"()\n",[780,1711,1712],{"class":782,"line":923},[780,1713,811],{"emptyLinePlaceholder":810},[780,1715,1716],{"class":782,"line":929},[780,1717,1718],{"class":1115},"\u002F\u002F 2. The sitemap's pages.\n",[780,1720,1721,1723,1726,1728,1730,1732,1734,1736,1739,1741,1743],{"class":782,"line":935},[780,1722,1162],{"class":1161},[780,1724,1725],{"class":1129}," xml ",[780,1727,1168],{"class":1125},[780,1729,1319],{"class":1121},[780,1731,744],{"class":1129},[780,1733,1673],{"class":1121},[780,1735,1322],{"class":1269},[780,1737,1738],{"class":1129},"(SITEMAP))",[780,1740,754],{"class":1125},[780,1742,1681],{"class":1269},[780,1744,1709],{"class":1129},[780,1746,1747,1749,1752,1754,1757,1760,1763,1765,1768,1770,1773,1776,1779,1782,1785,1788,1791,1794,1797,1800,1802,1805,1808,1810,1813,1815,1818,1820,1823,1826,1829,1831,1834,1836,1839,1841],{"class":782,"line":941},[780,1748,1162],{"class":1161},[780,1750,1751],{"class":1129}," urls ",[780,1753,1168],{"class":1125},[780,1755,1756],{"class":1129}," [",[780,1758,1759],{"class":1125},"...",[780,1761,1762],{"class":1129},"xml",[780,1764,754],{"class":1125},[780,1766,1767],{"class":1269},"matchAll",[780,1769,1273],{"class":1129},[780,1771,1772],{"class":1125},"\u002F",[780,1774,1775],{"class":1148},"\u003Cloc>\\s",[780,1777,1778],{"class":1125},"*([^",[780,1780,1781],{"class":1148},"\u003C\\s",[780,1783,1784],{"class":1125},"]+)",[780,1786,1787],{"class":1148},"\\s",[780,1789,1790],{"class":1125},"*",[780,1792,1793],{"class":1148},"\u003C",[780,1795,1796],{"class":1129},"\\\u002F",[780,1798,1799],{"class":1148},"loc>",[780,1801,1772],{"class":1125},[780,1803,1804],{"class":1207},"g",[780,1806,1807],{"class":1129},")]",[780,1809,754],{"class":1125},[780,1811,1812],{"class":1269},"map",[780,1814,1273],{"class":1129},[780,1816,1817],{"class":1276},"m",[780,1819,1500],{"class":1161},[780,1821,1822],{"class":1129}," m[",[780,1824,1825],{"class":1207},"1",[780,1827,1828],{"class":1129},"])",[780,1830,754],{"class":1125},[780,1832,1833],{"class":1269},"slice",[780,1835,1273],{"class":1129},[780,1837,1838],{"class":1207},"0",[780,1840,1280],{"class":1125},[780,1842,1843],{"class":1129}," MAX_PAGES)\n",[780,1845,1846],{"class":782,"line":947},[780,1847,811],{"emptyLinePlaceholder":810},[780,1849,1850],{"class":782,"line":953},[780,1851,1852],{"class":1115},"\u002F\u002F 3. Each page as a document: web pages by URL, PDFs by upload.\n",[780,1854,1855,1858,1861,1863],{"class":782,"line":959},[780,1856,1857],{"class":1161},"let",[780,1859,1860],{"class":1129}," imported ",[780,1862,1168],{"class":1125},[780,1864,1865],{"class":1207}," 0\n",[780,1867,1868,1870,1873,1875],{"class":782,"line":964},[780,1869,1162],{"class":1161},[780,1871,1872],{"class":1129}," failed ",[780,1874,1168],{"class":1125},[780,1876,1877],{"class":1129}," []\n",[780,1879,1880,1883,1885,1887,1890,1893,1896],{"class":782,"line":970},[780,1881,1882],{"class":1121},"for",[780,1884,744],{"class":1129},[780,1886,1162],{"class":1161},[780,1888,1889],{"class":1129}," url ",[780,1891,1892],{"class":1125},"of",[780,1894,1895],{"class":1129}," urls) ",[780,1897,1305],{"class":1125},[780,1899,1900,1903,1906,1908,1910,1913,1915,1918,1920,1922,1925,1927,1930,1932,1934,1937,1939,1942,1944,1947,1950,1952,1954,1956,1959,1961,1963,1965,1968],{"class":782,"line":976},[780,1901,1902],{"class":1161},"  const",[780,1904,1905],{"class":1129}," name",[780,1907,1316],{"class":1125},[780,1909,1652],{"class":1125},[780,1911,1912],{"class":1269}," URL",[780,1914,1273],{"class":1222},[780,1916,1917],{"class":1129},"url",[780,1919,1286],{"class":1222},[780,1921,754],{"class":1125},[780,1923,1924],{"class":1129},"pathname",[780,1926,754],{"class":1125},[780,1928,1929],{"class":1269},"replace",[780,1931,1273],{"class":1222},[780,1933,1772],{"class":1125},[780,1935,1936],{"class":1121},"^",[780,1938,1796],{"class":1129},[780,1940,1941],{"class":1125},"+|",[780,1943,1796],{"class":1129},[780,1945,1946],{"class":1125},"+",[780,1948,1949],{"class":1121},"$",[780,1951,1772],{"class":1125},[780,1953,1804],{"class":1207},[780,1955,1280],{"class":1125},[780,1957,1958],{"class":1125}," ''",[780,1960,1302],{"class":1222},[780,1962,1466],{"class":1125},[780,1964,1145],{"class":1125},[780,1966,1967],{"class":1148},"Home page",[780,1969,1152],{"class":1125},[780,1971,1972,1975],{"class":782,"line":982},[780,1973,1974],{"class":1161},"  let",[780,1976,1977],{"class":1129}," result\n",[780,1979,1980,1983,1985,1987,1989,1992,1994,1996,1999,2001,2003,2006,2008,2010],{"class":782,"line":988},[780,1981,1982],{"class":1121},"  if",[780,1984,744],{"class":1222},[780,1986,1917],{"class":1129},[780,1988,754],{"class":1125},[780,1990,1991],{"class":1269},"toLowerCase",[780,1993,1684],{"class":1222},[780,1995,754],{"class":1125},[780,1997,1998],{"class":1269},"endsWith",[780,2000,1273],{"class":1222},[780,2002,1192],{"class":1125},[780,2004,2005],{"class":1148},".pdf",[780,2007,1192],{"class":1125},[780,2009,1472],{"class":1222},[780,2011,1305],{"class":1125},[780,2013,2014,2016,2019,2021,2023,2026],{"class":782,"line":993},[780,2015,1310],{"class":1161},[780,2017,2018],{"class":1129}," form",[780,2020,1316],{"class":1125},[780,2022,1652],{"class":1125},[780,2024,2025],{"class":1269}," FormData",[780,2027,1709],{"class":1222},[780,2029,2030,2033,2035,2038,2040,2042,2045,2047,2049,2051,2054,2057,2059,2061,2063,2065,2067,2069,2072,2074,2077,2080,2082,2084,2087,2089,2091,2094,2096,2098,2100,2102,2104],{"class":782,"line":999},[780,2031,2032],{"class":1129},"    form",[780,2034,754],{"class":1125},[780,2036,2037],{"class":1269},"append",[780,2039,1273],{"class":1222},[780,2041,1192],{"class":1125},[780,2043,2044],{"class":1148},"file",[780,2046,1192],{"class":1125},[780,2048,1280],{"class":1125},[780,2050,1652],{"class":1125},[780,2052,2053],{"class":1269}," Blob",[780,2055,2056],{"class":1222},"([",[780,2058,1673],{"class":1121},[780,2060,744],{"class":1222},[780,2062,1673],{"class":1121},[780,2064,1322],{"class":1269},[780,2066,1273],{"class":1222},[780,2068,1917],{"class":1129},[780,2070,2071],{"class":1222},"))",[780,2073,754],{"class":1125},[780,2075,2076],{"class":1269},"arrayBuffer",[780,2078,2079],{"class":1222},"()]",[780,2081,1280],{"class":1125},[780,2083,1126],{"class":1125},[780,2085,2086],{"class":1222}," type",[780,2088,1226],{"class":1125},[780,2090,1145],{"class":1125},[780,2092,2093],{"class":1148},"application\u002Fpdf",[780,2095,1192],{"class":1125},[780,2097,1139],{"class":1125},[780,2099,1286],{"class":1222},[780,2101,1280],{"class":1125},[780,2103,1905],{"class":1129},[780,2105,1392],{"class":1222},[780,2107,2108,2111,2113,2115,2117,2119,2122,2125,2127,2130,2132,2135,2137,2140,2142,2144,2146,2148,2150,2152,2154],{"class":782,"line":1005},[780,2109,2110],{"class":1129},"    result",[780,2112,1316],{"class":1125},[780,2114,1319],{"class":1121},[780,2116,1270],{"class":1269},[780,2118,1273],{"class":1222},[780,2120,2121],{"class":1125},"`",[780,2123,2124],{"class":1148},"\u002Fknowledge-bases\u002F",[780,2126,1235],{"class":1125},[780,2128,2129],{"class":1129},"base",[780,2131,754],{"class":1125},[780,2133,2134],{"class":1129},"id",[780,2136,1548],{"class":1125},[780,2138,2139],{"class":1148},"\u002Fdocuments\u002Fpdf",[780,2141,2121],{"class":1125},[780,2143,1280],{"class":1125},[780,2145,1126],{"class":1125},[780,2147,1497],{"class":1222},[780,2149,1226],{"class":1125},[780,2151,2018],{"class":1129},[780,2153,1139],{"class":1125},[780,2155,1392],{"class":1222},[780,2157,2158,2161,2164],{"class":782,"line":1011},[780,2159,2160],{"class":1125},"  }",[780,2162,2163],{"class":1121}," else",[780,2165,1289],{"class":1125},[780,2167,2168,2170,2172,2174,2176,2178,2180,2182,2184,2186,2188,2190,2192,2195,2197,2199,2201,2203,2205,2207,2209,2211,2213,2215,2217,2219,2221,2224,2226,2228,2231,2233],{"class":782,"line":1017},[780,2169,2110],{"class":1129},[780,2171,1316],{"class":1125},[780,2173,1319],{"class":1121},[780,2175,1270],{"class":1269},[780,2177,1273],{"class":1222},[780,2179,2121],{"class":1125},[780,2181,2124],{"class":1148},[780,2183,1235],{"class":1125},[780,2185,2129],{"class":1129},[780,2187,754],{"class":1125},[780,2189,2134],{"class":1129},[780,2191,1548],{"class":1125},[780,2193,2194],{"class":1148},"\u002Fdocuments\u002Furl",[780,2196,2121],{"class":1125},[780,2198,1280],{"class":1125},[780,2200,1586],{"class":1269},[780,2202,1273],{"class":1222},[780,2204,1505],{"class":1125},[780,2206,1905],{"class":1222},[780,2208,1226],{"class":1125},[780,2210,1905],{"class":1129},[780,2212,754],{"class":1125},[780,2214,1833],{"class":1269},[780,2216,1273],{"class":1222},[780,2218,1838],{"class":1207},[780,2220,1280],{"class":1125},[780,2222,2223],{"class":1207}," 200",[780,2225,1286],{"class":1222},[780,2227,1280],{"class":1125},[780,2229,2230],{"class":1129}," url",[780,2232,1139],{"class":1125},[780,2234,1628],{"class":1222},[780,2236,2237],{"class":782,"line":1023},[780,2238,1480],{"class":1125},[780,2240,2241,2243,2245,2248,2250,2252,2255,2258,2260,2263],{"class":782,"line":1029},[780,2242,1982],{"class":1121},[780,2244,744],{"class":1222},[780,2246,2247],{"class":1129},"result",[780,2249,754],{"class":1125},[780,2251,1407],{"class":1129},[780,2253,2254],{"class":1125}," ===",[780,2256,2257],{"class":1207}," 201",[780,2259,1302],{"class":1222},[780,2261,2262],{"class":1129},"imported",[780,2264,2265],{"class":1125},"++\n",[780,2267,2268,2271,2274,2276,2279,2281,2283,2285,2287,2289,2292,2294,2296,2299,2301,2304],{"class":782,"line":1035},[780,2269,2270],{"class":1121},"  else",[780,2272,2273],{"class":1129}," failed",[780,2275,754],{"class":1125},[780,2277,2278],{"class":1269},"push",[780,2280,2056],{"class":1222},[780,2282,1917],{"class":1129},[780,2284,1280],{"class":1125},[780,2286,744],{"class":1222},[780,2288,1673],{"class":1121},[780,2290,2291],{"class":1129}," result",[780,2293,754],{"class":1125},[780,2295,1706],{"class":1269},[780,2297,2298],{"class":1222},"())",[780,2300,754],{"class":1125},[780,2302,2303],{"class":1129},"detail",[780,2305,2306],{"class":1222},"])\n",[780,2308,2309,2312,2314,2316,2319,2321],{"class":782,"line":1041},[780,2310,2311],{"class":1121},"  await",[780,2313,1136],{"class":1269},[780,2315,1273],{"class":1222},[780,2317,2318],{"class":1207},"500",[780,2320,1302],{"class":1222},[780,2322,2323],{"class":1115},"\u002F\u002F at most 120 requests per minute per key\n",[780,2325,2326],{"class":782,"line":1047},[780,2327,1485],{"class":1125},[780,2329,2330,2333,2335,2338,2340,2342,2345,2347,2349,2351,2353,2355,2358,2360,2362,2364,2367,2369],{"class":782,"line":1053},[780,2331,2332],{"class":1129},"console",[780,2334,754],{"class":1125},[780,2336,2337],{"class":1269},"log",[780,2339,1273],{"class":1129},[780,2341,2121],{"class":1125},[780,2343,2344],{"class":1148},"Base ",[780,2346,1235],{"class":1125},[780,2348,2129],{"class":1129},[780,2350,754],{"class":1125},[780,2352,2134],{"class":1129},[780,2354,1548],{"class":1125},[780,2356,2357],{"class":1148},": ",[780,2359,1235],{"class":1125},[780,2361,2262],{"class":1129},[780,2363,1548],{"class":1125},[780,2365,2366],{"class":1148}," documents imported",[780,2368,2121],{"class":1125},[780,2370,1392],{"class":1129},[780,2372,2373,2375,2377,2379,2381,2383,2385,2388,2391,2394,2397,2399,2401,2403,2405,2408,2410,2412,2414,2416,2418,2421,2423,2425],{"class":782,"line":1059},[780,2374,1882],{"class":1121},[780,2376,744],{"class":1129},[780,2378,1162],{"class":1161},[780,2380,1756],{"class":1125},[780,2382,1917],{"class":1129},[780,2384,1280],{"class":1125},[780,2386,2387],{"class":1129}," detail",[780,2389,2390],{"class":1125},"]",[780,2392,2393],{"class":1125}," of",[780,2395,2396],{"class":1129}," failed) console",[780,2398,754],{"class":1125},[780,2400,2337],{"class":1269},[780,2402,1273],{"class":1129},[780,2404,1192],{"class":1125},[780,2406,2407],{"class":1148},"failed:",[780,2409,1192],{"class":1125},[780,2411,1280],{"class":1125},[780,2413,2230],{"class":1129},[780,2415,1280],{"class":1125},[780,2417,1145],{"class":1125},[780,2419,2420],{"class":1148},"—",[780,2422,1192],{"class":1125},[780,2424,1280],{"class":1125},[780,2426,2427],{"class":1129}," detail)\n",[730,2429,2430,2436,2442,2449,2455],{},[733,2431,2432,2433,2435],{},"Each page is imported with ",[715,2434,504],{"href":505},". The page must answer within 15 seconds, be up to 2 MB and be HTML, text or JSON. Private or internal addresses are refused.",[733,2437,2438,2439,2441],{},"PDFs are downloaded and uploaded with ",[715,2440,508],{"href":509},", up to 25 MB.",[733,2443,2444,2445,2448],{},"Each document is named after the page's path (",[720,2446,2447],{},"products\u002Fphones","), so you can recognize it in the backoffice.",[733,2450,2451,2454],{},[720,2452,2453],{},"MAX_PAGES"," caps how many pages it imports. Start with a few and check the result.",[733,2456,2457],{},"If your sitemap is an index (it lists other sitemaps instead of pages), run the script for each sitemap in the list.",[711,2459,2460,2461,2464],{},"Pages that fail are listed at the end, with the reason — for example ",[720,2462,2463],{},"A página não devolveu texto legível."," (no readable text) when the page only shows content through JavaScript.",[725,2466,2468],{"id":2467},"link-the-base-to-the-agent","Link the base to the agent",[711,2470,2471],{},"The API creates the base but does not assign it to an agent. In the backoffice:",[2473,2474,2475,2482,2489],"ol",{},[733,2476,2477,2478,2481],{},"Open the base under ",[741,2479,2480],{},"Conhecimento"," (Knowledge) and check that the documents were indexed.",[733,2483,2484,2485,754],{},"Assign it to the agent, as in ",[715,2486,2488],{"href":2487},"\u002Fen\u002Fknowledge-base#assign-bases-to-an-agent","Assign bases to an agent",[733,2490,2491,2492,2494],{},"Publish the agent, in the backoffice or with ",[715,2493,360],{"href":361},". Calls only use a new base after you publish.",[725,2496,2498],{"id":2497},"update-the-content","Update the content",[711,2500,2501,2502,754],{},"The DISKA API does not list, change or delete documents yet. To add new pages, import them into the same base: a new document in a base that is already assigned takes effect at once. To redo everything, run the script into a new base, switch the agent's base and publish it, then delete the old base under ",[741,2503,2480],{},[2505,2506,2507],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}",{"title":776,"searchDepth":789,"depth":789,"links":2509},[2510,2511,2512,2513],{"id":727,"depth":789,"text":728},{"id":764,"depth":789,"text":765},{"id":2467,"depth":789,"text":2468},{"id":2497,"depth":789,"text":2498},"Reads your website's sitemap and imports every page and every PDF into a knowledge base.","md",null,{},{"title":551,"description":2514},"fB2i5LJcSOc5mn6D1qXVZks6agYcNkxGFXE_CRPVack",[2521,2523],{"title":547,"path":548,"stem":549,"description":2522,"children":-1},"The whole history to CSV, or with transcripts to JSONL, using cursor pagination.",{"title":555,"path":556,"stem":557,"description":2524,"children":-1},"How the DISKA API evolves, what can change without notice and the change history.",1795253317441]