https://retellai.com/?utm_source=discord&utm_medium=seo logo
Hey, could you help me with webcall feature im los...
# ❓・ai-evy-support
l
@AI Evy Hey, could you help me with webcall feature im lost and i dont know how to use it, like chat gpt gives me some sort of code i put it in notepad and add .html when saving a file then load it from chrome or opera and write in access token for call but it doesnt work
a
Thanks for tagging me @lebacc. I'll look through relevant sources and get back to you shortly.
### Answer I can help you set up web calls properly using Retell AI's official approach [(1) ]() . The issue you're experiencing is likely because web calls require both proper SDK setup and a backend server to generate access tokens [(2) ]() . Here's the correct way to implement web calls: Step 1: Install the SDK [(1) ]()
Copy code
bash
npm install retell-client-js-sdk
Step 2: Set up the SDK
Copy code
javascript
import { RetellWebClient } from "retell-client-js-sdk";
const retellWebClient = new RetellWebClient() ;
Step 3: Get access token from your backend Your client code should call your server endpoint which internally calls the create web call API to get the access token . The endpoint requires using your Retell API Key, which is why you need to call it from the server instead of client to protect the key . Step 4: Start the call
Copy code
javascript
await retellWebClient.startCall({
 accessToken: createCallResponse.access_token,
}) ;
Important notes: - You cannot just paste an access token into HTML - it must be obtained dynamically from your backend - If you do not start the call within 30s of obtaining the access token, it will be invalidated and the call will be marked with error - There's a working demo available at that includes both frontend and backend components [(3) ]() The key issue is that web calls require a proper backend server to generate access tokens securely - you can't just hardcode them in HTML files [(2) ]() [(1) ]() .
​ To learn more, see the sources I considered: [[1] Connect to web call](https://docs.retellai.com/deploy/web-call) [[2] Create Web Call](https://docs.retellai.com/api-references/create-web-call) [[3] webcall](https://discord.com/channels/1186424376300679209/1319342126198427658) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
l
hey sorry i dont understand, what does install the sdk mean, is that like a program i instal on my pc?
@AI Evy hey sorry i dont understand, what does install the sdk mean, is that like a program i instal on my pc?
a
Thanks for the follow-up, @lebacc. I'll get back to you soon.
### Answer No, installing the SDK is not like installing a program on your PC. The SDK (Software Development Kit) is a package that you install into your web development project [(1) ]() . Here's what you need to understand: What is the SDK? The SDK is a collection of code tools that help you integrate Retell AI into web applications . It's specifically the
retell-client-js-sdk
package that contains JavaScript code for handling web calls [(2) ]() . How to install it: You need Node.js (a JavaScript runtime) installed on your computer first [(1) ]() . The SDK requires Node.js version 18.10.0 or higher . Once you have Node.js, you install the SDK using this command in your project folder:
Copy code
npm i retell-sdk
What this does: This downloads the Retell AI code package into your project so you can use it in your web application . It's not a standalone program - it's code that becomes part of your web project. For web calls specifically: The frontend web JS SDK abstracts away audio complexity for you, capturing user audio in PCM format and sending it to the backend for processing [(3) ]() . If you're new to web development, you might want to start with the working demo that includes both frontend and backend components, which can help you understand how all the pieces fit together.
​ To learn more, see the sources I considered: [[1] SDKs](https://docs.retellai.com/get-started/sdk) [[2] Connect to web call](https://docs.retellai.com/deploy/web-call) [[3] Audio Basics](https://docs.retellai.com/knowledge/audio-basics) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
l
@AI Evy this is what i wrote and what i got npm i retell-sdk npm should be run outside of the Node.js REPL, in your normal shell.
a
Thanks for the follow-up, @lebacc. I'll get back to you soon.
### Answer The error message "npm should be run outside of the Node.js REPL, in your normal shell" means you're currently inside the Node.js interactive environment instead of your regular command prompt [(1) ]() . Here's how to fix this: 1. Exit Node.js first - If you see a
>
prompt, type
.exit
and press Enter to get back to your normal command prompt 2. Use your system's command prompt/terminal - You need to run npm commands in: - Windows: Command Prompt or PowerShell - Mac/Linux: Terminal 3. Navigate to your project folder - Use
cd
command to go to where you want to create your project 4. Then run the install command - Once you're in the right location with the normal command prompt, run:
Copy code
npm i retell-sdk
For web calls specifically, you need a different package: For web calls, you actually need the client-side SDK, which is installed with a different command. The main
retell-sdk
is for server-side Node.js applications . What you're trying to do: Since you mentioned wanting to create web calls in HTML, you'll need to set up a proper web development environment with both frontend and backend components, as web calls require server-side token generation for security . The key is making sure you're in your regular system terminal/command prompt, not inside the Node.js interactive environment.
​ To learn more, see the sources I considered: [[1] SDKs](https://docs.retellai.com/get-started/sdk) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
l
@AI Evy sorry but i dont get it. when i write .exit in node js it just closes the program. where should i go to write that npm i retell sdk code to. why do i then need node js if i dont write it there.
a
Thanks for the follow-up, @lebacc. I'll get back to you soon.
### Answer I understand your confusion! Let me clarify where to run these commands. Node.js vs Command Prompt/Terminal: Node.js serves two purposes: 1. Runtime environment - It runs JavaScript code on your computer (not just in browsers) 2. Package manager access - It comes with
npm
(Node Package Manager) that you use from your system's command line Where to run the npm command: You need to use your system's command prompt/terminal, not the Node.js interactive program: - **Windows**: Search for "Command Prompt" or "PowerShell" in your Start menu - **Mac**: Search for "Terminal" in Spotlight - **Linux**: Open Terminal application Step-by-step process: 1. Open your system's command prompt/terminal (not Node.js) 2. Navigate to where you want your project using
cd
command 3. Run the install command:
Copy code
npm i retell-sdk
[(1) ]() Why you need Node.js if you don't write commands in it: Node.js provides the
npm
tool that downloads and manages JavaScript packages . When you run
npm i retell-sdk
from your command prompt, it uses Node.js behind the scenes to download the Retell SDK package [(2) ]() . For web calls specifically: The Retell Node SDK requires Node.js version 18.10.0 or higher [(1) ]() . This package provides TypeScript support and simplified authentication for integrating with Retell AI . The key is using your system's regular command line interface, not the Node.js interactive environment.
​ To learn more, see the sources I considered: [[1] SDKs](https://docs.retellai.com/get-started/sdk) [[2] Retell Node API Library](https://github.com/RetellAI/retell-typescript-sdk/blob/main/README.md) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
l
Microsoft Windows [Version 10.0.19045.6332] (c) Microsoft Corporation. All rights reserved. C:\Users\38597>cd C:\Users\38597 C:\Users\38597>cd C:\Users\38597 C:\Users\38597> @AI Evy this is what i wrote and got in prompt terminal, should i just now write npm i retell sdk
a
Thanks for the follow-up, @lebacc. I'll get back to you soon.
### Answer Perfect! You're now in the right place - the Windows Command Prompt. However, there are two different SDK packages depending on what you're trying to build: For web calls (which is what you mentioned wanting) , you need:
Copy code
npm install retell-client-js-sdk
[(1) ]() For server-side Node.js applications, you would use:
Copy code
npm i retell-sdk
[(2) ]() Since you mentioned wanting to create web calls that work in Chrome/Opera, you want the first command:
npm install retell-client-js-sdk
[(1) ]() . Next steps after installing: 1. Create a project folder - You might want to create a dedicated folder for your project first 2. Set up the SDK - After installation, you'll use this code:
Copy code
javascript
import { RetellWebClient } from "retell-client-js-sdk";
const retellWebClient = new RetellWebClient() ;
Important note: As mentioned in our previous discussion, web calls require both frontend and backend components . You can't just create an HTML file with hardcoded access tokens - you need a server to generate access tokens securely . The access token must be obtained from your server endpoint which internally calls the create web call API, and if you don't start the call within 30 seconds of obtaining the access token, it will be invalidated . So yes, run
npm install retell-client-js-sdk
in your current command prompt location!
​ To learn more, see the sources I considered: [[1] Connect to web call](https://docs.retellai.com/deploy/web-call) [[2] SDKs](https://docs.retellai.com/get-started/sdk) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
l
wait i didnt read everything you said i only ran this code in terminal @AI Evy . added 17 packages in 7s 2 packages are looking for funding run
npm fund
for details npm notice npm notice New patch version of npm available! 11.6.0 -> 11.6.1 npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.6.1 npm notice To update run: npm install -g npm@11.6.1 npm notice C:\Users\38597> and this is what i got. what now
a
Thanks for the follow-up, @lebacc. I'll get back to you soon.
### Answer Great! The SDK installation was successful - you can see it "added 17 packages in 7s" which means the
retell-client-js-sdk
is now installed [(1) ]() . What you have now: The SDK is installed in your current directory (
C:\Users\38597
) , which means you have the Retell Web SDK available for use . Next steps to create a basic web call setup: 1. Create your project files - You'll need at least an HTML file and a JavaScript file to use the SDK . 2. Set up the SDK in your JavaScript code:
Copy code
javascript
import { RetellWebClient } from "retell-client-js-sdk";
const retellWebClient = new RetellWebClient() ;
Important reality check: However, as I mentioned before, you still need a backend server to generate access tokens securely [(2) ]() . You cannot just hardcode access tokens in HTML files because: - Your client code should call your server endpoint which internally calls create web call to get the access token [(1) ]() - The endpoint requires using your Retell API Key, which is the reason why you need to call the endpoint from the server instead of client to protect the key from exposing - If you do not start the call within 30s obtaining the access token, we will invalidate it and the call will be marked with error Recommended approach: Since you're new to web development, I'd suggest checking out the open-source demo repositories that show working examples with both frontend and backend components [(3) ]() : - Node.js backend demo - React frontend demo using SDK These demos will show you exactly how to set up both the server-side token generation and client-side web calling functionality.
​ To learn more, see the sources I considered: [[1] Connect to web call](https://docs.retellai.com/deploy/web-call) [[2] Create Web Call](https://docs.retellai.com/api-references/create-web-call) [[3] Introduce Our Latest Feature: Function Calling](https://www.retellai.com/changelog/introduce-our-latest-feature-function-calling) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
l
@AI Evy i dont understand what does this mean Next steps to create a basic web call setup: Create your project files - You'll need at least an HTML file and a JavaScript file to use the SDK . Set up the SDK in your JavaScript code: import { RetellWebClient } from "retell-client-js-sdk"; const retellWebClient = new RetellWebClient() ; like where do i go right now and what do i do. tell me step by step what to do
a
Thanks for the follow-up, @lebacc. I'll get back to you soon.
### Answer I understand you need specific step-by-step instructions! Let me break it down into simple actions you can take right now: Step 1: Create a project folder 1. In your Command Prompt (where you are now) , type:
mkdir my-retell-project
2. Press Enter 3. Type:
cd my-retell-project
4. Press Enter Step 2: Create your HTML file 1. Type:
notepad index.html
2. Press Enter (this opens Notepad with a new file) 3. In Notepad, type a basic HTML structure 4. Save and close Notepad Step 3: Create your JavaScript file 1. Type:
notepad script.js
2. Press Enter 3. In Notepad, you would put the SDK code:
Copy code
javascript
import { RetellWebClient } from "retell-client-js-sdk";
const retellWebClient = new RetellWebClient() ;
[(1) ]() However, there's a critical issue: The approach you're trying (creating HTML files and opening them in Chrome) will not work for web calls . Here's why: - Your client code should call your server endpoint which internally calls create web call to get the access token - The endpoint requires using your Retell API Key, which is the reason why you need to call the endpoint from the server instead of client to protect the key from exposing - If you do not start the call within 30s obtaining the access token, we will invalidate it and the call will be marked with error What you actually need: Web calls require both a backend server (to generate access tokens) and frontend code (to handle the call) [(2) ]() . You cannot just create an HTML file with hardcoded tokens. My recommendation: Since you mentioned in Discord that you're looking for open source code to run on your machine [(3) ]() , I'd suggest starting with a complete working example that includes both parts rather than trying to build from scratch.
​ To learn more, see the sources I considered: [[1] Connect to web call](https://docs.retellai.com/deploy/web-call) [[2] Create Web Call](https://docs.retellai.com/api-references/create-web-call) [[3] Discord message from @cagrik_8 on 2024-10-29](https://discord.com/channels/1186424376300679209/1186462578310910112/1300771422662037585) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
l
@AI Evy i have backend that generates it access token. what do i name this file now with this import { RetellWebClient } from "retell-client-js-sdk"; const retellWebClient = new RetellWebClient() ; is it index.htm;?
a
Thanks for the follow-up, @lebacc. I'll get back to you soon.
### Answer Great! Since you have a backend that generates access tokens, you're on the right track. The JavaScript code with the SDK should go in a
.js
file, not
.html
[(1) ]() . File naming: 1. **HTML file**: Name it
index.html
2. **JavaScript file**: Name it something like
script.js
or
main.js
Here's the complete setup: Step 1: Create your HTML file (
index.html
) :
Copy code
html
<!DOCTYPE html>
<html>
<head>
    <title>Retell Web Call</title>
</head>
<body>
    <button id="startCall">Start Call</button>
    <button id="stopCall">Stop Call</button>
    <script type="module" src="script.js"></script>
</body>
</html>
Step 2: Create your JavaScript file (
script.js
) :
Copy code
javascript
import { RetellWebClient } from "retell-client-js-sdk";
const retellWebClient = new RetellWebClient() ;
Step 3: Add the call functionality:
Copy code
javascript
await retellWebClient.startCall({
 accessToken: createCallResponse.access_token,
}) ;
Step 4: Add stop call functionality:
Copy code
javascript
retellWebClient.stopCall() ;
Important notes: - The
import
statement requires
type="module"
in your HTML script tag - You'll need to get the access token from your backend before calling
startCall
- The access token must be used within 30 seconds of generation or it will be invalidated Since you have the backend ready, you just need to connect it to fetch the access token and pass it to the
startCall
method .
​ To learn more, see the sources I considered: [[1] Connect to web call](https://docs.retellai.com/deploy/web-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
l
@AI Evy where do i add this Step 3: Add the call functionality: await retellWebClient.startCall({ accessToken: createCallResponse.access_token, }) ; Step 4: Add stop call functionality: retellWebClient.stopCall() ;
a
Thanks for the follow-up, @lebacc. I'll get back to you soon.
### Answer You add both the call functionality and stop call functionality inside your
script.js
file [(1) ]() . Here's the complete structure: Your
script.js
file should look like this:
Copy code
javascript
import { RetellWebClient } from "retell-client-js-sdk";
const retellWebClient = new RetellWebClient() ;

// Add event listeners for your buttons
document.getElementById('startCall') .addEventListener('click', async () => {
    // Get access token from your backend first
    const response = await fetch('/your-backend-endpoint') ;
    const createCallResponse = await response.json() ;
    
    // Start the call
    await retellWebClient.startCall({
        accessToken: createCallResponse.access_token,
    }) ;
}) ;

document.getElementById('stopCall') .addEventListener('click', () => {
    retellWebClient.stopCall() ;
}) ;
Where each part goes: 1. Import and initialization - At the top of
script.js
2. Start call functionality - Inside a function that gets triggered when user clicks the start button 3. Stop call functionality - Inside a function that gets triggered when user clicks the stop button Important notes: - You need to replace
/your-backend-endpoint
with the actual URL of your backend that generates access tokens - The access token must be obtained fresh each time from your backend - If you do not start the call within 30s of obtaining the access token, it will be invalidated and the call will be marked with error Optional: Add event listeners for call events:
Copy code
javascript
retellWebClient.on("call_started", () => {
    console.log("call started") ;
}) ;
retellWebClient.on("call_ended", () => {
    console.log("call ended") ;
}) ;
retellWebClient.on("error", (error) => {
    console.error("An error occurred:", error) ;
    retellWebClient.stopCall() ;
}) ;
​ To learn more, see the sources I considered: [[1] Connect to web call](https://docs.retellai.com/deploy/web-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
l
@AI Evy you are confusing me right now. tell me all the files i need to make, what to put in them, and how to run a successful webcall
a
Thanks for the follow-up, @lebacc. I'll get back to you soon.
### Answer I understand you need a clear, simple breakdown. Here's exactly what you need to create a successful web call: ## Files You Need to Create *1. HTML File (
index.html
) *
Copy code
html
<!DOCTYPE html>
<html>
<head>
    <title>Retell Web Call</title>
</head>
<body>
    <button id="startCall">Start Call</button>
    <button id="stopCall">Stop Call</button>
    <script type="module" src="script.js"></script>
</body>
</html>
*2. JavaScript File (
script.js
) *
Copy code
javascript
import { RetellWebClient } from "retell-client-js-sdk";
const retellWebClient = new RetellWebClient() ;

// Event listeners for call events
retellWebClient.on("call_started", () => {
 console.log("call started") ;
}) ;

retellWebClient.on("call_ended", () => {
 console.log("call ended") ;
}) ;

retellWebClient.on("error", (error) => {
 console.error("An error occurred:", error) ;
 retellWebClient.stopCall() ;
}) ;

// Start call button
document.getElementById('startCall') .addEventListener('click', async () => {
    try {
        // Get access token from your backend
        const response = await fetch('/create-web-call') ;
        const createCallResponse = await response.json() ;
        
        // Start the call
        await retellWebClient.startCall({
         accessToken: createCallResponse.access_token,
        }) ;
    } catch (error) {
        console.error('Failed to start call:', error) ;
    }
}) ;

// Stop call button
document.getElementById('stopCall') .addEventListener('click', () => {
    retellWebClient.stopCall() ;
}) ;
[(1) ]() ## Backend Requirement You mentioned you have a backend that generates access tokens. Your backend must: 1. Call the create web call API endpoint [(2) ]() 2. Use your Retell API Key (keep this secret on the server) [(1) ]() 3. Return the access token to your frontend ## How to Run 1. **Serve your files**: You cannot just open the HTML file directly in Chrome because of module imports. You need to serve it through a web server 2. **Simple server option**: In your project folder, run:
Copy code
npx http-server
3. **Access your page**: Open ` in your browser ## Critical Points - Your client code should call your server endpoint which internally calls create web call to get the access token - If you do not start the call within 30s obtaining the access token, we will invalidate it and the call will be marked with error - The access token obtained will be used in your frontend client code to start the call ## Working Demo Available There's a complete working example at the React demo repository that shows both frontend and backend components working together [(6) ]()
​ To learn more, see the sources I considered: [[1] Connect to web call](https://docs.retellai.com/deploy/web-call) [[2] Create Web Call](https://docs.retellai.com/api-references/create-web-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
l
@AI Evy can i use https://jsfiddle.net/ instead of localhost i cant open it
a
Thanks for the follow-up, @lebacc. I'll get back to you soon.
### Answer Unfortunately, JSFiddle won't work for Retell AI web calls. Here's why: Technical limitations with JSFiddle: 1. **Backend requirement**: Web calls require a backend server to generate access tokens securely [(1) ]() . JSFiddle only runs frontend code and cannot make server-side API calls to create web call tokens. 2. **API Key security**: Your client code should call your server endpoint which internally calls create web call to get the access token . The endpoint requires using your Retell API Key, which is the reason why you need to call the endpoint from the server instead of client to protect the key from exposing . 3. **Module imports**: The Retell SDK uses ES6 modules that require proper server setup. JSFiddle has limitations with module imports from npm packages. Alternative solutions if localhost isn't working: 1. **Use ngrok**: This creates a public URL that forwards to your local server. The video tutorial shows exactly how to do this [(2) ](

▾

) [(3) ](

▾

) :
Copy code
ngrok http <http://localhost:8080>
[(2) ](

▾

) 2. **Deploy to a hosting service**: You can deploy your backend to services like Vercel, Netlify, or Heroku. 3. **Use the GitHub demo**: There's a complete working Node.js and React demo available that you can clone and run [(2) ](

▾

) [(3) ](

▾

) . Why localhost might not be opening: If
npx http-server
isn't working, try: - Check if Node.js is properly installed - Try a different port:
npx http-server -p 3000
- Use Python's built-in server:
python -m http.server 8000
The key issue is that Retell web calls require both frontend and backend components working together - something JSFiddle cannot provide [(1) ]() .
​ To learn more, see the sources I considered: [[1] Create Web Call](https://docs.retellai.com/api-references/create-web-call) [[2] [5 min] Integrate Retell Voice Agent with Node.js and React on Localhost](

https://www.youtube.com/watch?v=Tz969io9cPc▾

) [[3] [5 min] Integrate Retell Voice Agent with Node.js and React on Localhost](

https://www.youtube.com/watch?v=Tz969io9cPc▾

) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
l
@AI Evy okay so can you now tell me step by step from 0 exactly what i need to do to be able to do web call
a
Thanks for the follow-up, @lebacc. I'll get back to you soon.
### Answer [(1) ]() , [(2) ]() , [(3) ]() , [(4) ]() , [(5) ]() , [(6) ]() , [(7) ]() # Complete Step-by-Step Guide for Retell AI Web Calls ## Prerequisites You Need 1. Node.js installed (version 18.10.0 or higher) [(1) ]() 2. Retell AI account with API key 3. Agent ID from your Retell dashboard ## Step 1: Set Up Your Project In Command Prompt:
Copy code
mkdir retell-web-call-project
cd retell-web-call-project
npm init -y
## Step 2: Install Required Packages Frontend SDK:
Copy code
npm install retell-client-js-sdk
Backend SDK:
Copy code
npm install retell-sdk
## Step 3: Create Backend Server (server.js)
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const webCallResponse = await client.call.createWebCall({ agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD' }) ;
console.log(webCallResponse.agent_id) ;
[(2) ]() ## Step 4: Create Frontend Files HTML file (index.html) :
Copy code
html
<!DOCTYPE html>
<html>
<head>
    <title>Retell Web Call</title>
</head>
<body>
    <button id="startCall">Start Call</button>
    <button id="stopCall">Stop Call</button>
    <script type="module" src="script.js"></script>
</body>
</html>
JavaScript file (script.js) :
Copy code
javascript
import { RetellWebClient } from "retell-client-js-sdk";
const retellWebClient = new RetellWebClient() ;
[(1) ]() Add call functionality:
Copy code
javascript
await retellWebClient.startCall({
 accessToken: createCallResponse.access_token,
}) ;
Add stop functionality:
Copy code
javascript
retellWebClient.stopCall() ;
Add event listeners:
Copy code
javascript
retellWebClient.on("call_started", () => {
 console.log("call started") ;
}) ;
retellWebClient.on("call_ended", () => {
 console.log("call ended") ;
 setIsCallActive(false) ;
}) ;
retellWebClient.on("agent_start_talking", () => {
 console.log("agent_start_talking") ;
}) ;
retellWebClient.on("agent_stop_talking", () => {
 console.log("agent_stop_talking") ;
}) ;
retellWebClient.on("update", (update) => {
 // console.log(update) ;
}) ;
retellWebClient.on("error", (error) => {
 console.error("An error occurred:", error) ;
 // Stop the call
 retellWebClient.stopCall() ;
}) ;
## Step 5: Run Your Application 1. Start your backend server (to generate access tokens) 2. Serve your frontend files using:
Copy code
npx http-server
3. Open browser to ` ## Critical Requirements - Your client code should call your server endpoint which internally calls create web call to get the access token - The endpoint requires using your Retell API Key, which is the reason why you need to call the endpoint from the server instead of client to protect the key from exposing - If you do not start the call within 30s obtaining the access token, we will invalidate it and the call will be marked with error ## Complete Working Example Structure Your project should have these files: -
package.json
(created by npm init) -
server.js
(backend to generate tokens) -
index.html
(frontend interface) -
script.js
(frontend SDK implementation) The access token obtained will be used in your frontend client code to start the call .
​ To learn more, see the sources I considered: [[1] Connect to web call](https://docs.retellai.com/deploy/web-call) [[2] Create Web Call](https://docs.retellai.com/api-references/create-web-call) [[3] Update Call](https://docs.retellai.com/api-references/update-call) [[4] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[5] List Calls](https://docs.retellai.com/api-references/list-calls) [[6] Discord message from @cartier5 on 2024-07-19](https://discord.com/channels/1186424376300679209/1186462578310910112/1263663612233383956) [[7] Implement SDK/API for Web Calls to Registered Users](https://discord.com/channels/1186424376300679209/1268506321112530944) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.