Update Dixa CSAT
After a handoff ends and the end user returns to the AI Agent, you can pass a CSAT rating back to the Dixa conversation. This lets the CSAT collected by Ada be recorded against the original Dixa conversation.
Prerequisites
Before configuring CSAT updates, make sure the following are in place:
- The Dixa Utilities app and the Dixa handoff are configured.
- The AI Agent is configured to wait for the handoff to finish, so the CSAT update runs after the handoff ends and the end user is back with the AI Agent.
- The Dixa rating type is decided. Dixa supports
Csat(values 1–5) andThumbsUpOrDown(values 0–1). UseCsatfor a 1–5 scale, orThumbsUpOrDownfor a binary thumbs up / thumbs down rating. The rating type must match in both API calls described below. See the Dixa API reference for offering a rating and submitting a rating.
Enabling the wait-for-handoff behavior requires a setting that is enabled by your Ada team. Contact your Ada representative to have it configured.
Configuration
When a handoff starts, three metavariables are stored on the conversation and are used to submit the rating back to Dixa:
agent_system_dixa_user_idagent_system_dixa_conversation_idagent_system_dixa_agent_id
To configure the CSAT update:
- On the Human Agent tab in the Ada dashboard, enable Human Agent Survey for chat so that end users are prompted with the survey when they close the human agent chat.
- In the Handoff to agent action, select both the Pause conversation here until handoff ends and Track as Handoff check boxes.
- Add two HTTP Request blocks to submit the CSAT rating to Dixa.
- The first block offers a rating on the conversation. Send a
POSTrequest to the Dixa ratingsofferendpoint foragent_system_dixa_conversation_id, with thedixa tokenin the Authorization header. In the body, setuseridtoagent_system_dixa_user_id,agentIdtoagent_system_dixa_agent_id, andratingTypeto your chosen rating type. Save the returneddata.idas a variable to use in the next request.
- The first block offers a rating on the conversation. Send a
- The second block submits the rating value. Send a
POSTrequest to the Dixa ratingssubmitendpoint, using the conversation ID and the rating ID returned by the first block. In the body, setratingResult.valueto the captured CSAT score andratingResult._typeto the same rating type used above.