[{"data":1,"prerenderedAt":563},["ShallowReactive",2],{"academy-step:en:platform-foundations:2026-08-12:build-first-agent":3},{"outline":4,"page":43},[5,21],{"chapterId":6,"title":7,"steps":8},"platform-model","Understand the platform",[9],{"stepId":10,"ref":11,"pageRef":14,"route":18,"title":19,"description":20},"understand-platform-model",{"courseId":12,"revisionId":13,"stepId":10},"platform-foundations","2026-08-12",{"spaceId":15,"versionId":16,"docId":17},"platform",null,"overview","\u002Fen\u002Facademy\u002Fplatform-foundations\u002F2026-08-12\u002Funderstand-platform-model","TalkIt platform overview","Learn how TalkIt connects customer channels, AI agents, and workspace data.",{"chapterId":22,"title":23,"steps":24},"first-agent-workflow","Build and validate an agent",[25,34],{"stepId":26,"ref":27,"pageRef":28,"route":30,"title":31,"description":32,"durationMinutes":33},"build-first-agent",{"courseId":12,"revisionId":13,"stepId":26},{"spaceId":15,"versionId":16,"docId":29},"create-first-agent","\u002Fen\u002Facademy\u002Fplatform-foundations\u002F2026-08-12\u002Fbuild-first-agent","Create your first agent","Configure a small TalkIt agent and prepare it for its first test conversation.",7,{"stepId":35,"ref":36,"pageRef":37,"route":39,"title":40,"description":41,"durationMinutes":42},"diagnose-agent-response",{"courseId":12,"revisionId":13,"stepId":35},{"spaceId":15,"versionId":16,"docId":38},"agent-not-responding","\u002Fen\u002Facademy\u002Fplatform-foundations\u002F2026-08-12\u002Fdiagnose-agent-response","Agent does not respond","Diagnose an agent that does not answer a test conversation in its connected channel.",6,{"id":44,"title":31,"authors":45,"badges":47,"body":48,"contentType":552,"deprecatedSince":16,"description":32,"docId":29,"durationMinutes":33,"extension":553,"introducedIn":16,"meta":554,"navigation":164,"path":555,"releaseVersion":16,"removedIn":16,"seo":556,"spaceId":15,"status":557,"stem":558,"tags":559,"updatedAt":13,"version":16,"__hash__":562},"docs_en\u002Fdocs\u002Fcreate-first-agent.md",[46],"talkit-docs",[],{"type":49,"value":50,"toc":543},"minimark",[51,55,63,68,71,75,107,111,114,486,491,494,498,512,516,519,531,539],[52,53,54],"p",{},"This tutorial walks through a minimal agent configuration and the checks to make before a first test conversation.",[56,57,60],"doc-callout",{"title":58,"type":59},"Use a test workspace","warning",[52,61,62],{},"Create experimental agents in a test workspace until their instructions and channel behavior have been reviewed.",[64,65,67],"h2",{"id":66},"before-you-begin","Before you begin",[52,69,70],{},"You need access to a TalkIt workspace and permission to create agents.",[64,72,74],{"id":73},"create-the-agent","Create the agent",[76,77,78],"doc-steps",{},[79,80,81,90,97,104],"ol",{},[82,83,84,85,89],"li",{},"Open ",[86,87,88],"strong",{},"Agents"," in your TalkIt workspace.",[82,91,92,93,96],{},"Select ",[86,94,95],{},"New agent",".",[82,98,99,100,96],{},"Name the agent ",[101,102,103],"code",{},"Customer support",[82,105,106],{},"Add a concise instruction describing when the agent should answer and when it should escalate.",[64,108,110],{"id":109},"connect-a-browser-client","Connect a browser client",[52,112,113],{},"The TalkIt JavaScript SDK exposes separate clients for text chat and voice calls. Both clients obtain a short-lived session grant from an authenticated endpoint in your application:",[115,116,119,335],"doc-tabs",{"default":117,"items":118,"variant":101},"chat","chat:Text chat,voice:Voice call",[120,121,123],"template",{"v-slot:chat":122},"",[124,125,136],"pre",{"className":126,"code":127,"filename":128,"highlights":129,"language":135,"meta":122,"style":122},"language-ts shiki shiki-themes github-light github-dark","import { createTalkitChat } from '@talkit-llc\u002Ftalkit-js'\n\nasync function getSessionGrant() {\n  const response = await fetch('\u002Fapi\u002Ftalkit\u002Fsession-grants\u002Ftext', { method: 'POST' })\n  if (!response.ok)\n    throw new Error('Unable to create a TalkIt text session grant.')\n  return response.json()\n}\n\nconst chat = createTalkitChat({\n  baseUrl: 'https:\u002F\u002Fyour-talkit-host.example',\n  getSessionToken: getSessionGrant,\n})\n\nawait chat.connect()\n","chat.ts",[130,131,132,133,134],1,10,11,12,13,"ts",[101,137,138,159,166,182,216,231,250,264,270,275,292,304,310,316,321],{"__ignoreMap":122},[139,140,144,148,152,155],"span",{"class":141,"line":130},[142,143],"line","highlight",[139,145,147],{"class":146},"szBVR","import",[139,149,151],{"class":150},"sVt8B"," { createTalkitChat } ",[139,153,154],{"class":146},"from",[139,156,158],{"class":157},"sZZnC"," '@talkit-llc\u002Ftalkit-js'\n",[139,160,162],{"class":142,"line":161},2,[139,163,165],{"emptyLinePlaceholder":164},true,"\n",[139,167,169,172,175,179],{"class":142,"line":168},3,[139,170,171],{"class":146},"async",[139,173,174],{"class":146}," function",[139,176,178],{"class":177},"sScJk"," getSessionGrant",[139,180,181],{"class":150},"() {\n",[139,183,185,188,192,195,198,201,204,207,210,213],{"class":142,"line":184},4,[139,186,187],{"class":146},"  const",[139,189,191],{"class":190},"sj4cs"," response",[139,193,194],{"class":146}," =",[139,196,197],{"class":146}," await",[139,199,200],{"class":177}," fetch",[139,202,203],{"class":150},"(",[139,205,206],{"class":157},"'\u002Fapi\u002Ftalkit\u002Fsession-grants\u002Ftext'",[139,208,209],{"class":150},", { method: ",[139,211,212],{"class":157},"'POST'",[139,214,215],{"class":150}," })\n",[139,217,219,222,225,228],{"class":142,"line":218},5,[139,220,221],{"class":146},"  if",[139,223,224],{"class":150}," (",[139,226,227],{"class":146},"!",[139,229,230],{"class":150},"response.ok)\n",[139,232,233,236,239,242,244,247],{"class":142,"line":42},[139,234,235],{"class":146},"    throw",[139,237,238],{"class":146}," new",[139,240,241],{"class":177}," Error",[139,243,203],{"class":150},[139,245,246],{"class":157},"'Unable to create a TalkIt text session grant.'",[139,248,249],{"class":150},")\n",[139,251,252,255,258,261],{"class":142,"line":33},[139,253,254],{"class":146},"  return",[139,256,257],{"class":150}," response.",[139,259,260],{"class":177},"json",[139,262,263],{"class":150},"()\n",[139,265,267],{"class":142,"line":266},8,[139,268,269],{"class":150},"}\n",[139,271,273],{"class":142,"line":272},9,[139,274,165],{"emptyLinePlaceholder":164},[139,276,278,281,284,286,289],{"class":277,"line":131},[142,143],[139,279,280],{"class":146},"const",[139,282,283],{"class":190}," chat",[139,285,194],{"class":146},[139,287,288],{"class":177}," createTalkitChat",[139,290,291],{"class":150},"({\n",[139,293,295,298,301],{"class":294,"line":132},[142,143],[139,296,297],{"class":150},"  baseUrl: ",[139,299,300],{"class":157},"'https:\u002F\u002Fyour-talkit-host.example'",[139,302,303],{"class":150},",\n",[139,305,307],{"class":306,"line":133},[142,143],[139,308,309],{"class":150},"  getSessionToken: getSessionGrant,\n",[139,311,313],{"class":312,"line":134},[142,143],[139,314,315],{"class":150},"})\n",[139,317,319],{"class":142,"line":318},14,[139,320,165],{"emptyLinePlaceholder":164},[139,322,324,327,330,333],{"class":142,"line":323},15,[139,325,326],{"class":146},"await",[139,328,329],{"class":150}," chat.",[139,331,332],{"class":177},"connect",[139,334,263],{"class":150},[120,336,337],{"v-slot:voice":122},[124,338,342],{"className":126,"code":339,"filename":340,"highlights":341,"language":135,"meta":122,"style":122},"import { createTalkitCall } from '@talkit-llc\u002Ftalkit-js'\n\nasync function getSessionGrant() {\n  const response = await fetch('\u002Fapi\u002Ftalkit\u002Fsession-grants\u002Fvoice', { method: 'POST' })\n  if (!response.ok)\n    throw new Error('Unable to create a TalkIt voice session grant.')\n  return response.json()\n}\n\nconst call = createTalkitCall({\n  baseUrl: 'https:\u002F\u002Fyour-talkit-host.example',\n  getSessionToken: getSessionGrant,\n})\n\nawait call.start()\n","call.ts",[130,131,132,133,134],[101,343,344,356,360,370,393,403,418,428,432,436,451,460,465,470,474],{"__ignoreMap":122},[139,345,347,349,352,354],{"class":346,"line":130},[142,143],[139,348,147],{"class":146},[139,350,351],{"class":150}," { createTalkitCall } ",[139,353,154],{"class":146},[139,355,158],{"class":157},[139,357,358],{"class":142,"line":161},[139,359,165],{"emptyLinePlaceholder":164},[139,361,362,364,366,368],{"class":142,"line":168},[139,363,171],{"class":146},[139,365,174],{"class":146},[139,367,178],{"class":177},[139,369,181],{"class":150},[139,371,372,374,376,378,380,382,384,387,389,391],{"class":142,"line":184},[139,373,187],{"class":146},[139,375,191],{"class":190},[139,377,194],{"class":146},[139,379,197],{"class":146},[139,381,200],{"class":177},[139,383,203],{"class":150},[139,385,386],{"class":157},"'\u002Fapi\u002Ftalkit\u002Fsession-grants\u002Fvoice'",[139,388,209],{"class":150},[139,390,212],{"class":157},[139,392,215],{"class":150},[139,394,395,397,399,401],{"class":142,"line":218},[139,396,221],{"class":146},[139,398,224],{"class":150},[139,400,227],{"class":146},[139,402,230],{"class":150},[139,404,405,407,409,411,413,416],{"class":142,"line":42},[139,406,235],{"class":146},[139,408,238],{"class":146},[139,410,241],{"class":177},[139,412,203],{"class":150},[139,414,415],{"class":157},"'Unable to create a TalkIt voice session grant.'",[139,417,249],{"class":150},[139,419,420,422,424,426],{"class":142,"line":33},[139,421,254],{"class":146},[139,423,257],{"class":150},[139,425,260],{"class":177},[139,427,263],{"class":150},[139,429,430],{"class":142,"line":266},[139,431,269],{"class":150},[139,433,434],{"class":142,"line":272},[139,435,165],{"emptyLinePlaceholder":164},[139,437,439,441,444,446,449],{"class":438,"line":131},[142,143],[139,440,280],{"class":146},[139,442,443],{"class":190}," call",[139,445,194],{"class":146},[139,447,448],{"class":177}," createTalkitCall",[139,450,291],{"class":150},[139,452,454,456,458],{"class":453,"line":132},[142,143],[139,455,297],{"class":150},[139,457,300],{"class":157},[139,459,303],{"class":150},[139,461,463],{"class":462,"line":133},[142,143],[139,464,309],{"class":150},[139,466,468],{"class":467,"line":134},[142,143],[139,469,315],{"class":150},[139,471,472],{"class":142,"line":318},[139,473,165],{"emptyLinePlaceholder":164},[139,475,476,478,481,484],{"class":142,"line":323},[139,477,326],{"class":146},[139,479,480],{"class":150}," call.",[139,482,483],{"class":177},"start",[139,485,263],{"class":150},[487,488,490],"h3",{"id":489},"keep-credentials-outside-browser-code","Keep credentials outside browser code",[52,492,493],{},"Create Website session grants on your trusted backend. Never commit a Website client secret or return it to the browser; the browser should receive only the short-lived grant.",[487,495,497],{"id":496},"choose-a-test-channel","Choose a test channel",[115,499,502,507],{"default":500,"items":501},"web","web:Web chat,whatsapp:WhatsApp",[120,503,504],{"v-slot:web":122},[52,505,506],{},"Use Web Chat for the fastest browser-based test. Confirm the welcome message and escalation behavior before sharing the widget.",[120,508,509],{"v-slot:whatsapp":122},[52,510,511],{},"Use a dedicated WhatsApp test number and template set so experiments do not reach production customers.",[64,513,515],{"id":514},"test-the-result","Test the result",[52,517,518],{},"Start a test conversation and confirm that the agent:",[520,521,522,525,528],"ul",{},[82,523,524],{},"follows its main instruction",[82,526,527],{},"asks for missing context",[82,529,530],{},"escalates outside its permitted scope",[52,532,533,534,96],{},"For the supported developer interfaces, continue to ",[535,536,538],"a",{"href":537},"api-reference","TalkIt developer entry points",[540,541,542],"style",{},"html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}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);}",{"title":122,"searchDepth":168,"depth":168,"links":544},[545,546,547,551],{"id":66,"depth":161,"text":67},{"id":73,"depth":161,"text":74},{"id":109,"depth":161,"text":110,"children":548},[549,550],{"id":489,"depth":168,"text":490},{"id":496,"depth":168,"text":497},{"id":514,"depth":161,"text":515},"tutorial","md",{},"\u002Fdocs\u002Fcreate-first-agent",{"title":31,"description":32},"published","docs\u002Fcreate-first-agent",[560,561],"agents","getting-started","wrnIZFPdsnruO5h1m1k-vV8pDWBOkt6wqIZjKEEto5o",1792741582915]