ben
ben

Reputation: 401

How to test a local bot?

I developed a simple bot on my machine (http://localhost:3978). I would like to embed a custom chat client in my web site using direct line API. Is there a way I can test this without deploying my bot to an Azure website ? I would like to be able to debug on my local machine (without having to do Azure remote debugging...).

I tried to register my bot with a localhost endpoint (http without basic auth and https) but it did not work...

Upvotes: 4

Views: 3843

Answers (5)

amit pundir
amit pundir

Reputation: 1

by using the ngrock it create a fake url that redirect to your machine.

Upvotes: -3

Mohus
Mohus

Reputation: 109

one of the possible solution is to use ngrok that creates a "fake" https endpoint forwarding to your local machine

https://ngrok.com/

I tested it successfully with facebook messenger platform on a windows laptop

Upvotes: 5

John Kelvie
John Kelvie

Reputation: 858

We have a tool that we built for just this purpose: http://docs.bespoken.tools/en/latest/commands/proxy/

Requests and responses from the BOT Framework will be sent directly to your machine. We built this originally to assist with Alexa skill development, but it is also useful here.

We also have wrappers for AWS Lambdas in Node.js and Python. This allows you to just write Lambda code and not worry about making them available as an HTTP service.

Our Github projects are here: https://github.com/bespoken/bst https://github.com/bespoken/bstpy

Upvotes: 1

Prasad Honrao
Prasad Honrao

Reputation: 211

Configure Web Chat channel which provides a HTML template (iframe), which you can then embed in your HTML document.

Upvotes: 0

Ezequiel Jadib
Ezequiel Jadib

Reputation: 14787

To test your BOT, you might want to consider using the Bot Framework Emulator. Here is the explanation on how to use it.

Upvotes: 0

Related Questions