Getting started
Change conversation language based on end user’s selection on any channel
Before you begin
Before you start, make sure you have everything you need:
- An API token stored securely in Ada’s Token Vault
Configure languages in your bot
- In your bot’s language settings, configure the following:
- Ensure multilingual and auto-translation are enabled in your bot.
- Enable language support in your dashboard for 1 or 2 additional languages. We’ll use French and Portuguese in this example.
- In your bot’s greeting, use a List Option block to present the language options you selected to your user.
- Use a Request block to set the end user’s language to their list selection.
Language codes must be in BCP 47 4-digit format, per the End Users API schema.
- Save your greeting.
- Test the greeting in your Test Bot, embed, or any other channel. The conversation language should change immediately based on the end user’s selection, and the bot should immediately respond using the appropriate translation.
Get notified at your webhook when an Ada end user is created or updated
Before you begin
Before you set up your webhook, make sure you have everything you need:
- An Ada dashboard with the Test Bot enabled (or any other supported channel where your bot is active)
- An API token
Set up your webhook
- Set up a test webhook, or bring your own, with Ada’s webhooks manager.
- On the Ada dashboard, find your webhook settings.
- If you’re using a generative AI Agent, go to Platform > Webhooks.
- If you’re using a scripted bot, go to Settings > Integrations > Webhooks.
- Click Add Endpoint to get started. If you don’t have your own endpoint, configure a test endpoint using Svix Play.
- In the Message Filtering section, subscribe to both
v1.end_user.updated
andv1.end_user.created
events. - Click Create to save your endpoint.
- On the Ada dashboard, find your webhook settings.
- Open your Test Bot in a new tab or window and start a conversation.
- In a separate tab, open the Webhooks Logs to monitor new events. You’ll see the conversation with your Test Bot has created an end user! There will be a corresponding log entry called
v1.end_user.created
. - Click on the log to see the webhook event payload and copy the
end_user_id
value. - Make a PATCH request with the following payload:
JSON
- Check the Webhooks Logs tab. A successful PATCH request will generate a
v1.end_user.updated
log. - You can continue to chat with Test Bot while making these changes to the end user. The End Users API can update records at any point whether a conversation is active or not. Go ahead and send a few messages to your bot!
- Finally, go the Conversations View and find your conversation. You’ll see that the metavariables are updated from the PATCH request.
That’s it! You have the building blocks to create an integration between your customer data platform and Ada’s End Users API. Your integration can ingest webhook events and use the PATCH endpoint to send user details to Ada so that features such as Article Rules can be applied automatically for your end users.