Reputation: 35
I'm trying to use a Translate API webhook to enable multi-language functionality in my DialogFlow agent.
Not sure how to have the translated text from the fulfillment go through all the intents and match accordingly. Please help?
Upvotes: 1
Views: 1044
Reputation: 50721
For your step 3, you'll want to call Dialogflow's API with the translated text. If you're using Dialgogflow v1, you'll be calling the /query endpoint. If you're using Dialogflow v2, you'll need to have a session setup and then use the detectIntent action.
You'll then take the result you get back from this call and translate it back into the user's language, and send the result to them.
Upvotes: 2