Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Open the chatbot source code using your favorite IDE. We recommend Visual Studio as this was the IDE used during development and the code comes with a .sln file that you can easily open as a VS Solution.

  2. Make sure you have .Net installed on your machine (min version .Net Core 3.1). If you are using Visual Studio, you can get all the required tools for .Net development from the IDE installer.

  3. In order for Twilio to be able to communicate with the chatbot on a local machine, it is necessary to use a tool that exposes your localhost to the internet. For this tutorial, we are going to use Ngrok.

  4. Download Ngrok and create a file named ‘ngrok_composer.yml’ in the same directory where ngrok.exe is located.

  5. Copy the following text into ngrok_composer.yml

    Code Block
    version: 2
    authtoken: <REPLACE WITH YOUR NGROK TOKEN>
    tunnels:
      first:
        proto: http
        addr: https://localhost:3979/
      second:
        proto: http
        addr: 80

Please note: It is assumed you also have a local Moodle instance running on port 80, is if this is not true, there is no need to add a tunnel for this port.

...