Initialising a Return
1. Create Returns Flow
In your customers dashboard, create a new flow, the name should be something along the lines of Returns Master
.
The External Account Key
must be the same as the chat flow.
2. Get Order Number
Within the chat flow, capture the users order number, we recommend using a form component.
3. Send Initialise Message
Once we have the relevent order number, we can initialise the returns portal.
Add an Advanced Chat Activity
with the following properties:
{
"type": "initialise_return",
"returnFlowId": "*****", // id of the flow created in step 1
"inputs": {
"order_number": "*****" // the order number collected in Step 2
}
}
The returns flow will be executed with any properties defined in the inputs
object. But only order_number
is required.
E.g.
{
"type": "initialise_return",
"returnFlowId": "*****",
"inputs": {
"order_number": "*****", // required
"step_type": "return_details", // initialise the returns portal on return_details step. The default first step is product_selection
"custom_property": "some_value"
}
}
Updated 6 days ago
What’s Next