webhooks

how to trigger webhook from zapier code

旧街凉风 提交于 2019-12-13 08:45:37
问题 I have 2 zaps. First finishes with Code by Zapier block, where I parse input information from previous steps getting array with data e.g.: var elements = [{id: 12, calculatedValue: 13},{id: 13, calculatedValue: 'red'}] then in a loop I traverse it, create requests bodies var options = { "url": "https://hooks.zapier.com/hooks/catch/xxxxxx/xxxxxx/", "method": "POST" }, requests = elements.map(mapDataToSettings); function mapDataToSettings(elem) { var settings = Object.assign({}, options);

How to extract the parameter from INTENT in order to pass it to webhook?

孤者浪人 提交于 2019-12-13 04:12:03
问题 Suppose there is an intent in Dialogflow named " intent.direction ". This intent have some phrases like : " Direction to PLACE_NAME " or " Navigate to PLACE_NAME ",etc. Here " PLACE_NAME " is the name of any place to which user wants to go. When this intent is triggered , I want the " PLACE_NAME " i.e. name of place, to be passed to my WEBHOOK (index.js). Is there any way to do this? -------------------UPDATED RESPONSES------------------ function makeDirection(app) { if (!hasScreen) { app.ask

Keeping data between intents from WebHook in Dialogflow

孤人 提交于 2019-12-13 04:05:27
问题 I'm trying to build a movie bot, and I need to save the ID from a movie which I got via my webhook, and keep it in a place where can be access by the follow up intents in that context. Right now I'm using the payload in fulfillment to pass data to the first intent, but in the follow up intents that data is lost. 回答1: You should probably include the data you want remembered across intents in a context. You should set the lifespan to be long enough for all the intents that will need the info.

Stripe Webhooks return 302 on laravel application, using spatie webhook

强颜欢笑 提交于 2019-12-13 03:48:55
问题 I am attempting to set up stripes webhooks in my laravel application. I have pulled in spatie's webhook package to help out, link below. https://github.com/spatie/laravel-stripe-webhooks My endpoint on stripe looks like https://myapp.ca/stripe/webhook Dev my routes Route::stripeWebhooks('stripe/webhook'); I have included the key in webhook config, and included in the verifyCsrfToken 'stripe/*', When I send a test I get <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <meta http-equiv=

Deleting Webhooks

怎甘沉沦 提交于 2019-12-13 03:37:28
问题 I have a shop with permission to read|write both orders and products. I setup some Webhooks and now I want to delete them. I am getting back 401 errors. Starting with 4 webhooks Trying to delete webhook 1982492 Error nil, Failed. Response code = 401. Response message = Unauthorized. Trying to delete webhook 1982494 Error nil, Failed. Response code = 401. Response message = Unauthorized. Trying to delete webhook 1982496 Error nil, Failed. Response code = 401. Response message = Unauthorized.

How to get user confirmation for Location and the geo-coordinates in Dialogflow?

半城伤御伤魂 提交于 2019-12-13 02:57:04
问题 I am making app for google assistant using dialog flow. My app uses a webhook function deployed on firebase. Main question is how to get user location - I need to pass the coordinates to a URL. I am able to prompt the message for location permission, but how to confirm and get coordinates. Do I need to add any intent for confirmation? I am asking for location permission in default welcome intent. The code is below: 'use strict'; process.env.DEBUG = 'actions-on-google:*'; const App = require(

ReferenceError: conv is not defined in actions-on-google

*爱你&永不变心* 提交于 2019-12-12 23:28:34
问题 I want to implement Suggestions chips in my Dialog flow (to be use in Google Assistant)..But I am getting this error "ReferenceError: conv is not defined" which i didn't understand.I have go through the official docs but what am i missing? I have also added actions_intent_OPTION in his Event following is my code const functions = require('firebase-functions'); const {actionssdk} = require('actions-on-google'); const app = actionssdk({debug: true}); var admin = require("firebase-admin"); admin

Facebook Messenger webhook setup, but not triggered

青春壹個敷衍的年華 提交于 2019-12-12 07:09:59
问题 So I'm trying to setup a bot for the new Facebook Messenger API. I'm following the quickstart. I setup the webhook ok, and see it in my webhooks, I called this: https://graph.facebook.com/v2.6/me/subscribed_apps?access_token=%3Ctoken%3E and it did not throw any errors, But when I go to the Page that I generated the access token on, and send a message, it does not call my webhook. I check the httpaccess, and it does not call it. Any way to debug this or any ideas? Also, one thing I'm still

Webhook response with “suggestion chips”

独自空忆成欢 提交于 2019-12-12 05:19:08
问题 I would like to guide users based on webhook response with suggestions chips. From webhook sample, I see below structure: "fulfillment": { "speech": "Today in Boston: Fair, the temperature is 37 F", "source": "apiai-weather-webhook-sample", "displayText": "Today in Boston: Fair, the temperature is 37 F" } But, if I want to suggest users what next you can request to continue the conversation, then how do I pass suggestions chips in webhook response? 回答1: The response you displayed is the basic

Subscribe Facebook page to external app

假如想象 提交于 2019-12-12 03:48:14
问题 I have a webapplication where brands have a feed and can post things. I want to make them be able to, whenever they post something on their Facebook page, it becomes posted in the feed of my webapp. I know I have to use the webhooks and all that. So far, I have tried this: I have created my own app in Facebook. I created a Facebook page (with that same account). I created the webhook. I added my app to my page's subscribed apps. I post something on my page, and it works. Now, let's say there