> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flowx.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Business flow example

> We will explore an example in which we integrate a customer search in a business flow.

Follow the next steps to use the user personal number to perform a search query in the customer management plugin.

1. First make sure the details about customers are indexed in the search engine (for example, elasticSearch).
2. Open **FlowX Designer** and create a **process definition**.
3. Add a [**Send Message Task**](../../../../building-blocks/node/message-send-received-task-node#message-send-task) node.
4. Configure the [**Send Message Task**](../../../../building-blocks/node/message-send-received-task-node#message-send-task) node by adding the following elements:

* Kafka topic - defined on the `KAFKA_TOPIC_CUSTOMER_SEARCH_IN` environment variable
* Message body (example of identifiers for an indexed customers):

![](https://s3.eu-west-1.amazonaws.com/docx.flowx.ai/platform-deep-dive/crm_params.png)

<Check>
  For more examples of keys, check [**Using the customer management plugin**](./customer-management-overview#key-examples).
</Check>

5. Add a [**Receive Message Task**](../../../../building-blocks/node/message-send-received-task-node#message-receive-task).
6. Configure the topic on which you want to receive the response from the CRM, on the value of `KAFKA_TOPIC_CUSTOMER_SEARCH_OUT` environment variable.

![](https://s3.eu-west-1.amazonaws.com/docx.flowx.ai/platform-deep-dive/crm_response.png)

Response example:

```json theme={"dark"}

"searchResults" : {
    "customers" : [ {
      "id" : "ID3456",
      "firstName" : "Jane Doe",
      "lastName" : "Doe",
      "birthDate" : "27.02.1980",
      "cui" : "1820227103840_84",
      "companyName" : "",
      "clientCategory" : "PF_INTL",
      "clientType" : "PF",
      "idSeries" : "RT",
      "idNumber" : "879948",
      "idDocType" : "CI",
      "idExpiryDate" : "27.02.2023",
      "legalForm" : "",
      "listId" : "4691602",
      "mobilePhone" : "0711111111",
      "attributes" : null,
      "type" : "PF"}],
    "hasMore" : false,
    "error" : null
  }

```


## Related topics

- [FlowX.AI 5.0.0 Release Notes](/release-notes/v5.x/v5.0.0-july-2025/v5.0.0-july-2025.md)
- [FlowX.AI 5.4.0 Release Notes](/release-notes/v5.x/v5.4.0-january-2026/v5.4.0-january-2026.md)
- [FlowX.AI 5.5.0 Release Notes](/release-notes/v5.x/v5.5.0-february-2026/v5.5.0-february-2026.md)
- [FlowX.AI 5.1.0 Release Notes](/release-notes/v5.x/v5.1.x-lts/v5.1.0-october-2025/v5.1.0-october-2025.md)
- [FlowX.AI 4.7.2 Release Notes](/release-notes/v4.x/v4.7.x-lts/v4.7.2-march-2025/v4.7.2-march-2025.md)
