How do I call an external REST API after a diagflow has been completed?
up vote
1
down vote
favorite
I want to fire off a messaging API with payload after a successful dialogflow interaction. My JS is weak and need some assistance. For example, I want to send an SMS after a successful dialog flow interaction using this API end point:
https://developer.wavecell.com/v1/api-documentation/send-sms-single:
https://api.wavecell.com/sms/v1/{subAccountId}/single
HTTP POST:
{
"source": "Developer",
"destination": "+6512345678",
"clientMessageId": "MyBd00001",
"text": "Hello World",
"encoding": "AUTO",
"scheduled": "2016-11-03T08:24:20.332Z",
"expiry": "2016-11-03T18:24:20.332Z"
}
How would I write that in Inline Editor(Powered by Cloud Functions for Firebase)? I don't need a anything fancy ... just to call this API with its payload.
Thanks. An example code would suffice.
dialogflow
New contributor
add a comment |
up vote
1
down vote
favorite
I want to fire off a messaging API with payload after a successful dialogflow interaction. My JS is weak and need some assistance. For example, I want to send an SMS after a successful dialog flow interaction using this API end point:
https://developer.wavecell.com/v1/api-documentation/send-sms-single:
https://api.wavecell.com/sms/v1/{subAccountId}/single
HTTP POST:
{
"source": "Developer",
"destination": "+6512345678",
"clientMessageId": "MyBd00001",
"text": "Hello World",
"encoding": "AUTO",
"scheduled": "2016-11-03T08:24:20.332Z",
"expiry": "2016-11-03T18:24:20.332Z"
}
How would I write that in Inline Editor(Powered by Cloud Functions for Firebase)? I don't need a anything fancy ... just to call this API with its payload.
Thanks. An example code would suffice.
dialogflow
New contributor
Have you tried anything yet? If so, please show your code. StackOverflow expects you to try to solve your own problem first, as your attempts help us to better understand what you want. Please edit the question to illustrate the specific problem you're having in a Minimal, Complete, and Verifiable example. For more information, please see How to Ask and take the tour.
– dmcgrandle
Nov 18 at 5:33
from Firebase you can only hit external services if you have paid account.
– Abhinav Tyagi
Nov 19 at 9:48
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I want to fire off a messaging API with payload after a successful dialogflow interaction. My JS is weak and need some assistance. For example, I want to send an SMS after a successful dialog flow interaction using this API end point:
https://developer.wavecell.com/v1/api-documentation/send-sms-single:
https://api.wavecell.com/sms/v1/{subAccountId}/single
HTTP POST:
{
"source": "Developer",
"destination": "+6512345678",
"clientMessageId": "MyBd00001",
"text": "Hello World",
"encoding": "AUTO",
"scheduled": "2016-11-03T08:24:20.332Z",
"expiry": "2016-11-03T18:24:20.332Z"
}
How would I write that in Inline Editor(Powered by Cloud Functions for Firebase)? I don't need a anything fancy ... just to call this API with its payload.
Thanks. An example code would suffice.
dialogflow
New contributor
I want to fire off a messaging API with payload after a successful dialogflow interaction. My JS is weak and need some assistance. For example, I want to send an SMS after a successful dialog flow interaction using this API end point:
https://developer.wavecell.com/v1/api-documentation/send-sms-single:
https://api.wavecell.com/sms/v1/{subAccountId}/single
HTTP POST:
{
"source": "Developer",
"destination": "+6512345678",
"clientMessageId": "MyBd00001",
"text": "Hello World",
"encoding": "AUTO",
"scheduled": "2016-11-03T08:24:20.332Z",
"expiry": "2016-11-03T18:24:20.332Z"
}
How would I write that in Inline Editor(Powered by Cloud Functions for Firebase)? I don't need a anything fancy ... just to call this API with its payload.
Thanks. An example code would suffice.
dialogflow
dialogflow
New contributor
New contributor
edited Nov 19 at 7:15
sai.raj
697
697
New contributor
asked Nov 18 at 5:20
Charmaine Looi
62
62
New contributor
New contributor
Have you tried anything yet? If so, please show your code. StackOverflow expects you to try to solve your own problem first, as your attempts help us to better understand what you want. Please edit the question to illustrate the specific problem you're having in a Minimal, Complete, and Verifiable example. For more information, please see How to Ask and take the tour.
– dmcgrandle
Nov 18 at 5:33
from Firebase you can only hit external services if you have paid account.
– Abhinav Tyagi
Nov 19 at 9:48
add a comment |
Have you tried anything yet? If so, please show your code. StackOverflow expects you to try to solve your own problem first, as your attempts help us to better understand what you want. Please edit the question to illustrate the specific problem you're having in a Minimal, Complete, and Verifiable example. For more information, please see How to Ask and take the tour.
– dmcgrandle
Nov 18 at 5:33
from Firebase you can only hit external services if you have paid account.
– Abhinav Tyagi
Nov 19 at 9:48
Have you tried anything yet? If so, please show your code. StackOverflow expects you to try to solve your own problem first, as your attempts help us to better understand what you want. Please edit the question to illustrate the specific problem you're having in a Minimal, Complete, and Verifiable example. For more information, please see How to Ask and take the tour.
– dmcgrandle
Nov 18 at 5:33
Have you tried anything yet? If so, please show your code. StackOverflow expects you to try to solve your own problem first, as your attempts help us to better understand what you want. Please edit the question to illustrate the specific problem you're having in a Minimal, Complete, and Verifiable example. For more information, please see How to Ask and take the tour.
– dmcgrandle
Nov 18 at 5:33
from Firebase you can only hit external services if you have paid account.
– Abhinav Tyagi
Nov 19 at 9:48
from Firebase you can only hit external services if you have paid account.
– Abhinav Tyagi
Nov 19 at 9:48
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Response your intent with fullfilment feature but it needs firebase billable account such as Blaze plan to call an external API .
Refer this question.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Response your intent with fullfilment feature but it needs firebase billable account such as Blaze plan to call an external API .
Refer this question.
add a comment |
up vote
0
down vote
Response your intent with fullfilment feature but it needs firebase billable account such as Blaze plan to call an external API .
Refer this question.
add a comment |
up vote
0
down vote
up vote
0
down vote
Response your intent with fullfilment feature but it needs firebase billable account such as Blaze plan to call an external API .
Refer this question.
Response your intent with fullfilment feature but it needs firebase billable account such as Blaze plan to call an external API .
Refer this question.
edited Nov 19 at 3:20
sai.raj
697
697
answered Nov 18 at 8:51
Non Brazilian
137214
137214
add a comment |
add a comment |
Charmaine Looi is a new contributor. Be nice, and check out our Code of Conduct.
Charmaine Looi is a new contributor. Be nice, and check out our Code of Conduct.
Charmaine Looi is a new contributor. Be nice, and check out our Code of Conduct.
Charmaine Looi is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53358131%2fhow-do-i-call-an-external-rest-api-after-a-diagflow-has-been-completed%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Have you tried anything yet? If so, please show your code. StackOverflow expects you to try to solve your own problem first, as your attempts help us to better understand what you want. Please edit the question to illustrate the specific problem you're having in a Minimal, Complete, and Verifiable example. For more information, please see How to Ask and take the tour.
– dmcgrandle
Nov 18 at 5:33
from Firebase you can only hit external services if you have paid account.
– Abhinav Tyagi
Nov 19 at 9:48