Tim Kosmala

2 min

Integrate Dialogflow with WhatsApp, Instagram, Signal and more…

Updated: Jan 31, 2023

AutoResponder is the best way to connect Dialogflow to WhatsApp, Facebook Messenger, Instagram, Telegram, Signal or Viber. It acts as a bridge and offers many additional features. AutoResponder is easy to use and does not require an account. Try it now for free!

Dialogflow lets you create powerful conversations using artificial intelligence.

Features include: Machine Learning, Natural Language Understanding with complex sentences, extract data from messages, contexts, advanced submenus (Follow-up intents), API integrations, Analytics, Knowledge Base, Small Talk and more.

Follow these steps to get your Dialogflow JSON key and set up your AutoResponder

1. Get AutoResponder.

2. Open your Dialogflow ES console.

3. In your console click on the gear icon to the right of the agent name.

4. Under the General tab click on your blue Project ID.

5. Now your Google Cloud Platform console should open.

6. In the navigation menu go to IAM & Admin and then Service Accounts.

7. Click on the Create Service Account button at the top of the page.

8. Enter a name for the service account.

9. Click on Create.

10. Select the Dialogflow API Client role (not Admin!).

11. Click Continue and then Done.

12. Click on the service account you have just created and select the Keys tab.

13. Click on Create new key.

14. Create a key with type JSON.

15. Save the JSON file and import it in AutoResponder by adding a new rule and selecting the Dialogflow option.

16. In your AutoResponder rule, set the received messages that should be processed by Dialogflow. It is usually recommended to use the All button in the upper right corner to process all messages.

17. That's it! You can now test your Dialogflow integration.

Tip: You can use AutoResponder's answer replacements (e.g. %name%) in your Dialogflow reply messages.

Info: AutoResponder sends the contact's name or number (as displayed in the messenger chat list) as the Session ID to Dialogflow in case you need it for e.g. the webhook.

Troubleshooting

If you get the following Dialogflow error:

Dialogflow ES error: Error getting access token for service account: 400 Bad Request {"error":"invalid_grant","error_description":"Invalid JWT: Token must be a short-lived token (60 minutes) and in a reasonable timeframe. Check your iat and exp values in the JWT claim."}

the time of your device is wrong. Please set the correct system time.

    47764
    229