[{"data":1,"prerenderedAt":2108},["ShallowReactive",2],{"navigation_docs_pt":3,"-pt-api-reference-agents-create-agent":706,"-pt-api-reference-agents-create-agent-surround":2103},[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":356,"body":708,"description":2097,"extension":2098,"links":2099,"meta":2100,"navigation":1056,"path":357,"seo":2101,"stem":358,"__hash__":2102},"docs_pt\u002Fpt\u002F12.api\u002F07.reference\u002F02.agents\u002F04.create-agent.md",{"type":709,"value":710,"toc":2089},"minimark",[711,728,739,751,756,761,874,957,961,1571,1575,1582,1588,1595,1794,2019,2023,2063,2085],[712,713,718],"pre",{"className":714,"code":715,"language":716,"meta":717,"style":717},"language-http shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","POST https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fagents\n","http","",[719,720,721],"code",{"__ignoreMap":717},[722,723,726],"span",{"class":724,"line":725},"line",1,[722,727,715],{},[729,730,731,735,736],"p",{},[732,733,734],"strong",{},"Âmbito:"," ",[719,737,738],{},"agents:write",[729,740,741,742,745,746,750],{},"O agente nasce em rascunho (",[719,743,744],{},"status: draft","): ",[747,748,749],"a",{"href":361},"publique-o"," para ficar disponível nos canais. A API da DISKA não lista modelos.",[752,753,755],"h2",{"id":754},"corpo-do-pedido","Corpo do pedido",[729,757,758],{},[719,759,760],{},"application\u002Fjson",[762,763,764,783],"table",{},[765,766,767],"thead",{},[768,769,770,774,777,780],"tr",{},[771,772,773],"th",{},"Campo",[771,775,776],{},"Tipo",[771,778,779],{},"Obrigatório",[771,781,782],{},"Descrição",[784,785,786,807,838,860],"tbody",{},[768,787,788,794,797,800],{},[789,790,791],"td",{},[719,792,793],{},"name",[789,795,796],{},"string | null",[789,798,799],{},"Não",[789,801,802,803,806],{},"Nome do agente. Por omissão: ",[719,804,805],{},"Novo agente",", ou o nome do modelo. Até 120 caracteres.",[768,808,809,814,816,818],{},[789,810,811],{},[719,812,813],{},"agent_type",[789,815,796],{},[789,817,799],{},[789,819,820,821,824,825,827,828,827,831,827,834,837],{},"Tipo do agente. Por omissão: ",[719,822,823],{},"inbound",", ou o tipo do modelo. Um de: ",[719,826,823],{},", ",[719,829,830],{},"outbound",[719,832,833],{},"voice_widget",[719,835,836],{},"chat",".",[768,839,840,845,847,849],{},[789,841,842],{},[719,843,844],{},"editing_mode",[789,846,796],{},[789,848,799],{},[789,850,851,852,855,856,859],{},"Por omissão: ",[719,853,854],{},"prompt"," num agente em branco, ",[719,857,858],{},"flow"," a partir de um modelo.",[768,861,862,867,869,871],{},[789,863,864],{},[719,865,866],{},"template_id",[789,868,796],{},[789,870,799],{},[789,872,873],{},"Modelo de agente da Diska. Sem ele, o agente é criado em branco. Até 64 caracteres.",[712,875,879],{"className":876,"code":877,"language":878,"meta":717,"style":717},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"name\": \"Recepção\",\n  \"agent_type\": \"inbound\",\n  \"editing_mode\": \"prompt\"\n}\n","json",[719,880,881,887,914,933,951],{"__ignoreMap":717},[722,882,883],{"class":724,"line":725},[722,884,886],{"class":885},"sMK4o","{\n",[722,888,890,893,896,899,902,905,909,911],{"class":724,"line":889},2,[722,891,892],{"class":885},"  \"",[722,894,793],{"class":895},"spNyl",[722,897,898],{"class":885},"\"",[722,900,901],{"class":885},":",[722,903,904],{"class":885}," \"",[722,906,908],{"class":907},"sfazB","Recepção",[722,910,898],{"class":885},[722,912,913],{"class":885},",\n",[722,915,917,919,921,923,925,927,929,931],{"class":724,"line":916},3,[722,918,892],{"class":885},[722,920,813],{"class":895},[722,922,898],{"class":885},[722,924,901],{"class":885},[722,926,904],{"class":885},[722,928,823],{"class":907},[722,930,898],{"class":885},[722,932,913],{"class":885},[722,934,936,938,940,942,944,946,948],{"class":724,"line":935},4,[722,937,892],{"class":885},[722,939,844],{"class":895},[722,941,898],{"class":885},[722,943,901],{"class":885},[722,945,904],{"class":885},[722,947,854],{"class":907},[722,949,950],{"class":885},"\"\n",[722,952,954],{"class":724,"line":953},5,[722,955,956],{"class":885},"}\n",[752,958,960],{"id":959},"exemplos","Exemplos",[962,963,964,1039,1138,1442],"code-group",{},[712,965,970],{"className":966,"code":967,"filename":968,"language":969,"meta":717,"style":717},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","curl -X POST \"https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fagents\" \\\n  -H \"Authorization: Bearer $DISKA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"name\":\"Recepção\",\"agent_type\":\"inbound\",\"editing_mode\":\"prompt\"}'\n","cURL","bash",[719,971,972,995,1012,1025],{"__ignoreMap":717},[722,973,974,978,981,984,986,989,991],{"class":724,"line":725},[722,975,977],{"class":976},"sBMFI","curl",[722,979,980],{"class":907}," -X",[722,982,983],{"class":907}," POST",[722,985,904],{"class":885},[722,987,988],{"class":907},"https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fagents",[722,990,898],{"class":885},[722,992,994],{"class":993},"sTEyZ"," \\\n",[722,996,997,1000,1002,1005,1008,1010],{"class":724,"line":889},[722,998,999],{"class":907},"  -H",[722,1001,904],{"class":885},[722,1003,1004],{"class":907},"Authorization: Bearer ",[722,1006,1007],{"class":993},"$DISKA_API_KEY",[722,1009,898],{"class":885},[722,1011,994],{"class":993},[722,1013,1014,1016,1018,1021,1023],{"class":724,"line":916},[722,1015,999],{"class":907},[722,1017,904],{"class":885},[722,1019,1020],{"class":907},"Content-Type: application\u002Fjson",[722,1022,898],{"class":885},[722,1024,994],{"class":993},[722,1026,1027,1030,1033,1036],{"class":724,"line":935},[722,1028,1029],{"class":907},"  -d",[722,1031,1032],{"class":885}," '",[722,1034,1035],{"class":907},"{\"name\":\"Recepção\",\"agent_type\":\"inbound\",\"editing_mode\":\"prompt\"}",[722,1037,1038],{"class":885},"'\n",[712,1040,1045],{"className":1041,"code":1042,"filename":1043,"language":1044,"meta":717,"style":717},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import os\n\nimport requests\n\nresponse = requests.post(\n    \"https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fagents\",\n    headers={\"Authorization\": f\"Bearer {os.environ['DISKA_API_KEY']}\"},\n    json={\n        \"name\": \"Recepção\",\n        \"agent_type\": \"inbound\",\n        \"editing_mode\": \"prompt\",\n    },\n    timeout=30,\n)\nresponse.raise_for_status()\nprint(response.json())\n","Python","python",[719,1046,1047,1052,1058,1063,1067,1072,1078,1084,1090,1096,1102,1108,1114,1120,1126,1132],{"__ignoreMap":717},[722,1048,1049],{"class":724,"line":725},[722,1050,1051],{},"import os\n",[722,1053,1054],{"class":724,"line":889},[722,1055,1057],{"emptyLinePlaceholder":1056},true,"\n",[722,1059,1060],{"class":724,"line":916},[722,1061,1062],{},"import requests\n",[722,1064,1065],{"class":724,"line":935},[722,1066,1057],{"emptyLinePlaceholder":1056},[722,1068,1069],{"class":724,"line":953},[722,1070,1071],{},"response = requests.post(\n",[722,1073,1075],{"class":724,"line":1074},6,[722,1076,1077],{},"    \"https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fagents\",\n",[722,1079,1081],{"class":724,"line":1080},7,[722,1082,1083],{},"    headers={\"Authorization\": f\"Bearer {os.environ['DISKA_API_KEY']}\"},\n",[722,1085,1087],{"class":724,"line":1086},8,[722,1088,1089],{},"    json={\n",[722,1091,1093],{"class":724,"line":1092},9,[722,1094,1095],{},"        \"name\": \"Recepção\",\n",[722,1097,1099],{"class":724,"line":1098},10,[722,1100,1101],{},"        \"agent_type\": \"inbound\",\n",[722,1103,1105],{"class":724,"line":1104},11,[722,1106,1107],{},"        \"editing_mode\": \"prompt\",\n",[722,1109,1111],{"class":724,"line":1110},12,[722,1112,1113],{},"    },\n",[722,1115,1117],{"class":724,"line":1116},13,[722,1118,1119],{},"    timeout=30,\n",[722,1121,1123],{"class":724,"line":1122},14,[722,1124,1125],{},")\n",[722,1127,1129],{"class":724,"line":1128},15,[722,1130,1131],{},"response.raise_for_status()\n",[722,1133,1135],{"class":724,"line":1134},16,[722,1136,1137],{},"print(response.json())\n",[712,1139,1144],{"className":1140,"code":1141,"filename":1142,"language":1143,"meta":717,"style":717},"language-js shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F Node.js 18 ou superior, num ficheiro .mjs\nconst response = await fetch('https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fagents', {\n  method: 'POST',\n  headers: {\n    Authorization: `Bearer ${process.env.DISKA_API_KEY}`,\n    'Content-Type': 'application\u002Fjson'\n  },\n  body: JSON.stringify({\n    \"name\": \"Recepção\",\n    \"agent_type\": \"inbound\",\n    \"editing_mode\": \"prompt\"\n  })\n})\nif (!response.ok) throw new Error(`${response.status} ${await response.text()}`)\nconsole.log(await response.json())\n","JavaScript","js",[719,1145,1146,1152,1187,1204,1213,1247,1265,1270,1289,1308,1326,1342,1349,1356,1419],{"__ignoreMap":717},[722,1147,1148],{"class":724,"line":725},[722,1149,1151],{"class":1150},"sHwdD","\u002F\u002F Node.js 18 ou superior, num ficheiro .mjs\n",[722,1153,1154,1157,1160,1163,1167,1171,1174,1177,1179,1181,1184],{"class":724,"line":889},[722,1155,1156],{"class":895},"const",[722,1158,1159],{"class":993}," response ",[722,1161,1162],{"class":885},"=",[722,1164,1166],{"class":1165},"s7zQu"," await",[722,1168,1170],{"class":1169},"s2Zo4"," fetch",[722,1172,1173],{"class":993},"(",[722,1175,1176],{"class":885},"'",[722,1178,988],{"class":907},[722,1180,1176],{"class":885},[722,1182,1183],{"class":885},",",[722,1185,1186],{"class":885}," {\n",[722,1188,1189,1193,1195,1197,1200,1202],{"class":724,"line":916},[722,1190,1192],{"class":1191},"swJcz","  method",[722,1194,901],{"class":885},[722,1196,1032],{"class":885},[722,1198,1199],{"class":907},"POST",[722,1201,1176],{"class":885},[722,1203,913],{"class":885},[722,1205,1206,1209,1211],{"class":724,"line":935},[722,1207,1208],{"class":1191},"  headers",[722,1210,901],{"class":885},[722,1212,1186],{"class":885},[722,1214,1215,1218,1220,1223,1226,1229,1232,1234,1237,1239,1242,1245],{"class":724,"line":953},[722,1216,1217],{"class":1191},"    Authorization",[722,1219,901],{"class":885},[722,1221,1222],{"class":885}," `",[722,1224,1225],{"class":907},"Bearer ",[722,1227,1228],{"class":885},"${",[722,1230,1231],{"class":993},"process",[722,1233,837],{"class":885},[722,1235,1236],{"class":993},"env",[722,1238,837],{"class":885},[722,1240,1241],{"class":993},"DISKA_API_KEY",[722,1243,1244],{"class":885},"}`",[722,1246,913],{"class":885},[722,1248,1249,1252,1255,1257,1259,1261,1263],{"class":724,"line":1074},[722,1250,1251],{"class":885},"    '",[722,1253,1254],{"class":1191},"Content-Type",[722,1256,1176],{"class":885},[722,1258,901],{"class":885},[722,1260,1032],{"class":885},[722,1262,760],{"class":907},[722,1264,1038],{"class":885},[722,1266,1267],{"class":724,"line":1080},[722,1268,1269],{"class":885},"  },\n",[722,1271,1272,1275,1277,1280,1282,1285,1287],{"class":724,"line":1086},[722,1273,1274],{"class":1191},"  body",[722,1276,901],{"class":885},[722,1278,1279],{"class":993}," JSON",[722,1281,837],{"class":885},[722,1283,1284],{"class":1169},"stringify",[722,1286,1173],{"class":993},[722,1288,886],{"class":885},[722,1290,1291,1294,1296,1298,1300,1302,1304,1306],{"class":724,"line":1092},[722,1292,1293],{"class":885},"    \"",[722,1295,793],{"class":1191},[722,1297,898],{"class":885},[722,1299,901],{"class":885},[722,1301,904],{"class":885},[722,1303,908],{"class":907},[722,1305,898],{"class":885},[722,1307,913],{"class":885},[722,1309,1310,1312,1314,1316,1318,1320,1322,1324],{"class":724,"line":1098},[722,1311,1293],{"class":885},[722,1313,813],{"class":1191},[722,1315,898],{"class":885},[722,1317,901],{"class":885},[722,1319,904],{"class":885},[722,1321,823],{"class":907},[722,1323,898],{"class":885},[722,1325,913],{"class":885},[722,1327,1328,1330,1332,1334,1336,1338,1340],{"class":724,"line":1104},[722,1329,1293],{"class":885},[722,1331,844],{"class":1191},[722,1333,898],{"class":885},[722,1335,901],{"class":885},[722,1337,904],{"class":885},[722,1339,854],{"class":907},[722,1341,950],{"class":885},[722,1343,1344,1347],{"class":724,"line":1110},[722,1345,1346],{"class":885},"  }",[722,1348,1125],{"class":993},[722,1350,1351,1354],{"class":724,"line":1116},[722,1352,1353],{"class":885},"}",[722,1355,1125],{"class":993},[722,1357,1358,1361,1364,1367,1370,1372,1375,1378,1381,1384,1386,1389,1391,1393,1396,1398,1401,1404,1407,1409,1412,1415,1417],{"class":724,"line":1122},[722,1359,1360],{"class":1165},"if",[722,1362,1363],{"class":993}," (",[722,1365,1366],{"class":885},"!",[722,1368,1369],{"class":993},"response",[722,1371,837],{"class":885},[722,1373,1374],{"class":993},"ok) ",[722,1376,1377],{"class":1165},"throw",[722,1379,1380],{"class":885}," new",[722,1382,1383],{"class":1169}," Error",[722,1385,1173],{"class":993},[722,1387,1388],{"class":885},"`${",[722,1390,1369],{"class":993},[722,1392,837],{"class":885},[722,1394,1395],{"class":993},"status",[722,1397,1353],{"class":885},[722,1399,1400],{"class":885}," ${",[722,1402,1403],{"class":1165},"await",[722,1405,1406],{"class":993}," response",[722,1408,837],{"class":885},[722,1410,1411],{"class":1169},"text",[722,1413,1414],{"class":993},"()",[722,1416,1244],{"class":885},[722,1418,1125],{"class":993},[722,1420,1421,1424,1426,1429,1431,1433,1435,1437,1439],{"class":724,"line":1128},[722,1422,1423],{"class":993},"console",[722,1425,837],{"class":885},[722,1427,1428],{"class":1169},"log",[722,1430,1173],{"class":993},[722,1432,1403],{"class":1165},[722,1434,1406],{"class":993},[722,1436,837],{"class":885},[722,1438,878],{"class":1169},[722,1440,1441],{"class":993},"())\n",[712,1443,1448],{"className":1444,"code":1445,"filename":1446,"language":1447,"meta":717,"style":717},"language-php shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003C?php\n$ch = curl_init('https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fagents');\ncurl_setopt_array($ch, [\n    CURLOPT_CUSTOMREQUEST => 'POST',\n    CURLOPT_HTTPHEADER => [\n        'Authorization: Bearer ' . getenv('DISKA_API_KEY'),\n        'Content-Type: application\u002Fjson',\n    ],\n    CURLOPT_POSTFIELDS => json_encode([\n        'name' => 'Recepção',\n        'agent_type' => 'inbound',\n        'editing_mode' => 'prompt',\n    ]),\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 30,\n]);\n$body = curl_exec($ch);\n$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);\ncurl_close($ch);\nif ($status >= 400) {\n    throw new RuntimeException(\"HTTP $status: $body\");\n}\nprint_r(json_decode($body, true));\n","PHP","php",[719,1449,1450,1455,1460,1465,1470,1475,1480,1485,1490,1495,1500,1505,1510,1515,1520,1525,1530,1536,1542,1548,1554,1560,1565],{"__ignoreMap":717},[722,1451,1452],{"class":724,"line":725},[722,1453,1454],{},"\u003C?php\n",[722,1456,1457],{"class":724,"line":889},[722,1458,1459],{},"$ch = curl_init('https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fagents');\n",[722,1461,1462],{"class":724,"line":916},[722,1463,1464],{},"curl_setopt_array($ch, [\n",[722,1466,1467],{"class":724,"line":935},[722,1468,1469],{},"    CURLOPT_CUSTOMREQUEST => 'POST',\n",[722,1471,1472],{"class":724,"line":953},[722,1473,1474],{},"    CURLOPT_HTTPHEADER => [\n",[722,1476,1477],{"class":724,"line":1074},[722,1478,1479],{},"        'Authorization: Bearer ' . getenv('DISKA_API_KEY'),\n",[722,1481,1482],{"class":724,"line":1080},[722,1483,1484],{},"        'Content-Type: application\u002Fjson',\n",[722,1486,1487],{"class":724,"line":1086},[722,1488,1489],{},"    ],\n",[722,1491,1492],{"class":724,"line":1092},[722,1493,1494],{},"    CURLOPT_POSTFIELDS => json_encode([\n",[722,1496,1497],{"class":724,"line":1098},[722,1498,1499],{},"        'name' => 'Recepção',\n",[722,1501,1502],{"class":724,"line":1104},[722,1503,1504],{},"        'agent_type' => 'inbound',\n",[722,1506,1507],{"class":724,"line":1110},[722,1508,1509],{},"        'editing_mode' => 'prompt',\n",[722,1511,1512],{"class":724,"line":1116},[722,1513,1514],{},"    ]),\n",[722,1516,1517],{"class":724,"line":1122},[722,1518,1519],{},"    CURLOPT_RETURNTRANSFER => true,\n",[722,1521,1522],{"class":724,"line":1128},[722,1523,1524],{},"    CURLOPT_TIMEOUT => 30,\n",[722,1526,1527],{"class":724,"line":1134},[722,1528,1529],{},"]);\n",[722,1531,1533],{"class":724,"line":1532},17,[722,1534,1535],{},"$body = curl_exec($ch);\n",[722,1537,1539],{"class":724,"line":1538},18,[722,1540,1541],{},"$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);\n",[722,1543,1545],{"class":724,"line":1544},19,[722,1546,1547],{},"curl_close($ch);\n",[722,1549,1551],{"class":724,"line":1550},20,[722,1552,1553],{},"if ($status >= 400) {\n",[722,1555,1557],{"class":724,"line":1556},21,[722,1558,1559],{},"    throw new RuntimeException(\"HTTP $status: $body\");\n",[722,1561,1563],{"class":724,"line":1562},22,[722,1564,956],{},[722,1566,1568],{"class":724,"line":1567},23,[722,1569,1570],{},"print_r(json_decode($body, true));\n",[752,1572,1574],{"id":1573},"experimentar","Experimentar",[729,1576,1577,1578,1581],{},"Envie o pedido a partir desta página, com a sua chave. A chave fica só nesta página: não é guardada e só é enviada para ",[719,1579,1580],{},"api.diska.ai",". Use uma chave de teste com os âmbitos mínimos.",[1583,1584],"api-playground",{":params":1585,"body":877,"body-type":878,"locale":1586,"method":1199,"path":1587},"[]","pt","\u002Fv1\u002Fagents",[752,1589,1591,1592],{"id":1590},"resposta-201","Resposta ",[719,1593,1594],{},"201",[762,1596,1597,1607],{},[765,1598,1599],{},[768,1600,1601,1603,1605],{},[771,1602,773],{},[771,1604,776],{},[771,1606,782],{},[784,1608,1609,1622,1633,1645,1660,1686,1704,1721,1737,1751,1770,1782],{},[768,1610,1611,1616,1619],{},[789,1612,1613],{},[719,1614,1615],{},"id",[789,1617,1618],{},"string",[789,1620,1621],{},"Identificador do agente.",[768,1623,1624,1628,1630],{},[789,1625,1626],{},[719,1627,793],{},[789,1629,1618],{},[789,1631,1632],{},"Nome do agente.",[768,1634,1635,1640,1642],{},[789,1636,1637],{},[719,1638,1639],{},"slug",[789,1641,1618],{},[789,1643,1644],{},"Identificador legível do agente.",[768,1646,1647,1652,1654],{},[789,1648,1649],{},[719,1650,1651],{},"description",[789,1653,796],{},[789,1655,1656,1657,837],{},"Descrição, ou ",[719,1658,1659],{},"null",[768,1661,1662,1666,1668],{},[789,1663,1664],{},[719,1665,1395],{},[789,1667,1618],{},[789,1669,1670,827,1673,827,1676,1679,1680,1683,1684,837],{},[719,1671,1672],{},"draft",[719,1674,1675],{},"active",[719,1677,1678],{},"inactive"," ou ",[719,1681,1682],{},"archived",". Um agente publicado fica ",[719,1685,1675],{},[768,1687,1688,1692,1694],{},[789,1689,1690],{},[719,1691,813],{},[789,1693,1618],{},[789,1695,1696,827,1698,827,1700,1679,1702,837],{},[719,1697,823],{},[719,1699,830],{},[719,1701,833],{},[719,1703,836],{},[768,1705,1706,1710,1712],{},[789,1707,1708],{},[719,1709,844],{},[789,1711,1618],{},[789,1713,1714,1679,1716,1718,1719,837],{},[719,1715,854],{},[719,1717,858],{}," (Flow Builder). Não muda depois de criado. Padrão: ",[719,1720,854],{},[768,1722,1723,1728,1731],{},[789,1724,1725],{},[719,1726,1727],{},"version",[789,1729,1730],{},"integer",[789,1732,1733,1734,837],{},"Número da versão do agente. Padrão: ",[719,1735,1736],{},"1",[768,1738,1739,1744,1746],{},[789,1740,1741],{},[719,1742,1743],{},"phone_number",[789,1745,796],{},[789,1747,1748,1749,837],{},"Número atribuído ao agente, ou ",[719,1750,1659],{},[768,1752,1753,1758,1761],{},[789,1754,1755],{},[719,1756,1757],{},"public_channel_enabled",[789,1759,1760],{},"boolean",[789,1762,1763,1766,1767,837],{},[719,1764,1765],{},"true"," quando o Link público do agente está activo. Padrão: ",[719,1768,1769],{},"false",[768,1771,1772,1777,1779],{},[789,1773,1774],{},[719,1775,1776],{},"created_at",[789,1778,1618],{},[789,1780,1781],{},"Data de criação (ISO 8601).",[768,1783,1784,1789,1791],{},[789,1785,1786],{},[719,1787,1788],{},"updated_at",[789,1790,1618],{},[789,1792,1793],{},"Data da última alteração (ISO 8601).",[712,1795,1797],{"className":876,"code":1796,"language":878,"meta":717,"style":717},"{\n  \"id\": \"3f1c2a7e-5b9d-4c1e-8f3a-2d6b7e9c1a40\",\n  \"name\": \"Recepção\",\n  \"slug\": \"recepcao\",\n  \"description\": \"Atende as chamadas da recepção.\",\n  \"status\": \"active\",\n  \"agent_type\": \"inbound\",\n  \"editing_mode\": \"prompt\",\n  \"version\": 3,\n  \"phone_number\": \"+244900000000\",\n  \"public_channel_enabled\": false,\n  \"created_at\": \"2026-10-25T18:40:00Z\",\n  \"updated_at\": \"2026-10-25T18:40:00Z\"\n}\n",[719,1798,1799,1803,1822,1840,1859,1878,1896,1914,1932,1948,1967,1980,1999,2015],{"__ignoreMap":717},[722,1800,1801],{"class":724,"line":725},[722,1802,886],{"class":885},[722,1804,1805,1807,1809,1811,1813,1815,1818,1820],{"class":724,"line":889},[722,1806,892],{"class":885},[722,1808,1615],{"class":895},[722,1810,898],{"class":885},[722,1812,901],{"class":885},[722,1814,904],{"class":885},[722,1816,1817],{"class":907},"3f1c2a7e-5b9d-4c1e-8f3a-2d6b7e9c1a40",[722,1819,898],{"class":885},[722,1821,913],{"class":885},[722,1823,1824,1826,1828,1830,1832,1834,1836,1838],{"class":724,"line":916},[722,1825,892],{"class":885},[722,1827,793],{"class":895},[722,1829,898],{"class":885},[722,1831,901],{"class":885},[722,1833,904],{"class":885},[722,1835,908],{"class":907},[722,1837,898],{"class":885},[722,1839,913],{"class":885},[722,1841,1842,1844,1846,1848,1850,1852,1855,1857],{"class":724,"line":935},[722,1843,892],{"class":885},[722,1845,1639],{"class":895},[722,1847,898],{"class":885},[722,1849,901],{"class":885},[722,1851,904],{"class":885},[722,1853,1854],{"class":907},"recepcao",[722,1856,898],{"class":885},[722,1858,913],{"class":885},[722,1860,1861,1863,1865,1867,1869,1871,1874,1876],{"class":724,"line":953},[722,1862,892],{"class":885},[722,1864,1651],{"class":895},[722,1866,898],{"class":885},[722,1868,901],{"class":885},[722,1870,904],{"class":885},[722,1872,1873],{"class":907},"Atende as chamadas da recepção.",[722,1875,898],{"class":885},[722,1877,913],{"class":885},[722,1879,1880,1882,1884,1886,1888,1890,1892,1894],{"class":724,"line":1074},[722,1881,892],{"class":885},[722,1883,1395],{"class":895},[722,1885,898],{"class":885},[722,1887,901],{"class":885},[722,1889,904],{"class":885},[722,1891,1675],{"class":907},[722,1893,898],{"class":885},[722,1895,913],{"class":885},[722,1897,1898,1900,1902,1904,1906,1908,1910,1912],{"class":724,"line":1080},[722,1899,892],{"class":885},[722,1901,813],{"class":895},[722,1903,898],{"class":885},[722,1905,901],{"class":885},[722,1907,904],{"class":885},[722,1909,823],{"class":907},[722,1911,898],{"class":885},[722,1913,913],{"class":885},[722,1915,1916,1918,1920,1922,1924,1926,1928,1930],{"class":724,"line":1086},[722,1917,892],{"class":885},[722,1919,844],{"class":895},[722,1921,898],{"class":885},[722,1923,901],{"class":885},[722,1925,904],{"class":885},[722,1927,854],{"class":907},[722,1929,898],{"class":885},[722,1931,913],{"class":885},[722,1933,1934,1936,1938,1940,1942,1946],{"class":724,"line":1092},[722,1935,892],{"class":885},[722,1937,1727],{"class":895},[722,1939,898],{"class":885},[722,1941,901],{"class":885},[722,1943,1945],{"class":1944},"sbssI"," 3",[722,1947,913],{"class":885},[722,1949,1950,1952,1954,1956,1958,1960,1963,1965],{"class":724,"line":1098},[722,1951,892],{"class":885},[722,1953,1743],{"class":895},[722,1955,898],{"class":885},[722,1957,901],{"class":885},[722,1959,904],{"class":885},[722,1961,1962],{"class":907},"+244900000000",[722,1964,898],{"class":885},[722,1966,913],{"class":885},[722,1968,1969,1971,1973,1975,1977],{"class":724,"line":1104},[722,1970,892],{"class":885},[722,1972,1757],{"class":895},[722,1974,898],{"class":885},[722,1976,901],{"class":885},[722,1978,1979],{"class":885}," false,\n",[722,1981,1982,1984,1986,1988,1990,1992,1995,1997],{"class":724,"line":1110},[722,1983,892],{"class":885},[722,1985,1776],{"class":895},[722,1987,898],{"class":885},[722,1989,901],{"class":885},[722,1991,904],{"class":885},[722,1993,1994],{"class":907},"2026-10-25T18:40:00Z",[722,1996,898],{"class":885},[722,1998,913],{"class":885},[722,2000,2001,2003,2005,2007,2009,2011,2013],{"class":724,"line":1116},[722,2002,892],{"class":885},[722,2004,1788],{"class":895},[722,2006,898],{"class":885},[722,2008,901],{"class":885},[722,2010,904],{"class":885},[722,2012,1994],{"class":907},[722,2014,950],{"class":885},[722,2016,2017],{"class":724,"line":1122},[722,2018,956],{"class":885},[752,2020,2022],{"id":2021},"erros","Erros",[762,2024,2025,2035],{},[765,2026,2027],{},[768,2028,2029,2032],{},[771,2030,2031],{},"Código",[771,2033,2034],{},"Quando",[784,2036,2037,2053],{},[768,2038,2039,2044],{},[789,2040,2041],{},[719,2042,2043],{},"404",[789,2045,2046,2049,2050,2052],{},[719,2047,2048],{},"Modelo não encontrado."," — o ",[719,2051,866],{}," não existe.",[768,2054,2055,2060],{},[789,2056,2057],{},[719,2058,2059],{},"422",[789,2061,2062],{},"O modelo não pôde ser instalado.",[729,2064,2065,2066,827,2069,827,2072,827,2074,2077,2078,2081,2082,837],{},"Os erros comuns a todos os endpoints (",[719,2067,2068],{},"401",[719,2070,2071],{},"403",[719,2073,2059],{},[719,2075,2076],{},"429"," e ",[719,2079,2080],{},"5xx",") estão em ",[747,2083,2022],{"href":2084},"\u002Fpt\u002Fapi\u002Fapi-channel#erros",[2086,2087,2088],"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 .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}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 .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}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":717,"searchDepth":889,"depth":889,"links":2090},[2091,2092,2093,2094,2096],{"id":754,"depth":889,"text":755},{"id":959,"depth":889,"text":960},{"id":1573,"depth":889,"text":1574},{"id":1590,"depth":889,"text":2095},"Resposta 201",{"id":2021,"depth":889,"text":2022},"Cria um agente, em branco ou a partir de um modelo da Diska (template_id).","md",null,{},{"title":356,"description":2097},"Qy8VvfT83jDYmErW44xqOycZJ5402Nf61-dx_mY4fFU",[2104,2106],{"title":352,"path":353,"stem":354,"description":2105,"children":-1},"Altera o rascunho do agente: só os campos enviados mudam, e null limpa os textos opcionais.",{"title":360,"path":361,"stem":362,"description":2107,"children":-1},"Publica o rascunho do agente como nova versão e deixa o agente active.",1795253865401]