Integrate your telephony system with PolyAI using a Pool of DNIs.
Reserve DNI
endpointGet Handoff
endpointaccount_id
and project_id
+12345
).shared_id
is the same ID you would have sent above:Reserve DNI
API.Get Handoff
API to show them when invoked.start_function
.
Not doing it here would mean losing them for all the conversations, making it impossible for the integration to work.
In your start_function
, attributes are stored in the integration_attributes
field as a dictionary.
Retrieve them like this (assuming the attributes sent are the ones in the example above):
state
variables that you desire.
The most useful variables are often:
conv.state.handoff_reason
conv.state.handoff_to
But you can always expose more based on your use case.state
variables, the Handoff API will expose them
(as long as it is configured to do so).
At the moment, configuration can only be done by your PolyAI contact. Send them all the
variables you want to expose, and they will be able to set up the Handoff API accordingly.