2.4.87 • Published 28 days ago
@upscopeio/twilio-flex-component v2.4.87
Upscope Twilio Flex Component
Install
yarn add @upscopeio/twilio-flex-component
Adding the Integration on Upscope
In Upscope go to your settings > integrations and click on Twilio Flex to generate a Token.
Copy that Token and add it to the UpscopeWidget
component on Flex (see instructions below).
Adding to Twilio Flex
import UpscopeWidget from '@upscopeio/twilio-flex-component';
As this is a beta version we support only AgentDesktopView
for now
flex.AgentDesktopView.Panel2.Content.replace(
<UpscopeWidget
upscopeIntegrationToken={process.env.FLEX_APP_API_KEY}
upscopeEnv='development'
key={`main-component_${Math.floor(10000000 + Math.random() * 90000000)}`} />
)
Props
name | description |
---|---|
upscopeIntegrationToken | Environment variable with the Twilio Flex integration token from Upscope |
upscopeEnv | Environment of Upscope's servers: production\|staging\|development |
key | A random value for the React component key |