Build a reply that closes the flow. params arrive as the submission of the flow.completed webhook, so use the flow's field names. Wabery adds the session's flow_token; pass req.flow_token if you include it yourself.
params
submission
flow.completed
flow_token
req.flow_token
return dataExchangeComplete({ customer_name: "Alex", service: "hemming" }); Copy
return dataExchangeComplete({ customer_name: "Alex", service: "hemming" });
Build a reply that closes the flow.
paramsarrive as thesubmissionof theflow.completedwebhook, so use the flow's field names. Wabery adds the session'sflow_token; passreq.flow_tokenif you include it yourself.