> ## Documentation Index
> Fetch the complete documentation index at: https://hilos-40.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Automatically Greet Your Clients

Creating a chatbot that can automatically recognize your clients can greatly enhance the customer experience by providing personalized interactions. In this guide, we will walk you through the steps to create a support flow that asks users for their account name on the first run and then uses this information in subsequent interactions. We will use conditional steps, go to steps, update contact steps, and question steps to achieve this.

## Step-by-Step Guide to Creating a Client-Recognizing Chatbot

<Steps>
  <Step title="Navigate to flows">
    * Go to [Flows](https://app.hilos.io/flow) in your Hilos account.
    * Click on `+ Flow Editor` to create a new flow.
      ![New Flow](https://hilos-media.s3.us-east-2.amazonaws.com/mintlify/guides/hilos-for-support/new-flow.png)
  </Step>

  <Step title="Edit your flow details">
    * Give your flow a name that reflects its purpose, such as "Client Recognition Chatbot".
    * Choose the appropriate channel (if you have more than one channel).
    * Select "Inbound" as the flow type.
      ![Select Channel and Type](https://hilos-media.s3.us-east-2.amazonaws.com/mintlify/guides/hilos-for-support/channel-and-name.png)
  </Step>

  <Step title="Set up your flow">
    <Steps>
      <Step title="Add your conditional step at the start">
        * Click on the `+` button to add a new step.
        * Select "Conditional" from the list of step types.
          ![Conditional Step](https://hilos-media.s3.us-east-2.amazonaws.com/mintlify/guides/hilos-for-support/conditional-step.png)
        * Set the condition to check if `contact.account` is empty.
        * This will create two branches: `Path 1` (if the account property is empty) and `Else` (if the account property is not empty).
          ![conditional branches example](https://hilos-media.s3.us-east-2.amazonaws.com/mintlify/guides/hilos-for-support/conditioal-path1-or-ekse.png)
      </Step>

      <Step title="Setting up your Path 1 (true) branch">
        <Steps>
          <Steps>
            <Step title="Set up your question step">
              1. **Add a Question Step to the True Branch:**

              * Click on the `+` button on the `True` branch.
              * Select "Question" from the list of step types.

              2. **Configure the Question Step:**

              * Ask the user for their account name. For example:

                "Please provide your account name."

                ![Path 1 Question Step](https://hilos-media.s3.us-east-2.amazonaws.com/mintlify/guides/hilos-for-support/path-1.png)
            </Step>

            <Step title="Update your contact">
              1. **Add an Contact Update Step:**

              * Click on the `+` button after the question step.
              * Select "Update Contact" from the list of step types.
                ![Contact Update](https://hilos-media.s3.us-east-2.amazonaws.com/mintlify/guides/hilos-for-support/contact-update.png)

              2. **Configure the Contact Update Step:**

              * Save the user's response to a custom property called `account`.
                ![Contact Update Property](https://hilos-media.s3.us-east-2.amazonaws.com/mintlify/guides/hilos-for-support/property-account-name.png)
            </Step>

            <Step title="Ask the user what the issue is with a personalized message">
              1. **Add Another Question Step:**

              * Click on the `+` button after the update contact step.
              * Select "Question" from the list of step types.

              2. **Configure the Question Step:**

              * Ask the user how you may help them today, using the account name in the message.

                ![Example Question Step](https://hilos-media.s3.us-east-2.amazonaws.com/mintlify/guides/hilos-for-support/question-2.png)
            </Step>
          </Steps>
        </Steps>
      </Step>

      <Step title="Setting up your False branch">
        1. **Add a Go To Step to the False Branch:**

        * Click on the `+` button on the `False` branch.
        * Select "Go To" from the list of step types.
          ![Go To Step](https://hilos-media.s3.us-east-2.amazonaws.com/mintlify/guides/hilos-for-support/go-to-step.png)

        2. **Configure the Go To Step:**

        * Set the step to go directly to the question that asks how you may help the user today.
          ![Go to step example](https://hilos-media.s3.us-east-2.amazonaws.com/mintlify/guides/hilos-for-support/go-to-step-select-step.png)
      </Step>
    </Steps>
  </Step>

  <Step title="Publish your flow">
    * Click on the "Publish" button to make the flow active and set up a trigger for it.
  </Step>
</Steps>

### Example Flow Structure

Your flow should now have the following structure:

1. **Conditional Step:**
   * Check if `contact.account` is empty.
   * **True Branch:**
     * **Question Step:** Ask for the account name.
     * **Update Contact Step:** Save the account name to a custom property.
     * **Question Step:** Ask how you may help the user today.
   * **False Branch:**
     * **Go To Step:** Jump to the question that asks how you may help the user today.

### Final Steps

1. **Test the Flow:**
   * Send a test message to your support number to ensure the flow triggers correctly and the account name is saved.

2. **Monitor and Optimize:**
   * Monitor the performance of your chatbot and make adjustments as needed to improve response times and customer satisfaction.

## Conclusion

Creating a chatbot that automatically recognizes your clients with Hilos is a powerful way to enhance customer interactions. By setting up an inbound flow with conditional steps, go to steps, update contact steps, and question steps, you can ensure personalized and efficient support. Start building your client-recognizing chatbot today and take your customer service to the next level!
