Sandeep Menon
Sandeep Menon

Reputation: 27

Accessing bot in azure in android

I have deployed a bot in azure. Bot is written in C# using microsoft bot framework. I am able to communicate with it using Microsoft Bot Framework Emulator after providing the azure URL, App Id and App Secret. How to communicate with the bot from android? Is there a URL to communicate with it like a REST Api?

Upvotes: 2

Views: 795

Answers (2)

Amine I.
Amine I.

Reputation: 151

If you use a bot registered to BotFramework, you can try to configure the Web Chat channel :

  • Log in to Bot Framework
  • Go to "your bots"
  • Click on the bot you've registered
  • Click on "Edit" next to “Web Chat” in the Channels
  • Generate your Web Chat Secrets (a blue button)
  • Tick "enable this bot on web chat"
  • Take note of the secret and embed tag

Then, take out the link from the iframe, (you'll get something like this : https://webchat.botframework.com/embed/YourBotID?s=YOUR_SECRET_HERE ) Replace YOUR_SECRET_HERE with the secret you previously took

Then, browse the final link from your phone / anywhere.

Upvotes: 1

Peter Pan
Peter Pan

Reputation: 24148

@SandeepMenon, There is a blog which introduces how to integate Azure Logic Apps with a Bot Web App using Bot Framework API hosted on Azure and supply the sample project on GitHub.

I think you can try to refer to the blog and use the Azure Logic App as callable endpoint, then to communicate with bot from android is only implementation for calling the http endpoints from android.

Upvotes: 0

Related Questions