[{"data":1,"prerenderedAt":2239},["ShallowReactive",2],{"navigation_docs_pt":3,"-pt-api-guides-export-call-history":706,"-pt-api-guides-export-call-history-surround":2234},[4,8,26,52,101,131,181,219,237,247,269,291,562,572,613,662,692],{"title":5,"path":6,"stem":7},"Introdução","\u002Fpt\u002Fintroduction","pt\u002F01.introduction",{"title":9,"path":10,"stem":11,"children":12},"Começar","\u002Fpt\u002Fgetting-started","pt\u002F02.getting-started\u002Findex",[13,14,18,22],{"title":9,"path":10,"stem":11},{"title":15,"path":16,"stem":17},"Configuração inicial","\u002Fpt\u002Fgetting-started\u002Finitial-setup","pt\u002F02.getting-started\u002F01.initial-setup",{"title":19,"path":20,"stem":21},"Criar o primeiro agente","\u002Fpt\u002Fgetting-started\u002Ffirst-agent","pt\u002F02.getting-started\u002F02.first-agent",{"title":23,"path":24,"stem":25},"Fazer uma chamada de teste","\u002Fpt\u002Fgetting-started\u002Ftest-call","pt\u002F02.getting-started\u002F03.test-call",{"title":27,"path":28,"stem":29,"children":30},"Conceitos","\u002Fpt\u002Fconcepts","pt\u002F03.concepts\u002Findex",[31,32,36,40,44,48],{"title":27,"path":28,"stem":29},{"title":33,"path":34,"stem":35},"Agente de voz","\u002Fpt\u002Fconcepts\u002Fagent","pt\u002F03.concepts\u002F01.agent",{"title":37,"path":38,"stem":39},"Fluxo","\u002Fpt\u002Fconcepts\u002Fflow","pt\u002F03.concepts\u002F02.flow",{"title":41,"path":42,"stem":43},"Runtime","\u002Fpt\u002Fconcepts\u002Fruntime","pt\u002F03.concepts\u002F03.runtime",{"title":45,"path":46,"stem":47},"Organização e permissões","\u002Fpt\u002Fconcepts\u002Forganization","pt\u002F03.concepts\u002F04.organization",{"title":49,"path":50,"stem":51},"Prompt Builder","\u002Fpt\u002Fconcepts\u002Fprompt-builder","pt\u002F03.concepts\u002F05.prompt-builder",{"title":53,"path":54,"stem":55,"children":56},"Guias","\u002Fpt\u002Fguides","pt\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},"\u002Fpt\u002Fguides\u002Fcreate-first-agent","pt\u002F04.guides\u002F01.create-first-agent",{"title":62,"path":63,"stem":64},"Usar o Flow Builder","\u002Fpt\u002Fguides\u002Fuse-flow-builder","pt\u002F04.guides\u002F02.use-flow-builder",{"title":66,"path":67,"stem":68},"Publicar e receber chamadas","\u002Fpt\u002Fguides\u002Fpublish-agent","pt\u002F04.guides\u002F03.publish-agent",{"title":70,"path":71,"stem":72},"Testar um agente","\u002Fpt\u002Fguides\u002Ftest-agent","pt\u002F04.guides\u002F04.test-agent",{"title":74,"path":75,"stem":76},"Transferir para humano","\u002Fpt\u002Fguides\u002Ftransfer-to-human","pt\u002F04.guides\u002F05.transfer-to-human",{"title":78,"path":79,"stem":80},"Marcar reuniões com Cal.com","\u002Fpt\u002Fguides\u002Fbook-meetings","pt\u002F04.guides\u002F06.book-meetings",{"title":82,"path":83,"stem":84},"Enviar SMS","\u002Fpt\u002Fguides\u002Fsend-sms","pt\u002F04.guides\u002F07.send-sms",{"title":86,"path":87,"stem":88},"Configurar uma lista telefónica","\u002Fpt\u002Fguides\u002Fconfigure-phone-book","pt\u002F04.guides\u002F08.configure-phone-book",{"title":90,"path":91,"stem":92},"Incorporar o widget de voz","\u002Fpt\u002Fguides\u002Fembed-widget","pt\u002F04.guides\u002F09.embed-widget",{"title":94,"path":95,"stem":96},"Gravar chamadas","\u002Fpt\u002Fguides\u002Frecord-calls","pt\u002F04.guides\u002F10.record-calls",{"title":98,"path":99,"stem":100},"Ocultar dados pessoais","\u002Fpt\u002Fguides\u002Fredact-personal-data","pt\u002F04.guides\u002F11.redact-personal-data",{"title":102,"path":103,"stem":104,"children":105},"Flow Builder","\u002Fpt\u002Fflow-builder","pt\u002F05.flow-builder\u002Findex",[106,107,111,115,119,123,127],{"title":102,"path":103,"stem":104},{"title":108,"path":109,"stem":110},"Interface do builder","\u002Fpt\u002Fflow-builder\u002Finterface","pt\u002F05.flow-builder\u002F01.interface",{"title":112,"path":113,"stem":114},"Estrutura de um fluxo","\u002Fpt\u002Fflow-builder\u002Fstructure","pt\u002F05.flow-builder\u002F02.structure",{"title":116,"path":117,"stem":118},"Variáveis do fluxo","\u002Fpt\u002Fflow-builder\u002Fvariables","pt\u002F05.flow-builder\u002F03.variables",{"title":120,"path":121,"stem":122},"Condições e caminhos","\u002Fpt\u002Fflow-builder\u002Fbranches","pt\u002F05.flow-builder\u002F04.branches",{"title":124,"path":125,"stem":126},"Testar um fluxo","\u002Fpt\u002Fflow-builder\u002Ftesting","pt\u002F05.flow-builder\u002F05.testing",{"title":128,"path":129,"stem":130},"Validação e publicação","\u002Fpt\u002Fflow-builder\u002Fvalidation-publishing","pt\u002F05.flow-builder\u002F06.validation-publishing",{"title":132,"path":133,"stem":134,"children":135},"Nós","\u002Fpt\u002Fnodes","pt\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},"Conversação","\u002Fpt\u002Fnodes\u002Fconversation","pt\u002F06.nodes\u002F01.conversation",{"title":142,"path":143,"stem":144},"Mensagem","\u002Fpt\u002Fnodes\u002Fmessage","pt\u002F06.nodes\u002F02.message",{"title":146,"path":147,"stem":148},"Dividir o caminho","\u002Fpt\u002Fnodes\u002Fsplit-path","pt\u002F06.nodes\u002F03.split-path",{"title":150,"path":151,"stem":152},"Saltar para","\u002Fpt\u002Fnodes\u002Fjump-to","pt\u002F06.nodes\u002F04.jump-to",{"title":154,"path":155,"stem":156},"Disparar subfluxo","\u002Fpt\u002Fnodes\u002Ftrigger-subflow","pt\u002F06.nodes\u002F05.trigger-subflow",{"title":158,"path":159,"stem":160},"Acção personalizada","\u002Fpt\u002Fnodes\u002Fcustom-action","pt\u002F06.nodes\u002F06.custom-action",{"title":162,"path":163,"stem":164},"Enviar SMS durante a chamada","\u002Fpt\u002Fnodes\u002Fsend-sms-during-call","pt\u002F06.nodes\u002F07.send-sms-during-call",{"title":166,"path":167,"stem":168},"Transferência","\u002Fpt\u002Fnodes\u002Ftransfer","pt\u002F06.nodes\u002F08.transfer",{"title":170,"path":171,"stem":172},"Agendamento","\u002Fpt\u002Fnodes\u002Fbooking","pt\u002F06.nodes\u002F09.booking",{"title":174,"path":175,"stem":176},"Terminar chamada","\u002Fpt\u002Fnodes\u002Fend-call","pt\u002F06.nodes\u002F10.end-call",{"title":178,"path":179,"stem":180},"Nós em breve","\u002Fpt\u002Fnodes\u002Fcoming-soon","pt\u002F06.nodes\u002F11.coming-soon",{"title":182,"path":183,"stem":184,"children":185},"Acções","\u002Fpt\u002Factions","pt\u002F07.actions\u002Findex",[186,187,191,195,199,203,207,211,215],{"title":182,"path":183,"stem":184},{"title":188,"path":189,"stem":190},"Transferências de chamada","\u002Fpt\u002Factions\u002Fcall-transfers","pt\u002F07.actions\u002F01.call-transfers",{"title":192,"path":193,"stem":194},"IVR","\u002Fpt\u002Factions\u002Fivr","pt\u002F07.actions\u002F02.ivr",{"title":196,"path":197,"stem":198},"SMS durante a chamada","\u002Fpt\u002Factions\u002Fduring-call-sms","pt\u002F07.actions\u002F03.during-call-sms",{"title":200,"path":201,"stem":202},"SMS pós-chamada","\u002Fpt\u002Factions\u002Fpost-call-sms","pt\u002F07.actions\u002F04.post-call-sms",{"title":204,"path":205,"stem":206},"Acções personalizadas","\u002Fpt\u002Factions\u002Fcustom-actions","pt\u002F07.actions\u002F05.custom-actions",{"title":208,"path":209,"stem":210},"Extratores de Informação","\u002Fpt\u002Factions\u002Finformation-extractors","pt\u002F07.actions\u002F06.information-extractors",{"title":212,"path":213,"stem":214},"Avaliações Personalizadas","\u002Fpt\u002Factions\u002Fcustom-evaluations","pt\u002F07.actions\u002F07.custom-evaluations",{"title":216,"path":217,"stem":218},"Agendamento em tempo real","\u002Fpt\u002Factions\u002Freal-time-booking","pt\u002F07.actions\u002F08.real-time-booking",{"title":220,"path":221,"stem":222,"children":223},"Base de conhecimento","\u002Fpt\u002Fknowledge-base","pt\u002F08.knowledge-base\u002Findex",[224,225,229,233],{"title":220,"path":221,"stem":222},{"title":226,"path":227,"stem":228},"Fontes","\u002Fpt\u002Fknowledge-base\u002Fsources","pt\u002F08.knowledge-base\u002F01.sources",{"title":230,"path":231,"stem":232},"Citações","\u002Fpt\u002Fknowledge-base\u002Fcitations","pt\u002F08.knowledge-base\u002F02.citations",{"title":234,"path":235,"stem":236},"Memória partilhada","\u002Fpt\u002Fknowledge-base\u002Fshared-memory","pt\u002F08.knowledge-base\u002F03.shared-memory",{"title":238,"path":239,"stem":240,"children":241},"Centro de Testes","\u002Fpt\u002Ftest-center","pt\u002F09.test-center\u002Findex",[242,243],{"title":238,"path":239,"stem":240},{"title":244,"path":245,"stem":246},"Avaliações","\u002Fpt\u002Ftest-center\u002Fevaluations","pt\u002F09.test-center\u002F01.evaluations",{"title":248,"path":249,"stem":250,"children":251},"Históricos e análises","\u002Fpt\u002Fhistory","pt\u002F10.history\u002Findex",[252,253,257,261,265],{"title":248,"path":249,"stem":250},{"title":254,"path":255,"stem":256},"Visão geral","\u002Fpt\u002Fhistory\u002Fdashboard","pt\u002F10.history\u002F01.dashboard",{"title":258,"path":259,"stem":260},"Chamadas","\u002Fpt\u002Fhistory\u002Fcalls","pt\u002F10.history\u002F02.calls",{"title":262,"path":263,"stem":264},"Gravações","\u002Fpt\u002Fhistory\u002Frecordings","pt\u002F10.history\u002F03.recordings",{"title":266,"path":267,"stem":268},"Análises","\u002Fpt\u002Fhistory\u002Fanalytics","pt\u002F10.history\u002F04.analytics",{"title":270,"path":271,"stem":272,"children":273},"WhatsApp","\u002Fpt\u002Fwhatsapp","pt\u002F11.whatsapp\u002Findex",[274,275,279,283,287],{"title":270,"path":271,"stem":272},{"title":276,"path":277,"stem":278},"Ligar o número","\u002Fpt\u002Fwhatsapp\u002Fconnect","pt\u002F11.whatsapp\u002F01.connect",{"title":280,"path":281,"stem":282},"Templates","\u002Fpt\u002Fwhatsapp\u002Ftemplates","pt\u002F11.whatsapp\u002F02.templates",{"title":284,"path":285,"stem":286},"Conversas","\u002Fpt\u002Fwhatsapp\u002Fconversations","pt\u002F11.whatsapp\u002F03.conversations",{"title":288,"path":289,"stem":290},"Chamadas de voz","\u002Fpt\u002Fwhatsapp\u002Fcalls","pt\u002F11.whatsapp\u002F04.calls",{"title":292,"path":293,"stem":294,"children":295},"API","\u002Fpt\u002Fapi","pt\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},"Começar com a API","\u002Fpt\u002Fapi\u002Fgetting-started","pt\u002F12.api\u002F01.getting-started",{"title":302,"path":303,"stem":304},"API da DISKA","\u002Fpt\u002Fapi\u002Fapi-channel","pt\u002F12.api\u002F02.api-channel",{"title":306,"path":307,"stem":308},"Autenticação","\u002Fpt\u002Fapi\u002Fauthentication","pt\u002F12.api\u002F03.authentication",{"title":310,"path":311,"stem":312},"Webhooks","\u002Fpt\u002Fapi\u002Fwebhooks","pt\u002F12.api\u002F04.webhooks",{"title":314,"path":315,"stem":316},"Endpoints","\u002Fpt\u002Fapi\u002Fendpoints","pt\u002F12.api\u002F05.endpoints",{"title":318,"path":319,"stem":320},"Tempo real","\u002Fpt\u002Fapi\u002Frealtime","pt\u002F12.api\u002F06.realtime",{"title":322,"path":323,"stem":324,"children":325},"Referência da API","\u002Fpt\u002Fapi\u002Freference","pt\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},"Identidade","\u002Fpt\u002Fapi\u002Freference\u002Fidentity","pt\u002F12.api\u002F07.reference\u002F01.identity\u002Findex",[332,333],{"title":328,"path":329,"stem":330},{"title":334,"path":335,"stem":336},"Ver a chave e a organização","\u002Fpt\u002Fapi\u002Freference\u002Fidentity\u002Fget-identity","pt\u002F12.api\u002F07.reference\u002F01.identity\u002F01.get-identity",{"title":338,"path":339,"stem":340,"children":341},"Agentes","\u002Fpt\u002Fapi\u002Freference\u002Fagents","pt\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},"Listar agentes","\u002Fpt\u002Fapi\u002Freference\u002Fagents\u002Flist-agents","pt\u002F12.api\u002F07.reference\u002F02.agents\u002F01.list-agents",{"title":348,"path":349,"stem":350},"Ver um agente","\u002Fpt\u002Fapi\u002Freference\u002Fagents\u002Fget-agent","pt\u002F12.api\u002F07.reference\u002F02.agents\u002F02.get-agent",{"title":352,"path":353,"stem":354},"Editar um agente","\u002Fpt\u002Fapi\u002Freference\u002Fagents\u002Fupdate-agent","pt\u002F12.api\u002F07.reference\u002F02.agents\u002F03.update-agent",{"title":356,"path":357,"stem":358},"Criar um agente","\u002Fpt\u002Fapi\u002Freference\u002Fagents\u002Fcreate-agent","pt\u002F12.api\u002F07.reference\u002F02.agents\u002F04.create-agent",{"title":360,"path":361,"stem":362},"Publicar um agente","\u002Fpt\u002Fapi\u002Freference\u002Fagents\u002Fpublish-agent","pt\u002F12.api\u002F07.reference\u002F02.agents\u002F05.publish-agent",{"title":258,"path":364,"stem":365,"children":366},"\u002Fpt\u002Fapi\u002Freference\u002Fcalls","pt\u002F12.api\u002F07.reference\u002F03.calls\u002Findex",[367,368,372,376],{"title":258,"path":364,"stem":365},{"title":369,"path":370,"stem":371},"Listar chamadas","\u002Fpt\u002Fapi\u002Freference\u002Fcalls\u002Flist-calls","pt\u002F12.api\u002F07.reference\u002F03.calls\u002F01.list-calls",{"title":373,"path":374,"stem":375},"Ver uma chamada","\u002Fpt\u002Fapi\u002Freference\u002Fcalls\u002Fget-call","pt\u002F12.api\u002F07.reference\u002F03.calls\u002F02.get-call",{"title":377,"path":378,"stem":379},"Descarregar a gravação","\u002Fpt\u002Fapi\u002Freference\u002Fcalls\u002Fget-call-recording","pt\u002F12.api\u002F07.reference\u002F03.calls\u002F03.get-call-recording",{"title":381,"path":382,"stem":383,"children":384},"Chamadas de saída","\u002Fpt\u002Fapi\u002Freference\u002Foutbound-calls","pt\u002F12.api\u002F07.reference\u002F04.outbound-calls\u002Findex",[385,386,390,394],{"title":381,"path":382,"stem":383},{"title":387,"path":388,"stem":389},"Fazer uma chamada de saída","\u002Fpt\u002Fapi\u002Freference\u002Foutbound-calls\u002Fcreate-outbound-call","pt\u002F12.api\u002F07.reference\u002F04.outbound-calls\u002F01.create-outbound-call",{"title":391,"path":392,"stem":393},"Ver uma chamada de saída","\u002Fpt\u002Fapi\u002Freference\u002Foutbound-calls\u002Fget-outbound-call","pt\u002F12.api\u002F07.reference\u002F04.outbound-calls\u002F02.get-outbound-call",{"title":395,"path":396,"stem":397},"Desligar uma chamada de saída","\u002Fpt\u002Fapi\u002Freference\u002Foutbound-calls\u002Fhang-up-outbound-call","pt\u002F12.api\u002F07.reference\u002F04.outbound-calls\u002F03.hang-up-outbound-call",{"title":399,"path":400,"stem":401,"children":402},"Campanhas","\u002Fpt\u002Fapi\u002Freference\u002Fcampaigns","pt\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},"Listar campanhas","\u002Fpt\u002Fapi\u002Freference\u002Fcampaigns\u002Flist-campaigns","pt\u002F12.api\u002F07.reference\u002F05.campaigns\u002F01.list-campaigns",{"title":409,"path":410,"stem":411},"Criar uma campanha","\u002Fpt\u002Fapi\u002Freference\u002Fcampaigns\u002Fcreate-campaign","pt\u002F12.api\u002F07.reference\u002F05.campaigns\u002F02.create-campaign",{"title":413,"path":414,"stem":415},"Ver uma campanha","\u002Fpt\u002Fapi\u002Freference\u002Fcampaigns\u002Fget-campaign","pt\u002F12.api\u002F07.reference\u002F05.campaigns\u002F03.get-campaign",{"title":417,"path":418,"stem":419},"Acrescentar destinatários","\u002Fpt\u002Fapi\u002Freference\u002Fcampaigns\u002Fadd-campaign-recipients","pt\u002F12.api\u002F07.reference\u002F05.campaigns\u002F04.add-campaign-recipients",{"title":421,"path":422,"stem":423},"Listar destinatários","\u002Fpt\u002Fapi\u002Freference\u002Fcampaigns\u002Flist-campaign-recipients","pt\u002F12.api\u002F07.reference\u002F05.campaigns\u002F05.list-campaign-recipients",{"title":425,"path":426,"stem":427},"Iniciar uma campanha","\u002Fpt\u002Fapi\u002Freference\u002Fcampaigns\u002Fstart-campaign","pt\u002F12.api\u002F07.reference\u002F05.campaigns\u002F06.start-campaign",{"title":429,"path":430,"stem":431},"Pausar uma campanha","\u002Fpt\u002Fapi\u002Freference\u002Fcampaigns\u002Fpause-campaign","pt\u002F12.api\u002F07.reference\u002F05.campaigns\u002F07.pause-campaign",{"title":433,"path":434,"stem":435},"Retomar uma campanha","\u002Fpt\u002Fapi\u002Freference\u002Fcampaigns\u002Fresume-campaign","pt\u002F12.api\u002F07.reference\u002F05.campaigns\u002F08.resume-campaign",{"title":437,"path":438,"stem":439},"Cancelar uma campanha","\u002Fpt\u002Fapi\u002Freference\u002Fcampaigns\u002Fcancel-campaign","pt\u002F12.api\u002F07.reference\u002F05.campaigns\u002F09.cancel-campaign",{"title":441,"path":442,"stem":443,"children":444},"Chat","\u002Fpt\u002Fapi\u002Freference\u002Fchats","pt\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},"Criar uma conversa","\u002Fpt\u002Fapi\u002Freference\u002Fchats\u002Fcreate-chat","pt\u002F12.api\u002F07.reference\u002F06.chats\u002F01.create-chat",{"title":451,"path":452,"stem":453},"Enviar uma mensagem","\u002Fpt\u002Fapi\u002Freference\u002Fchats\u002Fsend-chat-message","pt\u002F12.api\u002F07.reference\u002F06.chats\u002F02.send-chat-message",{"title":455,"path":456,"stem":457},"Ver uma conversa","\u002Fpt\u002Fapi\u002Freference\u002Fchats\u002Fget-chat","pt\u002F12.api\u002F07.reference\u002F06.chats\u002F03.get-chat",{"title":459,"path":460,"stem":461},"Listar conversas","\u002Fpt\u002Fapi\u002Freference\u002Fchats\u002Flist-chats","pt\u002F12.api\u002F07.reference\u002F06.chats\u002F04.list-chats",{"title":463,"path":464,"stem":465},"Terminar uma conversa","\u002Fpt\u002Fapi\u002Freference\u002Fchats\u002Fend-chat","pt\u002F12.api\u002F07.reference\u002F06.chats\u002F05.end-chat",{"title":266,"path":467,"stem":468,"children":469},"\u002Fpt\u002Fapi\u002Freference\u002Fanalytics","pt\u002F12.api\u002F07.reference\u002F07.analytics\u002Findex",[470,471],{"title":266,"path":467,"stem":468},{"title":472,"path":473,"stem":474},"Resumo das análises","\u002Fpt\u002Fapi\u002Freference\u002Fanalytics\u002Fget-overview","pt\u002F12.api\u002F07.reference\u002F07.analytics\u002F01.get-overview",{"title":476,"path":477,"stem":478,"children":479},"Números","\u002Fpt\u002Fapi\u002Freference\u002Fphone-numbers","pt\u002F12.api\u002F07.reference\u002F08.phone-numbers\u002Findex",[480,481],{"title":476,"path":477,"stem":478},{"title":482,"path":483,"stem":484},"Listar números","\u002Fpt\u002Fapi\u002Freference\u002Fphone-numbers\u002Flist-phone-numbers","pt\u002F12.api\u002F07.reference\u002F08.phone-numbers\u002F01.list-phone-numbers",{"title":486,"path":487,"stem":488,"children":489},"Conhecimento","\u002Fpt\u002Fapi\u002Freference\u002Fknowledge","pt\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},"Listar bases de conhecimento","\u002Fpt\u002Fapi\u002Freference\u002Fknowledge\u002Flist-knowledge-bases","pt\u002F12.api\u002F07.reference\u002F09.knowledge\u002F01.list-knowledge-bases",{"title":496,"path":497,"stem":498},"Criar uma base de conhecimento","\u002Fpt\u002Fapi\u002Freference\u002Fknowledge\u002Fcreate-knowledge-base","pt\u002F12.api\u002F07.reference\u002F09.knowledge\u002F02.create-knowledge-base",{"title":500,"path":501,"stem":502},"Adicionar um documento de texto","\u002Fpt\u002Fapi\u002Freference\u002Fknowledge\u002Fadd-text-document","pt\u002F12.api\u002F07.reference\u002F09.knowledge\u002F03.add-text-document",{"title":504,"path":505,"stem":506},"Importar uma página web","\u002Fpt\u002Fapi\u002Freference\u002Fknowledge\u002Fimport-url","pt\u002F12.api\u002F07.reference\u002F09.knowledge\u002F04.import-url",{"title":508,"path":509,"stem":510},"Carregar um PDF","\u002Fpt\u002Fapi\u002Freference\u002Fknowledge\u002Fupload-pdf","pt\u002F12.api\u002F07.reference\u002F09.knowledge\u002F05.upload-pdf",{"title":310,"path":512,"stem":513,"children":514},"\u002Fpt\u002Fapi\u002Freference\u002Fwebhooks","pt\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},"Listar endpoints de webhook","\u002Fpt\u002Fapi\u002Freference\u002Fwebhooks\u002Flist-webhook-endpoints","pt\u002F12.api\u002F07.reference\u002F10.webhooks\u002F01.list-webhook-endpoints",{"title":521,"path":522,"stem":523},"Registar um endpoint de webhook","\u002Fpt\u002Fapi\u002Freference\u002Fwebhooks\u002Fcreate-webhook-endpoint","pt\u002F12.api\u002F07.reference\u002F10.webhooks\u002F02.create-webhook-endpoint",{"title":525,"path":526,"stem":527},"Alterar um endpoint de webhook","\u002Fpt\u002Fapi\u002Freference\u002Fwebhooks\u002Fupdate-webhook-endpoint","pt\u002F12.api\u002F07.reference\u002F10.webhooks\u002F03.update-webhook-endpoint",{"title":529,"path":530,"stem":531},"Remover um endpoint de webhook","\u002Fpt\u002Fapi\u002Freference\u002Fwebhooks\u002Fdelete-webhook-endpoint","pt\u002F12.api\u002F07.reference\u002F10.webhooks\u002F04.delete-webhook-endpoint",{"title":533,"path":534,"stem":535},"Testar um endpoint de webhook","\u002Fpt\u002Fapi\u002Freference\u002Fwebhooks\u002Ftest-webhook-endpoint","pt\u002F12.api\u002F07.reference\u002F10.webhooks\u002F05.test-webhook-endpoint",{"title":537,"path":538,"stem":539,"children":540},"Guias da API","\u002Fpt\u002Fapi\u002Fguides","pt\u002F12.api\u002F08.guides\u002Findex",[541,542,546,550],{"title":537,"path":538,"stem":539},{"title":543,"path":544,"stem":545},"Sincronizar chamadas com o CRM","\u002Fpt\u002Fapi\u002Fguides\u002Fsync-calls-crm","pt\u002F12.api\u002F08.guides\u002F01.sync-calls-crm",{"title":547,"path":548,"stem":549},"Exportar o histórico de chamadas","\u002Fpt\u002Fapi\u002Fguides\u002Fexport-call-history","pt\u002F12.api\u002F08.guides\u002F02.export-call-history",{"title":551,"path":552,"stem":553},"Alimentar o conhecimento a partir do site","\u002Fpt\u002Fapi\u002Fguides\u002Fknowledge-from-website","pt\u002F12.api\u002F08.guides\u002F03.knowledge-from-website",{"title":555,"path":556,"stem":557},"Versões e alterações","\u002Fpt\u002Fapi\u002Fchangelog","pt\u002F12.api\u002F09.changelog",{"title":559,"path":560,"stem":561},"OAuth para plataformas parceiras","\u002Fpt\u002Fapi\u002Foauth","pt\u002F12.api\u002F10.oauth",{"title":563,"path":564,"stem":565,"children":566},"Integrações","\u002Fpt\u002Fintegrations","pt\u002F13.integrations\u002Findex",[567,568],{"title":563,"path":564,"stem":565},{"title":569,"path":570,"stem":571},"Cal.com","\u002Fpt\u002Fintegrations\u002Fcalcom","pt\u002F13.integrations\u002F01.calcom",{"title":573,"path":574,"stem":575,"children":576},"Telefonia","\u002Fpt\u002Ftelephony","pt\u002F14.telephony\u002Findex",[577,578,582,586,590,594,597,601,605,609],{"title":573,"path":574,"stem":575},{"title":579,"path":580,"stem":581},"Números de telefone","\u002Fpt\u002Ftelephony\u002Fnumbers","pt\u002F14.telephony\u002F01.numbers",{"title":583,"path":584,"stem":585},"Ligar por SIP","\u002Fpt\u002Ftelephony\u002Fsip-trunk","pt\u002F14.telephony\u002F02.sip-trunk",{"title":587,"path":588,"stem":589},"Chamadas telefónicas","\u002Fpt\u002Ftelephony\u002Fphone-calls","pt\u002F14.telephony\u002F03.phone-calls",{"title":591,"path":592,"stem":593},"Configuração de chamada","\u002Fpt\u002Ftelephony\u002Fcall-settings","pt\u002F14.telephony\u002F04.call-settings",{"title":399,"path":595,"stem":596},"\u002Fpt\u002Ftelephony\u002Fcampaigns","pt\u002F14.telephony\u002F05.campaigns",{"title":598,"path":599,"stem":600},"Chamadas em simultâneo","\u002Fpt\u002Ftelephony\u002Fconcurrency","pt\u002F14.telephony\u002F06.concurrency",{"title":602,"path":603,"stem":604},"Transferências","\u002Fpt\u002Ftelephony\u002Ftransfers","pt\u002F14.telephony\u002F07.transfers",{"title":606,"path":607,"stem":608},"Webhooks do agente","\u002Fpt\u002Ftelephony\u002Fwebhooks","pt\u002F14.telephony\u002F08.webhooks",{"title":610,"path":611,"stem":612},"Erros e motivos de fim","\u002Fpt\u002Ftelephony\u002Ferrors","pt\u002F14.telephony\u002F09.errors",{"title":614,"path":615,"stem":616,"children":617},"Definições","\u002Fpt\u002Fsettings","pt\u002F15.settings\u002Findex",[618,619,623,627,631,635,639,643,647,651,654,658],{"title":614,"path":615,"stem":616},{"title":620,"path":621,"stem":622},"Perfil","\u002Fpt\u002Fsettings\u002Fpersonal-profile","pt\u002F15.settings\u002F01.personal-profile",{"title":624,"path":625,"stem":626},"Credenciais","\u002Fpt\u002Fsettings\u002Fcredentials","pt\u002F15.settings\u002F02.credentials",{"title":628,"path":629,"stem":630},"Password","\u002Fpt\u002Fsettings\u002Fpassword","pt\u002F15.settings\u002F03.password",{"title":632,"path":633,"stem":634},"Autenticação de dois fatores","\u002Fpt\u002Fsettings\u002Ftwo-factor","pt\u002F15.settings\u002F04.two-factor",{"title":636,"path":637,"stem":638},"Sessões ativas","\u002Fpt\u002Fsettings\u002Fsessions","pt\u002F15.settings\u002F05.sessions",{"title":640,"path":641,"stem":642},"Empresa","\u002Fpt\u002Fsettings\u002Fcompany","pt\u002F15.settings\u002F06.company",{"title":644,"path":645,"stem":646},"Organização","\u002Fpt\u002Fsettings\u002Forganization","pt\u002F15.settings\u002F07.organization",{"title":648,"path":649,"stem":650},"Membros","\u002Fpt\u002Fsettings\u002Fmembers","pt\u002F15.settings\u002F08.members",{"title":563,"path":652,"stem":653},"\u002Fpt\u002Fsettings\u002Fintegrations","pt\u002F15.settings\u002F09.integrations",{"title":655,"path":656,"stem":657},"Chaves API","\u002Fpt\u002Fsettings\u002Fapi-keys","pt\u002F15.settings\u002F10.api-keys",{"title":659,"path":660,"stem":661},"Aplicações ligadas e Apps OAuth","\u002Fpt\u002Fsettings\u002Fconnected-apps","pt\u002F15.settings\u002F11.connected-apps",{"title":663,"path":664,"stem":665,"children":666},"Problemas frequentes","\u002Fpt\u002Ftroubleshooting","pt\u002F16.troubleshooting\u002Findex",[667,668,672,676,680,684,688],{"title":663,"path":664,"stem":665},{"title":669,"path":670,"stem":671},"Agente não atende","\u002Fpt\u002Ftroubleshooting\u002Fagent-not-answering","pt\u002F16.troubleshooting\u002F01.agent-not-answering",{"title":673,"path":674,"stem":675},"Chamadas caem","\u002Fpt\u002Ftroubleshooting\u002Fcalls-drop","pt\u002F16.troubleshooting\u002F02.calls-drop",{"title":677,"path":678,"stem":679},"Fluxo não publica","\u002Fpt\u002Ftroubleshooting\u002Fflow-not-publishing","pt\u002F16.troubleshooting\u002F03.flow-not-publishing",{"title":681,"path":682,"stem":683},"Conhecimento não responde","\u002Fpt\u002Ftroubleshooting\u002Fkb-not-answering","pt\u002F16.troubleshooting\u002F04.kb-not-answering",{"title":685,"path":686,"stem":687},"Integração não liga","\u002Fpt\u002Ftroubleshooting\u002Fintegration-not-connecting","pt\u002F16.troubleshooting\u002F05.integration-not-connecting",{"title":689,"path":690,"stem":691},"Testes falham","\u002Fpt\u002Ftroubleshooting\u002Ftests-failing","pt\u002F16.troubleshooting\u002F06.tests-failing",{"title":693,"path":694,"stem":695,"children":696,"page":705},"Legal","\u002Fpt\u002Flegal","pt\u002F17.legal",[697,701],{"title":698,"path":699,"stem":700},"Política de Privacidade","\u002Fpt\u002Flegal\u002Fprivacy","pt\u002F17.legal\u002F01.privacy",{"title":702,"path":703,"stem":704},"Termos e Condições","\u002Fpt\u002Flegal\u002Fterms","pt\u002F17.legal\u002F02.terms",false,{"id":707,"title":547,"body":708,"description":2228,"extension":2229,"links":2230,"meta":2231,"navigation":802,"path":548,"seo":2232,"stem":549,"__hash__":2233},"docs_pt\u002Fpt\u002F12.api\u002F08.guides\u002F02.export-call-history.md",{"type":709,"value":710,"toc":2221},"minimark",[711,728,733,760,764,1965,2022,2026,2029,2172,2185,2189,2202,2206,2217],[712,713,714,715,722,723,727],"p",{},"Este guia exporta as chamadas da organização com ",[716,717,718],"a",{"href":370},[719,720,721],"code",{},"GET \u002Fv1\u002Fcalls",". Usa a ",[716,724,726],{"href":725},"\u002Fpt\u002Fapi\u002Fapi-channel#pagina%C3%A7%C3%A3o","paginação por cursor",", que custa o mesmo em qualquer página, mesmo com centenas de milhares de chamadas.",[729,730,732],"h2",{"id":731},"antes-de-começar","Antes de começar",[734,735,736,753],"ul",{},[737,738,739,740,743,744,748,749,752],"li",{},"Uma ",[716,741,742],{"href":307},"chave API"," com o âmbito ",[745,746,747],"strong",{},"Chamadas e transcrições"," (",[719,750,751],{},"calls:read",").",[737,754,755,756,759],{},"Python 3.11 ou superior com ",[719,757,758],{},"requests",", ou Node.js 18 ou superior.",[729,761,763],{"id":762},"exportar-para-csv","Exportar para CSV",[765,766,767,1002],"code-group",{},[768,769,775],"pre",{"className":770,"code":771,"filename":772,"language":773,"meta":774,"style":774},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import csv\nimport os\nimport time\n\nimport requests\n\nAPI = \"https:\u002F\u002Fapi.diska.ai\u002Fv1\"\nFIELDS = [\n    \"id\", \"started_at\", \"ended_at\", \"duration_seconds\", \"channel\", \"direction\", \"status\",\n    \"agent_name\", \"caller_name\", \"caller_contact\", \"end_reason\", \"summary\",\n]\nsession = requests.Session()\nsession.headers[\"Authorization\"] = f\"Bearer {os.environ['DISKA_API_KEY']}\"\n\n\ndef get(path: str, params: dict | None = None) -> dict:\n    while True:\n        response = session.get(f\"{API}{path}\", params=params, timeout=60)\n        if response.status_code == 429:  # limite de pedidos: espere o que a API indica\n            time.sleep(int(response.headers.get(\"Retry-After\", \"5\")))\n            continue\n        response.raise_for_status()\n        return response.json()\n\n\nparams = {\"cursor\": \"start\", \"limit\": 200}  # filtros opcionais: agent_id, status, channel\ntotal = 0\nwith open(\"chamadas.csv\", \"w\", newline=\"\", encoding=\"utf-8\") as file:\n    writer = csv.DictWriter(file, fieldnames=FIELDS, extrasaction=\"ignore\")\n    writer.writeheader()\n    while True:\n        page = get(\"\u002Fcalls\", params)\n        writer.writerows(page[\"items\"])\n        total += len(page[\"items\"])\n        if not page[\"next_cursor\"]:\n            break\n        params[\"cursor\"] = page[\"next_cursor\"]\nprint(f\"{total} chamadas exportadas para chamadas.csv\")\n","Python","python","",[719,776,777,785,791,797,804,810,815,821,827,833,839,845,851,857,862,867,873,879,885,891,897,903,909,915,920,925,931,937,943,949,955,960,966,972,978,984,990,996],{"__ignoreMap":774},[778,779,782],"span",{"class":780,"line":781},"line",1,[778,783,784],{},"import csv\n",[778,786,788],{"class":780,"line":787},2,[778,789,790],{},"import os\n",[778,792,794],{"class":780,"line":793},3,[778,795,796],{},"import time\n",[778,798,800],{"class":780,"line":799},4,[778,801,803],{"emptyLinePlaceholder":802},true,"\n",[778,805,807],{"class":780,"line":806},5,[778,808,809],{},"import requests\n",[778,811,813],{"class":780,"line":812},6,[778,814,803],{"emptyLinePlaceholder":802},[778,816,818],{"class":780,"line":817},7,[778,819,820],{},"API = \"https:\u002F\u002Fapi.diska.ai\u002Fv1\"\n",[778,822,824],{"class":780,"line":823},8,[778,825,826],{},"FIELDS = [\n",[778,828,830],{"class":780,"line":829},9,[778,831,832],{},"    \"id\", \"started_at\", \"ended_at\", \"duration_seconds\", \"channel\", \"direction\", \"status\",\n",[778,834,836],{"class":780,"line":835},10,[778,837,838],{},"    \"agent_name\", \"caller_name\", \"caller_contact\", \"end_reason\", \"summary\",\n",[778,840,842],{"class":780,"line":841},11,[778,843,844],{},"]\n",[778,846,848],{"class":780,"line":847},12,[778,849,850],{},"session = requests.Session()\n",[778,852,854],{"class":780,"line":853},13,[778,855,856],{},"session.headers[\"Authorization\"] = f\"Bearer {os.environ['DISKA_API_KEY']}\"\n",[778,858,860],{"class":780,"line":859},14,[778,861,803],{"emptyLinePlaceholder":802},[778,863,865],{"class":780,"line":864},15,[778,866,803],{"emptyLinePlaceholder":802},[778,868,870],{"class":780,"line":869},16,[778,871,872],{},"def get(path: str, params: dict | None = None) -> dict:\n",[778,874,876],{"class":780,"line":875},17,[778,877,878],{},"    while True:\n",[778,880,882],{"class":780,"line":881},18,[778,883,884],{},"        response = session.get(f\"{API}{path}\", params=params, timeout=60)\n",[778,886,888],{"class":780,"line":887},19,[778,889,890],{},"        if response.status_code == 429:  # limite de pedidos: espere o que a API indica\n",[778,892,894],{"class":780,"line":893},20,[778,895,896],{},"            time.sleep(int(response.headers.get(\"Retry-After\", \"5\")))\n",[778,898,900],{"class":780,"line":899},21,[778,901,902],{},"            continue\n",[778,904,906],{"class":780,"line":905},22,[778,907,908],{},"        response.raise_for_status()\n",[778,910,912],{"class":780,"line":911},23,[778,913,914],{},"        return response.json()\n",[778,916,918],{"class":780,"line":917},24,[778,919,803],{"emptyLinePlaceholder":802},[778,921,923],{"class":780,"line":922},25,[778,924,803],{"emptyLinePlaceholder":802},[778,926,928],{"class":780,"line":927},26,[778,929,930],{},"params = {\"cursor\": \"start\", \"limit\": 200}  # filtros opcionais: agent_id, status, channel\n",[778,932,934],{"class":780,"line":933},27,[778,935,936],{},"total = 0\n",[778,938,940],{"class":780,"line":939},28,[778,941,942],{},"with open(\"chamadas.csv\", \"w\", newline=\"\", encoding=\"utf-8\") as file:\n",[778,944,946],{"class":780,"line":945},29,[778,947,948],{},"    writer = csv.DictWriter(file, fieldnames=FIELDS, extrasaction=\"ignore\")\n",[778,950,952],{"class":780,"line":951},30,[778,953,954],{},"    writer.writeheader()\n",[778,956,958],{"class":780,"line":957},31,[778,959,878],{},[778,961,963],{"class":780,"line":962},32,[778,964,965],{},"        page = get(\"\u002Fcalls\", params)\n",[778,967,969],{"class":780,"line":968},33,[778,970,971],{},"        writer.writerows(page[\"items\"])\n",[778,973,975],{"class":780,"line":974},34,[778,976,977],{},"        total += len(page[\"items\"])\n",[778,979,981],{"class":780,"line":980},35,[778,982,983],{},"        if not page[\"next_cursor\"]:\n",[778,985,987],{"class":780,"line":986},36,[778,988,989],{},"            break\n",[778,991,993],{"class":780,"line":992},37,[778,994,995],{},"        params[\"cursor\"] = page[\"next_cursor\"]\n",[778,997,999],{"class":780,"line":998},38,[778,1000,1001],{},"print(f\"{total} chamadas exportadas para chamadas.csv\")\n",[768,1003,1008],{"className":1004,"code":1005,"filename":1006,"language":1007,"meta":774,"style":774},"language-js shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F Node.js 18 ou superior, num ficheiro .mjs\nimport { createWriteStream } from 'node:fs'\nimport { setTimeout as sleep } from 'node:timers\u002Fpromises'\n\nconst API = 'https:\u002F\u002Fapi.diska.ai\u002Fv1'\nconst FIELDS = ['id', 'started_at', 'ended_at', 'duration_seconds', 'channel', 'direction', 'status',\n  'agent_name', 'caller_name', 'caller_contact', 'end_reason', 'summary']\n\nasync function get(path, params) {\n  for (;;) {\n    const response = await fetch(`${API}${path}?${new URLSearchParams(params)}`, {\n      headers: { Authorization: `Bearer ${process.env.DISKA_API_KEY}` }\n    })\n    if (response.status === 429) { \u002F\u002F limite de pedidos: espere o que a API indica\n      await sleep(1000 * Number(response.headers.get('retry-after') || 5))\n      continue\n    }\n    if (!response.ok) throw new Error(`${response.status} ${await response.text()}`)\n    return response.json()\n  }\n}\n\nconst cell = value => `\"${String(value ?? '').replaceAll('\"', '\"\"')}\"`\nconst out = createWriteStream('chamadas.csv')\nout.write(FIELDS.join(',') + '\\n')\nconst params = { cursor: 'start', limit: 200 } \u002F\u002F filtros opcionais: agent_id, status, channel\nlet total = 0\nfor (;;) {\n  const page = await get('\u002Fcalls', params)\n  for (const call of page.items) out.write(FIELDS.map(f => cell(call[f])).join(',') + '\\n')\n  total += page.items.length\n  if (!page.next_cursor) break\n  params.cursor = page.next_cursor\n}\nout.end()\nconsole.log(`${total} chamadas exportadas para chamadas.csv`)\n","Node.js","js",[719,1009,1010,1016,1046,1072,1076,1095,1173,1221,1225,1255,1272,1326,1368,1376,1405,1457,1462,1467,1526,1541,1546,1551,1555,1622,1644,1684,1722,1735,1748,1777,1863,1882,1904,1923,1927,1938],{"__ignoreMap":774},[778,1011,1012],{"class":780,"line":781},[778,1013,1015],{"class":1014},"sHwdD","\u002F\u002F Node.js 18 ou superior, num ficheiro .mjs\n",[778,1017,1018,1022,1026,1030,1033,1036,1039,1043],{"class":780,"line":787},[778,1019,1021],{"class":1020},"s7zQu","import",[778,1023,1025],{"class":1024},"sMK4o"," {",[778,1027,1029],{"class":1028},"sTEyZ"," createWriteStream",[778,1031,1032],{"class":1024}," }",[778,1034,1035],{"class":1020}," from",[778,1037,1038],{"class":1024}," '",[778,1040,1042],{"class":1041},"sfazB","node:fs",[778,1044,1045],{"class":1024},"'\n",[778,1047,1048,1050,1052,1055,1058,1061,1063,1065,1067,1070],{"class":780,"line":793},[778,1049,1021],{"class":1020},[778,1051,1025],{"class":1024},[778,1053,1054],{"class":1028}," setTimeout",[778,1056,1057],{"class":1020}," as",[778,1059,1060],{"class":1028}," sleep",[778,1062,1032],{"class":1024},[778,1064,1035],{"class":1020},[778,1066,1038],{"class":1024},[778,1068,1069],{"class":1041},"node:timers\u002Fpromises",[778,1071,1045],{"class":1024},[778,1073,1074],{"class":780,"line":799},[778,1075,803],{"emptyLinePlaceholder":802},[778,1077,1078,1082,1085,1088,1090,1093],{"class":780,"line":806},[778,1079,1081],{"class":1080},"spNyl","const",[778,1083,1084],{"class":1028}," API ",[778,1086,1087],{"class":1024},"=",[778,1089,1038],{"class":1024},[778,1091,1092],{"class":1041},"https:\u002F\u002Fapi.diska.ai\u002Fv1",[778,1094,1045],{"class":1024},[778,1096,1097,1099,1102,1104,1107,1110,1113,1115,1118,1120,1123,1125,1127,1129,1132,1134,1136,1138,1141,1143,1145,1147,1150,1152,1154,1156,1159,1161,1163,1165,1168,1170],{"class":780,"line":812},[778,1098,1081],{"class":1080},[778,1100,1101],{"class":1028}," FIELDS ",[778,1103,1087],{"class":1024},[778,1105,1106],{"class":1028}," [",[778,1108,1109],{"class":1024},"'",[778,1111,1112],{"class":1041},"id",[778,1114,1109],{"class":1024},[778,1116,1117],{"class":1024},",",[778,1119,1038],{"class":1024},[778,1121,1122],{"class":1041},"started_at",[778,1124,1109],{"class":1024},[778,1126,1117],{"class":1024},[778,1128,1038],{"class":1024},[778,1130,1131],{"class":1041},"ended_at",[778,1133,1109],{"class":1024},[778,1135,1117],{"class":1024},[778,1137,1038],{"class":1024},[778,1139,1140],{"class":1041},"duration_seconds",[778,1142,1109],{"class":1024},[778,1144,1117],{"class":1024},[778,1146,1038],{"class":1024},[778,1148,1149],{"class":1041},"channel",[778,1151,1109],{"class":1024},[778,1153,1117],{"class":1024},[778,1155,1038],{"class":1024},[778,1157,1158],{"class":1041},"direction",[778,1160,1109],{"class":1024},[778,1162,1117],{"class":1024},[778,1164,1038],{"class":1024},[778,1166,1167],{"class":1041},"status",[778,1169,1109],{"class":1024},[778,1171,1172],{"class":1024},",\n",[778,1174,1175,1178,1181,1183,1185,1187,1190,1192,1194,1196,1199,1201,1203,1205,1208,1210,1212,1214,1217,1219],{"class":780,"line":817},[778,1176,1177],{"class":1024},"  '",[778,1179,1180],{"class":1041},"agent_name",[778,1182,1109],{"class":1024},[778,1184,1117],{"class":1024},[778,1186,1038],{"class":1024},[778,1188,1189],{"class":1041},"caller_name",[778,1191,1109],{"class":1024},[778,1193,1117],{"class":1024},[778,1195,1038],{"class":1024},[778,1197,1198],{"class":1041},"caller_contact",[778,1200,1109],{"class":1024},[778,1202,1117],{"class":1024},[778,1204,1038],{"class":1024},[778,1206,1207],{"class":1041},"end_reason",[778,1209,1109],{"class":1024},[778,1211,1117],{"class":1024},[778,1213,1038],{"class":1024},[778,1215,1216],{"class":1041},"summary",[778,1218,1109],{"class":1024},[778,1220,844],{"class":1028},[778,1222,1223],{"class":780,"line":823},[778,1224,803],{"emptyLinePlaceholder":802},[778,1226,1227,1230,1233,1237,1240,1244,1246,1249,1252],{"class":780,"line":829},[778,1228,1229],{"class":1080},"async",[778,1231,1232],{"class":1080}," function",[778,1234,1236],{"class":1235},"s2Zo4"," get",[778,1238,1239],{"class":1024},"(",[778,1241,1243],{"class":1242},"sHdIc","path",[778,1245,1117],{"class":1024},[778,1247,1248],{"class":1242}," params",[778,1250,1251],{"class":1024},")",[778,1253,1254],{"class":1024}," {\n",[778,1256,1257,1260,1263,1266,1269],{"class":780,"line":835},[778,1258,1259],{"class":1020},"  for",[778,1261,748],{"class":1262},"swJcz",[778,1264,1265],{"class":1024},";;",[778,1267,1268],{"class":1262},") ",[778,1270,1271],{"class":1024},"{\n",[778,1273,1274,1277,1280,1283,1286,1289,1291,1294,1296,1299,1301,1304,1307,1310,1313,1316,1319,1322,1324],{"class":780,"line":841},[778,1275,1276],{"class":1080},"    const",[778,1278,1279],{"class":1028}," response",[778,1281,1282],{"class":1024}," =",[778,1284,1285],{"class":1020}," await",[778,1287,1288],{"class":1235}," fetch",[778,1290,1239],{"class":1262},[778,1292,1293],{"class":1024},"`${",[778,1295,292],{"class":1028},[778,1297,1298],{"class":1024},"}${",[778,1300,1243],{"class":1028},[778,1302,1303],{"class":1024},"}",[778,1305,1306],{"class":1041},"?",[778,1308,1309],{"class":1024},"${",[778,1311,1312],{"class":1024},"new",[778,1314,1315],{"class":1235}," URLSearchParams",[778,1317,1318],{"class":1028},"(params)",[778,1320,1321],{"class":1024},"}`",[778,1323,1117],{"class":1024},[778,1325,1254],{"class":1024},[778,1327,1328,1331,1334,1336,1339,1341,1344,1347,1349,1352,1355,1358,1360,1363,1365],{"class":780,"line":847},[778,1329,1330],{"class":1262},"      headers",[778,1332,1333],{"class":1024},":",[778,1335,1025],{"class":1024},[778,1337,1338],{"class":1262}," Authorization",[778,1340,1333],{"class":1024},[778,1342,1343],{"class":1024}," `",[778,1345,1346],{"class":1041},"Bearer ",[778,1348,1309],{"class":1024},[778,1350,1351],{"class":1028},"process",[778,1353,1354],{"class":1024},".",[778,1356,1357],{"class":1028},"env",[778,1359,1354],{"class":1024},[778,1361,1362],{"class":1028},"DISKA_API_KEY",[778,1364,1321],{"class":1024},[778,1366,1367],{"class":1024}," }\n",[778,1369,1370,1373],{"class":780,"line":853},[778,1371,1372],{"class":1024},"    }",[778,1374,1375],{"class":1262},")\n",[778,1377,1378,1381,1383,1386,1388,1390,1393,1397,1399,1402],{"class":780,"line":859},[778,1379,1380],{"class":1020},"    if",[778,1382,748],{"class":1262},[778,1384,1385],{"class":1028},"response",[778,1387,1354],{"class":1024},[778,1389,1167],{"class":1028},[778,1391,1392],{"class":1024}," ===",[778,1394,1396],{"class":1395},"sbssI"," 429",[778,1398,1268],{"class":1262},[778,1400,1401],{"class":1024},"{",[778,1403,1404],{"class":1014}," \u002F\u002F limite de pedidos: espere o que a API indica\n",[778,1406,1407,1410,1412,1414,1417,1420,1423,1425,1427,1429,1432,1434,1437,1439,1441,1444,1446,1448,1451,1454],{"class":780,"line":864},[778,1408,1409],{"class":1020},"      await",[778,1411,1060],{"class":1235},[778,1413,1239],{"class":1262},[778,1415,1416],{"class":1395},"1000",[778,1418,1419],{"class":1024}," *",[778,1421,1422],{"class":1235}," Number",[778,1424,1239],{"class":1262},[778,1426,1385],{"class":1028},[778,1428,1354],{"class":1024},[778,1430,1431],{"class":1028},"headers",[778,1433,1354],{"class":1024},[778,1435,1436],{"class":1235},"get",[778,1438,1239],{"class":1262},[778,1440,1109],{"class":1024},[778,1442,1443],{"class":1041},"retry-after",[778,1445,1109],{"class":1024},[778,1447,1268],{"class":1262},[778,1449,1450],{"class":1024},"||",[778,1452,1453],{"class":1395}," 5",[778,1455,1456],{"class":1262},"))\n",[778,1458,1459],{"class":780,"line":869},[778,1460,1461],{"class":1020},"      continue\n",[778,1463,1464],{"class":780,"line":875},[778,1465,1466],{"class":1024},"    }\n",[778,1468,1469,1471,1473,1476,1478,1480,1483,1485,1488,1491,1494,1496,1498,1500,1502,1504,1506,1509,1512,1514,1516,1519,1522,1524],{"class":780,"line":881},[778,1470,1380],{"class":1020},[778,1472,748],{"class":1262},[778,1474,1475],{"class":1024},"!",[778,1477,1385],{"class":1028},[778,1479,1354],{"class":1024},[778,1481,1482],{"class":1028},"ok",[778,1484,1268],{"class":1262},[778,1486,1487],{"class":1020},"throw",[778,1489,1490],{"class":1024}," new",[778,1492,1493],{"class":1235}," Error",[778,1495,1239],{"class":1262},[778,1497,1293],{"class":1024},[778,1499,1385],{"class":1028},[778,1501,1354],{"class":1024},[778,1503,1167],{"class":1028},[778,1505,1303],{"class":1024},[778,1507,1508],{"class":1024}," ${",[778,1510,1511],{"class":1020},"await",[778,1513,1279],{"class":1028},[778,1515,1354],{"class":1024},[778,1517,1518],{"class":1235},"text",[778,1520,1521],{"class":1028},"()",[778,1523,1321],{"class":1024},[778,1525,1375],{"class":1262},[778,1527,1528,1531,1533,1535,1538],{"class":780,"line":887},[778,1529,1530],{"class":1020},"    return",[778,1532,1279],{"class":1028},[778,1534,1354],{"class":1024},[778,1536,1537],{"class":1235},"json",[778,1539,1540],{"class":1262},"()\n",[778,1542,1543],{"class":780,"line":893},[778,1544,1545],{"class":1024},"  }\n",[778,1547,1548],{"class":780,"line":899},[778,1549,1550],{"class":1024},"}\n",[778,1552,1553],{"class":780,"line":905},[778,1554,803],{"emptyLinePlaceholder":802},[778,1556,1557,1559,1562,1564,1567,1570,1572,1575,1577,1580,1583,1586,1589,1591,1593,1596,1598,1600,1602,1604,1606,1608,1611,1613,1615,1617,1619],{"class":780,"line":911},[778,1558,1081],{"class":1080},[778,1560,1561],{"class":1028}," cell ",[778,1563,1087],{"class":1024},[778,1565,1566],{"class":1242}," value",[778,1568,1569],{"class":1080}," =>",[778,1571,1343],{"class":1024},[778,1573,1574],{"class":1041},"\"",[778,1576,1309],{"class":1024},[778,1578,1579],{"class":1235},"String",[778,1581,1582],{"class":1028},"(value ",[778,1584,1585],{"class":1024},"??",[778,1587,1588],{"class":1024}," ''",[778,1590,1251],{"class":1028},[778,1592,1354],{"class":1024},[778,1594,1595],{"class":1235},"replaceAll",[778,1597,1239],{"class":1028},[778,1599,1109],{"class":1024},[778,1601,1574],{"class":1041},[778,1603,1109],{"class":1024},[778,1605,1117],{"class":1024},[778,1607,1038],{"class":1024},[778,1609,1610],{"class":1041},"\"\"",[778,1612,1109],{"class":1024},[778,1614,1251],{"class":1028},[778,1616,1303],{"class":1024},[778,1618,1574],{"class":1041},[778,1620,1621],{"class":1024},"`\n",[778,1623,1624,1626,1629,1631,1633,1635,1637,1640,1642],{"class":780,"line":917},[778,1625,1081],{"class":1080},[778,1627,1628],{"class":1028}," out ",[778,1630,1087],{"class":1024},[778,1632,1029],{"class":1235},[778,1634,1239],{"class":1028},[778,1636,1109],{"class":1024},[778,1638,1639],{"class":1041},"chamadas.csv",[778,1641,1109],{"class":1024},[778,1643,1375],{"class":1028},[778,1645,1646,1649,1651,1654,1657,1659,1662,1664,1666,1668,1670,1672,1675,1677,1680,1682],{"class":780,"line":922},[778,1647,1648],{"class":1028},"out",[778,1650,1354],{"class":1024},[778,1652,1653],{"class":1235},"write",[778,1655,1656],{"class":1028},"(FIELDS",[778,1658,1354],{"class":1024},[778,1660,1661],{"class":1235},"join",[778,1663,1239],{"class":1028},[778,1665,1109],{"class":1024},[778,1667,1117],{"class":1041},[778,1669,1109],{"class":1024},[778,1671,1268],{"class":1028},[778,1673,1674],{"class":1024},"+",[778,1676,1038],{"class":1024},[778,1678,1679],{"class":1028},"\\n",[778,1681,1109],{"class":1024},[778,1683,1375],{"class":1028},[778,1685,1686,1688,1691,1693,1695,1698,1700,1702,1705,1707,1709,1712,1714,1717,1719],{"class":780,"line":927},[778,1687,1081],{"class":1080},[778,1689,1690],{"class":1028}," params ",[778,1692,1087],{"class":1024},[778,1694,1025],{"class":1024},[778,1696,1697],{"class":1262}," cursor",[778,1699,1333],{"class":1024},[778,1701,1038],{"class":1024},[778,1703,1704],{"class":1041},"start",[778,1706,1109],{"class":1024},[778,1708,1117],{"class":1024},[778,1710,1711],{"class":1262}," limit",[778,1713,1333],{"class":1024},[778,1715,1716],{"class":1395}," 200",[778,1718,1032],{"class":1024},[778,1720,1721],{"class":1014}," \u002F\u002F filtros opcionais: agent_id, status, channel\n",[778,1723,1724,1727,1730,1732],{"class":780,"line":933},[778,1725,1726],{"class":1080},"let",[778,1728,1729],{"class":1028}," total ",[778,1731,1087],{"class":1024},[778,1733,1734],{"class":1395}," 0\n",[778,1736,1737,1740,1742,1744,1746],{"class":780,"line":939},[778,1738,1739],{"class":1020},"for",[778,1741,748],{"class":1028},[778,1743,1265],{"class":1024},[778,1745,1268],{"class":1028},[778,1747,1271],{"class":1024},[778,1749,1750,1753,1756,1758,1760,1762,1764,1766,1769,1771,1773,1775],{"class":780,"line":945},[778,1751,1752],{"class":1080},"  const",[778,1754,1755],{"class":1028}," page",[778,1757,1282],{"class":1024},[778,1759,1285],{"class":1020},[778,1761,1236],{"class":1235},[778,1763,1239],{"class":1262},[778,1765,1109],{"class":1024},[778,1767,1768],{"class":1041},"\u002Fcalls",[778,1770,1109],{"class":1024},[778,1772,1117],{"class":1024},[778,1774,1248],{"class":1028},[778,1776,1375],{"class":1262},[778,1778,1779,1781,1783,1785,1788,1791,1793,1795,1798,1800,1802,1804,1806,1808,1811,1813,1816,1818,1821,1823,1826,1828,1831,1834,1836,1839,1841,1843,1845,1847,1849,1851,1853,1855,1857,1859,1861],{"class":780,"line":951},[778,1780,1259],{"class":1020},[778,1782,748],{"class":1262},[778,1784,1081],{"class":1080},[778,1786,1787],{"class":1028}," call",[778,1789,1790],{"class":1024}," of",[778,1792,1755],{"class":1028},[778,1794,1354],{"class":1024},[778,1796,1797],{"class":1028},"items",[778,1799,1268],{"class":1262},[778,1801,1648],{"class":1028},[778,1803,1354],{"class":1024},[778,1805,1653],{"class":1235},[778,1807,1239],{"class":1262},[778,1809,1810],{"class":1028},"FIELDS",[778,1812,1354],{"class":1024},[778,1814,1815],{"class":1235},"map",[778,1817,1239],{"class":1262},[778,1819,1820],{"class":1242},"f",[778,1822,1569],{"class":1080},[778,1824,1825],{"class":1235}," cell",[778,1827,1239],{"class":1262},[778,1829,1830],{"class":1028},"call",[778,1832,1833],{"class":1262},"[",[778,1835,1820],{"class":1028},[778,1837,1838],{"class":1262},"]))",[778,1840,1354],{"class":1024},[778,1842,1661],{"class":1235},[778,1844,1239],{"class":1262},[778,1846,1109],{"class":1024},[778,1848,1117],{"class":1041},[778,1850,1109],{"class":1024},[778,1852,1268],{"class":1262},[778,1854,1674],{"class":1024},[778,1856,1038],{"class":1024},[778,1858,1679],{"class":1028},[778,1860,1109],{"class":1024},[778,1862,1375],{"class":1262},[778,1864,1865,1868,1871,1873,1875,1877,1879],{"class":780,"line":957},[778,1866,1867],{"class":1028},"  total",[778,1869,1870],{"class":1024}," +=",[778,1872,1755],{"class":1028},[778,1874,1354],{"class":1024},[778,1876,1797],{"class":1028},[778,1878,1354],{"class":1024},[778,1880,1881],{"class":1028},"length\n",[778,1883,1884,1887,1889,1891,1894,1896,1899,1901],{"class":780,"line":962},[778,1885,1886],{"class":1020},"  if",[778,1888,748],{"class":1262},[778,1890,1475],{"class":1024},[778,1892,1893],{"class":1028},"page",[778,1895,1354],{"class":1024},[778,1897,1898],{"class":1028},"next_cursor",[778,1900,1268],{"class":1262},[778,1902,1903],{"class":1020},"break\n",[778,1905,1906,1909,1911,1914,1916,1918,1920],{"class":780,"line":968},[778,1907,1908],{"class":1028},"  params",[778,1910,1354],{"class":1024},[778,1912,1913],{"class":1028},"cursor",[778,1915,1282],{"class":1024},[778,1917,1755],{"class":1028},[778,1919,1354],{"class":1024},[778,1921,1922],{"class":1028},"next_cursor\n",[778,1924,1925],{"class":780,"line":974},[778,1926,1550],{"class":1024},[778,1928,1929,1931,1933,1936],{"class":780,"line":980},[778,1930,1648],{"class":1028},[778,1932,1354],{"class":1024},[778,1934,1935],{"class":1235},"end",[778,1937,1540],{"class":1028},[778,1939,1940,1943,1945,1948,1950,1952,1955,1957,1960,1963],{"class":780,"line":986},[778,1941,1942],{"class":1028},"console",[778,1944,1354],{"class":1024},[778,1946,1947],{"class":1235},"log",[778,1949,1239],{"class":1028},[778,1951,1293],{"class":1024},[778,1953,1954],{"class":1028},"total",[778,1956,1303],{"class":1024},[778,1958,1959],{"class":1041}," chamadas exportadas para chamadas.csv",[778,1961,1962],{"class":1024},"`",[778,1964,1375],{"class":1028},[734,1966,1967,1984,1990,2001],{},[737,1968,1969,1970,1973,1974,1976,1977,1979,1980,1983],{},"A primeira página pede ",[719,1971,1972],{},"cursor=start","; as seguintes usam o ",[719,1975,1898],{}," recebido. Quando ",[719,1978,1898],{}," vem ",[719,1981,1982],{},"null",", chegou ao fim.",[737,1985,1986,1989],{},[719,1987,1988],{},"limit=200"," é o máximo por página.",[737,1991,1992,1993,1996,1997,2000],{},"Se a API responder ",[719,1994,1995],{},"429",", o script espera o que o cabeçalho ",[719,1998,1999],{},"Retry-After"," indica e repete o pedido.",[737,2002,2003,2004,2007,2008,2011,2012,2014,2015,2017,2018,1354],{},"Para exportar só parte, acrescente filtros a ",[719,2005,2006],{},"params",": ",[719,2009,2010],{},"agent_id",", ",[719,2013,1167],{}," ou ",[719,2016,1149],{},". Veja os ",[716,2019,2021],{"href":2020},"\u002Fpt\u002Fapi\u002Freference\u002Fcalls\u002Flist-calls#par%C3%A2metros","parâmetros",[729,2023,2025],{"id":2024},"incluir-as-transcrições","Incluir as transcrições",[712,2027,2028],{},"A lista não traz a transcrição. Para a ter, peça o detalhe de cada chamada e guarde uma linha JSON por chamada:",[765,2030,2031],{},[768,2032,2034],{"className":770,"code":2033,"filename":772,"language":773,"meta":774,"style":774},"import json\nimport os\nimport time\n\nimport requests\n\nAPI = \"https:\u002F\u002Fapi.diska.ai\u002Fv1\"\nsession = requests.Session()\nsession.headers[\"Authorization\"] = f\"Bearer {os.environ['DISKA_API_KEY']}\"\n\n\ndef get(path: str, params: dict | None = None) -> dict:\n    while True:\n        response = session.get(f\"{API}{path}\", params=params, timeout=60)\n        if response.status_code == 429:\n            time.sleep(int(response.headers.get(\"Retry-After\", \"5\")))\n            continue\n        response.raise_for_status()\n        return response.json()\n\n\nparams = {\"cursor\": \"start\", \"limit\": 200, \"status\": \"completed\"}\nwith open(\"chamadas.jsonl\", \"w\", encoding=\"utf-8\") as file:\n    while True:\n        page = get(\"\u002Fcalls\", params)\n        for call in page[\"items\"]:\n            detail = get(f\"\u002Fcalls\u002F{call['id']}\")  # transcrição, acções e resultado pós-chamada\n            file.write(json.dumps(detail, ensure_ascii=False) + \"\\n\")\n            time.sleep(0.5)  # no máximo 120 pedidos por minuto por chave\n        if not page[\"next_cursor\"]:\n            break\n        params[\"cursor\"] = page[\"next_cursor\"]\n",[719,2035,2036,2041,2045,2049,2053,2057,2061,2065,2069,2073,2077,2081,2085,2089,2093,2098,2102,2106,2110,2114,2118,2122,2127,2132,2136,2140,2145,2150,2155,2160,2164,2168],{"__ignoreMap":774},[778,2037,2038],{"class":780,"line":781},[778,2039,2040],{},"import json\n",[778,2042,2043],{"class":780,"line":787},[778,2044,790],{},[778,2046,2047],{"class":780,"line":793},[778,2048,796],{},[778,2050,2051],{"class":780,"line":799},[778,2052,803],{"emptyLinePlaceholder":802},[778,2054,2055],{"class":780,"line":806},[778,2056,809],{},[778,2058,2059],{"class":780,"line":812},[778,2060,803],{"emptyLinePlaceholder":802},[778,2062,2063],{"class":780,"line":817},[778,2064,820],{},[778,2066,2067],{"class":780,"line":823},[778,2068,850],{},[778,2070,2071],{"class":780,"line":829},[778,2072,856],{},[778,2074,2075],{"class":780,"line":835},[778,2076,803],{"emptyLinePlaceholder":802},[778,2078,2079],{"class":780,"line":841},[778,2080,803],{"emptyLinePlaceholder":802},[778,2082,2083],{"class":780,"line":847},[778,2084,872],{},[778,2086,2087],{"class":780,"line":853},[778,2088,878],{},[778,2090,2091],{"class":780,"line":859},[778,2092,884],{},[778,2094,2095],{"class":780,"line":864},[778,2096,2097],{},"        if response.status_code == 429:\n",[778,2099,2100],{"class":780,"line":869},[778,2101,896],{},[778,2103,2104],{"class":780,"line":875},[778,2105,902],{},[778,2107,2108],{"class":780,"line":881},[778,2109,908],{},[778,2111,2112],{"class":780,"line":887},[778,2113,914],{},[778,2115,2116],{"class":780,"line":893},[778,2117,803],{"emptyLinePlaceholder":802},[778,2119,2120],{"class":780,"line":899},[778,2121,803],{"emptyLinePlaceholder":802},[778,2123,2124],{"class":780,"line":905},[778,2125,2126],{},"params = {\"cursor\": \"start\", \"limit\": 200, \"status\": \"completed\"}\n",[778,2128,2129],{"class":780,"line":911},[778,2130,2131],{},"with open(\"chamadas.jsonl\", \"w\", encoding=\"utf-8\") as file:\n",[778,2133,2134],{"class":780,"line":917},[778,2135,878],{},[778,2137,2138],{"class":780,"line":922},[778,2139,965],{},[778,2141,2142],{"class":780,"line":927},[778,2143,2144],{},"        for call in page[\"items\"]:\n",[778,2146,2147],{"class":780,"line":933},[778,2148,2149],{},"            detail = get(f\"\u002Fcalls\u002F{call['id']}\")  # transcrição, acções e resultado pós-chamada\n",[778,2151,2152],{"class":780,"line":939},[778,2153,2154],{},"            file.write(json.dumps(detail, ensure_ascii=False) + \"\\n\")\n",[778,2156,2157],{"class":780,"line":945},[778,2158,2159],{},"            time.sleep(0.5)  # no máximo 120 pedidos por minuto por chave\n",[778,2161,2162],{"class":780,"line":951},[778,2163,983],{},[778,2165,2166],{"class":780,"line":957},[778,2167,989],{},[778,2169,2170],{"class":780,"line":962},[778,2171,995],{},[712,2173,2174,2175,2180,2181,2184],{},"Cada linha tem o mesmo conteúdo de ",[716,2176,2177],{"href":374},[719,2178,2179],{},"GET \u002Fv1\u002Fcalls\u002F{call_id}",": transcrição (",[719,2182,2183],{},"messages","), acções executadas e resultado pós-chamada. O script faz um pedido por chamada e espera meio segundo entre eles, para ficar abaixo dos 120 pedidos por minuto: 10 000 chamadas demoram cerca de hora e meia.",[729,2186,2188],{"id":2187},"exportar-só-o-que-é-novo","Exportar só o que é novo",[712,2190,2191,2192,2194,2195,2198,2199,1354],{},"A API não filtra por data, mas a lista vem da mais recente para a mais antiga. Para exportar só desde a última execução, pare quando ",[719,2193,1122],{}," for anterior a essa data, como a função ",[719,2196,2197],{},"calls_since"," de ",[716,2200,543],{"href":2201},"\u002Fpt\u002Fapi\u002Fguides\u002Fsync-calls-crm#4-reconcilie-uma-vez-por-dia",[729,2203,2205],{"id":2204},"cuidados","Cuidados",[734,2207,2208,2211],{},[737,2209,2210],{},"As exportações têm dados pessoais: contactos, nomes e o que foi dito. Guarde-as com o mesmo cuidado que o resto dos dados dos seus clientes.",[737,2212,2213,2214,1354],{},"O áudio das gravações não é exportado pela API. Ouça as gravações em ",[716,2215,2216],{"href":263},"Históricos",[2218,2219,2220],"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 .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}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":774,"searchDepth":787,"depth":787,"links":2222},[2223,2224,2225,2226,2227],{"id":731,"depth":787,"text":732},{"id":762,"depth":787,"text":763},{"id":2024,"depth":787,"text":2025},{"id":2187,"depth":787,"text":2188},{"id":2204,"depth":787,"text":2205},"Todo o histórico para CSV, ou com as transcrições para JSONL, com paginação por cursor.","md",null,{},{"title":547,"description":2228},"8Bk5v8lF_SrxtmtFIpJgcgwiy09GjY_btHjtogOeE0E",[2235,2237],{"title":543,"path":544,"stem":545,"description":2236,"children":-1},"Cada chamada concluída chega ao seu servidor por webhook e cria ou actualiza o contacto e a actividade no CRM.",{"title":551,"path":552,"stem":553,"description":2238,"children":-1},"Lê o sitemap do site e importa cada página e cada PDF para uma base de conhecimento.",1795253823970]