Metadata for different types of webhooks. If you're usinginlineCloudFunction, your source code must be in a directory with the same name as the value for theexecuteFunctionkey. For example, a value ofmy_webhookfor theexecuteFunctionkey would have a code structure like this: -/webhooks/my_webhook.yaml-/webhooks/my_webhook/index.js-/webhooks/my_webhook/package.json
YAML representation
handlers:-object (Handler)# Union fieldwebhook_typecan be only one of the following:httpsEndpoint:object (HttpsEndpoint)inlineCloudFunction:object (InlineCloudFunction)# End of list of possible types for union fieldwebhook_type.
Metadata for cloud function deployed from code in the webhooks folder.
Handler
Declares the name of the webhoook handler. A webhook can have multiple handlers registered. These handlers can be called from multiple places in your Actions project.
YAML representation
name:string
Fields
name
string
Required. Name of the handler. Must be unique across all handlers the Actions project. You can check the name of this handler to invoke the correct function in your fulfillment source code.
HttpsEndpoint
REST endpoint to notify if you're not using the inline editor.
The HTTPS base URL for your fulfillment endpoint (HTTP is not supported). Handler names are appended to the base URL path after a colon (following the style guide inhttps://cloud.google.com/apis/design/custom_methods). For example a base URL of 'https://gactions.service.com/api' would receive requests with URL 'https://gactions.service.com/api:{method}'.
httpHeaders
map (key: string, value: string)
Map of HTTP parameters to be included in the POST request.
An object containing a list of"key": valuepairs. Example:{ "name": "wrench", "mass": "1.3kg", "count": "3" }.
endpointApiVersion
integer
Version of the protocol used by the endpoint. This is the protocol shared by all fulfillment types and not specific to Google fulfillment type.
InlineCloudFunction
Holds the metadata of an inline Cloud Function deployed from the webhooks folder.
YAML representation
executeFunction:string
Fields
executeFunction
string
The name of the Cloud Function entry point. The value of this field should match the name of the method exported from the source code.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[],[]]