Configure the handoff

After you complete the initial configuration and share your credentials, your Ada team sets up the backend integration. When that is complete, you can add the Gladly handoff block to your AI Agent and configure how each handoff behaves.

Your Ada team will complete the backend integration setup. Contact your Ada representative to confirm this step is finished before you configure the handoff block.

Add the Gladly handoff block

Each handoff starts a conversation on your Gladly custom channel and routes it to the inbox mapped to the entry point you specify. In Gladly, every conversation is tied to a customer identified by email, so the end user’s email address is required on every handoff.

To add the Gladly handoff block:

  1. In your handoff answer, add the Gladly block with action Handoff to Gladly agent.
  2. Confirm the required Ada ID fields — conversation_id and end_user_id — which are pre-populated by the block automatically.
  3. Set the Entrypoint Address to the entry point that should route the conversation to the correct inbox.
  4. Map the User Email Address field to the end user’s email.
The Gladly handoff block in an Ada answer with its input fields

When a handoff connects to Gladly, the following meta-variables are set on the conversation and can be used for troubleshooting or reporting:

  • agent_system_gladly_conversation_id — set when the handoff is initiated.
  • agent_system_gladly_agent_id — set when the first agent message is received.

By default, the Gladly conversation is closed when the end user closes the Ada window. To keep the Gladly conversation open instead, provide a Close Chat Message. When set, closing the Ada window posts this message as a note and leaves the Gladly conversation open.

Handoff input fields

The Gladly block accepts the following input fields. The email address identifies the customer in Gladly, so it is always required.

FieldRequiredDescription
conversation_idYesConversation ID. Pre-populated by the block.
end_user_idYesEnd user ID. Pre-populated by the block.
user_emailYesEnd user email. Used to identify the customer in Gladly.
entrypoint_nameYesThe entry point that determines inbox routing for the handoff.
user_firstnameNoEnd user first name.
user_lastnameNoEnd user last name.
user_phoneNoEnd user phone number.
group_idNoGroup identifier, used when Grouping is enabled.
group_nameNoGroup name, used when Grouping is enabled.
gladly_noteNoText posted as a note on the Gladly conversation, for example a transcript summary.

Route conversations to topics

You can associate a handoff with Gladly topics to organize conversations. Regular topics and freeform topics are set through different fields.

  • For regular topics, set gladly_topic_ids to a comma-separated list of topic IDs. Invalid IDs are ignored.
  • For freeform topics, use a field named gladly_freeform_topic_<topic name> — for example, gladly_freeform_topic_billing. The topic name must already be defined in Gladly, or the freeform topic is ignored.

Add custom attributes

Custom attributes let you pass additional data to Gladly on each handoff. Because adding fields to the block requires a change on Ada’s side, your Ada team configures them for you.

To add custom attributes or additional input fields to the Gladly block, contact your Ada team. You can request more fields at any time.

Custom attributes are set on the Gladly customer record and added as an internal note on the conversation. They are not displayed directly in the Gladly dashboard — see Limitations.

Test the handoff

The Gladly handoff can run at the same time as your existing handoff integrations, so you can test it without downtime.

To test the handoff:

  1. Add the Gladly handoff block to a separate test handoff answer rather than a live one.
  2. Trigger a handoff from the AI Agent so a conversation is created on your Gladly custom channel.
  3. In Gladly, confirm the conversation appears in the inbox mapped to the entry point you used.
  4. As the agent, send a reply. The message appears in the Ada conversation.
  5. Resolve the conversation in Gladly, or close the Ada window. The end user can then start a new conversation with the AI Agent.

Once you have verified the handoff, add the block to your live handoff answers and disconnect any previous handoff integration you are replacing.