T-Mobile Assistant Dashboard

Creating a call center has never been easier. With T-Mobile assistant, receive calls from your customers and have them routed to the right agent in a matter of seconds.

Empower your customers today with only a few lines of code.

1
pnpm install @tmobile-assistant/connect-anywhere-widget @tmobile-assistant/react
1
export default function Page(): JSX.Element {
2
return (
3
<div>
4
...
5
<ConnectAnywhereWidget
6
agent="425-303-1302"
7
clientId="tmon-0je2N5pMRp4MQILA"
8
clientURLBase="http://localhost:3000/"
9
clientSecret="uhovwZQga"
10
/>
11
...
12
</div>
13
);
14
}

Access all the APIs from T-Mobile Assistant in your React application

1
pnpm install @tmobile-assistant/react
1
export default function Page(): JSX.Element {
2
return (
3
<TMobileProvider>
4
...children
5
</TMobileProvider>
6
);
7
}
8
9
// Access the following...
10
const { instance, TMCore, TMCall, subscribeToCore, subscribeToCall } = useTMobile();
11
12
// Core SDK library functions
13
instance.startApp()
14
instance.userSignIn()
15
instance.getActiveCall()
16
17
// Reactive State Management
18
const coreState = TMCore.getState()
19
coreState.connectionStatus
20
coreState.networkConnection
21
22
// Call State Management
23
const callState = TMCall.getState()
24
callState.activeLine
25
callState.call.end()
26
27
// Listeners
28
subscribeToCore((state) => { ... })
29
subscribeToCall((state) => { ... })
30

Powered with AI and the latest technologies

openai
vercel
vercel