Installation


You can install Retell Player through NPM

npm install --save @retell/player-js 
yarn add @retell/player-js

OR, you can use CDN

<script src="https://unpkg.com/@retell/[email protected]/dist/common.min.js"></script>

Initialize the Retell player


To initialize Retell Player, use the following:

<script data-voiced="player">Retell.init() </script>
<script data-voiced="player">Retell.init({ url: '...' })</script>

if you install player through NPM you should import the package:

import { Retell } from '@retell/player-js'

Player Parameters


Name

Type

Description

Default

url

String

URL of the article, which should appeared in the player

Current page URL

widget

String

Widget theme

default

Did this answer your question?