Flow

A flow can be seen as a customer journey which refers to the process or path that it takes when interacting with the chatbot. It is essential to guide them to meet a predefined target.

By identifying each touchpoint and understanding the customer's motivations and needs at each stage, companies can optimize their marketing strategies, improve customer satisfaction, and build brand loyalty.

After receiving a message, customers may have to take an action like clicking a button or sending a message back as an answer. Consequently, you can redirect them to specific flows to take a preset journey. By doing this, you can push users to follow some easy flow provoking an extra purchase for example. To get started you can check which flow is preset in your pathway by getting flows from a specific bot.

Get Flows

GET https://api.jelou.ai/v1/bots/:botId/flows

Get the flows from a bot

Query Parameters

Name
Type
Description

shouldPaginate

boolean

Paginate search results, defaults true

state

boolean

Obtain the flows according to the status. Pass as true to get all active flows

{
  "pagination": {
    "limit": 50,
    "total": 1,
    "offset": 0
  },
  "results": [
    {
      "id": 1111,
      "title": "hola",
      "intent": "hola",
      "isDefault": 1,
      "status": 1,
      "createdAt": "2022-10-19T21:16:01.000Z",
      "updatedAt": "2022-11-01T01:09:34.000Z",
      "providerId": {
        "wit": "876567417085871"
      }
    }
  ]
}

Response detail

The answer will give us specific information about flows and the status

id

Integer

id of the flow. This id must be set in the HSM configuration

tittle

String

Flow name

status

Boolean

Flow status. Only flows with status true should be configured in the HSM API

isDefault

Boolean

Flow is selected as default for the bot

createdAt

Date

Flow creation date

updatedAt

Date

Flow update date

Last updated