Skip to content

local_ngrok

Juliana Damasio Oliveira edited this page May 18, 2021 · 2 revisions

Testing project locally with ngrok

The ngrok it is another alternative that also generates a secure and instant URL for the localhost server running on your machine.

Access https://ngrok.com/ and click on Get started for free.

You can register by filling out the form or use your Google or Github account to access the service. Follow the installation instructions for your operating system.

With the JaCaMo application running (gradle run), open a new terminal and navigate to the folder where the ngrok is saved. Run the following command:

./ngrok http 8080

Copy the https link generated by ngrok.

Paste this copied https link in the tab fulfillment your Dialogflow agent at Webhook/URL and click Save.
To see how to create dialogflow intentions click here.

Now, you can now make calls directly from your chatbot in Dialogflow to your agent Jason running on your machine.

PS.

  • The limitation of use in the free account of ngrok is 40 connections/minute.
  • Each time you run the ngrok it generates a new URL, so it is necessary to change the URL in Dialogflow every time. However, you can stop and restart your JaCaMo application several times without the need to restart the execution of the ngrok.

Useful links