How to get the url of attached file in Bot Framework Composer and send it to an API? - bots

I'm currently developing a chatbot in Bot Framework Composer. I should get attachment input from user and send its url as a body of an API request. The attached file is from my computer, its url is something like 'https://localhost'. That's why I can't post its url to an API, I get invalid image url error. I'll send some screenshots about the issue and API response. Is there any solution that I can implement within Bot Framework Composer to handle this process?
images about the issue
I searched about the issue, someone stated that the attached file should be uploaded to blob first, then API request should be posted with blob url. However, I couldn't find how to implement this solution within Bot Framework Component.

Related

How to register whatsapp webhook

I need to do an integration with twilio where the application serves multiple accounts. With that I have the need to receive the whatsapp integrations in different URL for each user of the application.
I would like to register these URLs in a simple way, without my user having to access the twilio panel.
How can I register a whatsapp WebHook using HTTP APIs or nodejs SDK?
I searched the documentations and even debugged the nodejs SDK and couldn't find a way to do that.
What’s integration allows you toconfigure one URL per number. How about setting that URL to your backend which then breaks out the behavior based on the from number.

How to get and pass user conversation data to backend API in Azure Bot Framework Composer v1.4.0?

I am new to Azure Bot Framework Composer.
I am creating chatbot using Azure Bot Framework Composer(without writing code) which need to be launch in Angular Web Application from Azure Cloud after deployment.
In my chatbot project, need to fetch the user conversation data and send it to backend API from Azure Bot Framework Composer.
How to achieve this?, anyone help on this.
You can view the conversation data using ${conversation} scope and from dialog stack can access required information. To get last conversation data can use ${turn.Activity}. For sending to backend API, create HTTP post method and pass the data in the body of your request.
Without knowing more details on your chatbot project, one reasonable approach to take is to use the Send HTTP Request action in the composer.
After you obtain the values from the conversation that you are looking for, (can be stored in conversation / dialog variables), you could then pass it onto an HTTP send request and deliver that to your backend API.
With this, you can send any payload to your backend API.

get JSON generated by a webhook hosted onlilne

I am making a plagariam check and then it communicates to the server of the company via webhook, the response is then recorded in RequestBin, which generates a JSON response in their website, how do I extract the information from the website to my node js code?
The webpage looks like this: my requestb.in online webhook
What I need is to get that raw JSON.
You cannot get data via API from RequestBin.
RequestBin doesn't provide API for you to catch the responses. It is built for manual testing where a person checks the data using their UI.
If you wish to check the response, register a WebHook with the company that points to your server where your app resides.

Twitter Account Activity API - Webhook URL must be defined issue

I have a nodejs chat bot app which to listens to direct messages from twitter account. It was created with stream API of twitter. Now we are trying to migrate to new twitter Account Activity API.
We have used this package to do this. But we met with this issue "Webhook URL must be defined to create subscriptions". Actually we have set a Webhook URL and still we have this issue.
Is there anyone who have implemented Twitter Account Activity API successfully? I could use some help here.
if you haven't found an answer, here (account-activity-dashboard) is a web app that will help get started with Twitter's premium Account Activity API. The account-activity-dashboard will help you configure the webhook urls and the subscriptions.
You can also have a look at my forked repo which i used to create my twitter bot

Intercept fulfillment response

Im using fulfillment to get data from database. And I have integrated my bot with facebook.
And currently I'm customizing db response as per facebook in my api itself and sending it to the dialogflow.
And I want to integrate it with skype too.
Now my question is, can I customise my api response in dialogflow instead of in API. As I want to integrate my bot with multiple platforms so accordingly their response will be formatted as per facebook or skype.
So i will need to create another api for skype too. I want to avoid this.
So I want to get output from my api and format it in dialogflow itself using custom payload. So is it possible to work in this way?
Sure! You get the stored data using your API and then you format the response for the platforms you are going to use. In this example, the payload contains different responses for Google Assistant, Facebook and Slack.
Also, take a look at this NodeJS library which makes easier develop your fulfillment code.

Resources