This repository is related to a presentation I gave at the 2018 Prairie Dev Conn in Winnipeg, MB, Canada.
The slides can be found at https://slides.com/mikesigs/talk-to-your-functions/
Here you will find both the source code for an Azure Function App, as well as the exported zip file of the related DialogFlow agent.
You will need to have the following installed to run this code:
- .NET Core 2.0
- Azure Functions Core Tools (beta)
- F#
- Visual Studio Code
- ngrok
In the src
folder you will find the the Azure Function App. It is written in F#, and acts as the fulfillment logic for a DialogFlow agent.
You can create the DialogFlow agent for yourself by importing DialogFlowAgent.zip
using the DialogFlow Console.
- Log into DialogFlow
- Create a new agent called BirthdayGreeting
- Click on Export and Import
- Click on Import From Zip and follow the instructions
- Run the Function App by pressing F5 in VS Code
- Run
ngrok http 7071
- Configure the fulfillment URL in DialogFlow to use your ngrok https URL, followed by the function route
/api/BirthdayGreeting
- Use the Google Assistant test console in DialogFlow to test the app