- An actions-on-google action consisting in a dialogflow conversation
- A dialogflow fulfillment environment.
- Go to the Actions console.
- Click New project.
- Enter a name for your project.
- Select "Custom" and click "Next".
- Scroll down to the bottom of the page and click "Click here to build your Action using DialogFlow".
- In the upper menu, click Develop. Then, click Account linking in the left navigation.
- Enable Account Linking
- Select "No, I only want to allow account on my website"
- For the Linking Type, select "OAuth" and "Authorization" for the grant type.
- Request a Client ID and Client secret via Bouygues Telecom Open API portal : https://developer.bouyguestelecom.fr/
- Authorization URL: https://oauth2.bouyguestelecom.fr/authorize
- Token URL: https://oauth2.bouyguestelecom.fr/token
- In the upper menu, click Develop. Then, click Actions in the left navigation.
- Select "Custom action" and click "Build". You will be redirected to the Dialogflow console.
- Go to the Dialogflow console.
- Enter a name for your project and click "Create".
- In the left menu, click "Fullfillment". Then, enable "Inline Editor" or "Webhook".
- Use the code provided in the index.js and package.json files provided in this repository.
- Optionally, you can use your preferred code and all the extra functionalities provided by Dialogflow-fullfillment.
- On your phone, open Google Assistant app.
- Say "Talk with name_of_your_agent" to start chatting with your bot.
- Launch your intent and now you can link Bouygues Telecom with Google Assistant.