Flow Configuration

The returns portal is powered by a flow which is executed in parrallel to the main chat flow.

There are 3 important flow inputs: step_type, selected_products and order_number.

Example Flow

step_type

This determines which step of the journey the user is on. The flow should have a decision, with conditions for each relevent step_type.

Currently supported step_types are:

  • product_selection
  • return_options
  • important_information
  • shipping_information
  • return_details
  • cancel_return

As a user progresses from one step to another, the returns flow is executed with the relevant step_type.

selected_products

An array of products which is updated with the users selections as they progress through each step.

order_number

The ID of the order we are creating a return for.


What’s Next
Did this page help you?