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

# Workflows

> Learn how to create workflows in HubSpot to automate sending your Treble and WhatsApp conversations.

# HubSpot Workflows

In Treble, conversations within HubSpot Workflows are an essential tool for automating and personalizing communication with customers and leads. By integrating these conversations, you can create automatic interactions based on specific user actions, ensuring quick and efficient attention. This not only improves the customer experience but also optimizes your internal processes to increase productivity and conversions.

## Use HubSpot workflows to automate conversation sends

* Create workflows based on contacts, companies, or deals and use the triggers you prefer
* Schedule message sending based on a contact property, such as birthday date or deal close date, using the "Contact date property" workflow type

## How to deploy a WhatsApp conversation (Treble) through HubSpot Workflows

<Steps>
  <Step title="Go to Workflows">
    The first thing you need to do is go to HubSpot → Automation → Workflows

    <img src="https://mintcdn.com/trebleai/5XNOo1Uq3QVPV6lD/images/workflows-1.png?fit=max&auto=format&n=5XNOo1Uq3QVPV6lD&q=85&s=20536cbf1689813d88abc828b3c8e0a2" alt="HubSpot Workflows" width="1198" height="933" data-path="images/workflows-1.png" />
  </Step>

  <Step title="Create new workflow">
    When selecting Workflows, you can create one from scratch.

    <img src="https://mintcdn.com/trebleai/5XNOo1Uq3QVPV6lD/images/workflows-2.gif?s=15fff768bc60972cf6a7f2979c1c3f2a" alt="HubSpot Workflows" width="2876" height="1290" data-path="images/workflows-2.gif" />

    <Info>
      Workflows can be created for contacts, deals, tickets, and other items.
    </Info>
  </Step>

  <Step title="Configure workflow">
    When clicking on the text box, a left sidebar appears. There we can select "When filter criteria are met". This option allows us to create rules based on property values.

    <img src="https://mintcdn.com/trebleai/5XNOo1Uq3QVPV6lD/images/workflows-3.png?fit=max&auto=format&n=5XNOo1Uq3QVPV6lD&q=85&s=5a01fa781a267a408291ecd5fa628444" alt="HubSpot Workflows" width="2140" height="1252" data-path="images/workflows-3.png" />
  </Step>

  <Step title="Configure criteria">
    Next, we select all the properties that determine the criteria that customers must meet to send a message. When we have the criteria ready, we must click on the <Icon icon="plus" /> icon

    <img src="https://mintcdn.com/trebleai/5XNOo1Uq3QVPV6lD/images/workflows-4.png?fit=max&auto=format&n=5XNOo1Uq3QVPV6lD&q=85&s=5b7fe19236ecc40842f176abd7020547" alt="HubSpot Workflows" width="1256" height="961" data-path="images/workflows-4.png" />
  </Step>

  <Step title="Add Treble action">
    What's left now is to select the Treble action, choose the conversation we want to send, and specify the number from which the sending will be made.

    1. When clicking on the <Icon icon="plus" /> button, a panel will be displayed on the left with the list of actions.
    2. Scroll until you find the "Integrated Applications" section
    3. Select the "Treble: WhatsApp Integration" option
    4. Once you click on the option, two fields will be displayed:
       * "Conversation": Select the Treble conversation you want to be sent. This conversation must be created in Treble.
         <Tip> Conversations in Treble are message flows that you can create to automate sending messages to your customers. If you don't know how to create a conversation, you can check the following article: <a class="article-link" href="/en/docs/intro-to-treble/outbound-convo"><p>Create outbound conversation</p><Icon icon="arrow-up-right-from-square" iconType="solid" /></a> </Tip>
       * "Number": In Treble, you can have multiple WhatsApp numbers. Select the number from which you want the conversation to be sent.
    5. Click on "Save" to finish the workflow configuration.

    <img src="https://mintcdn.com/trebleai/5XNOo1Uq3QVPV6lD/images/workflows-5.gif?s=e5a97aa27238fc8c63a44ed984b8c810" alt="HubSpot Workflows" width="2878" height="1236" data-path="images/workflows-5.gif" />
  </Step>

  <Step title="Confirm workflow configuration">
    Confirm that the workflow is ready and click on "Save" to finish the configuration. You can see the following image to understand how the workflow would look in HubSpot.

    As a final step, you can publish the workflow so it executes by clicking on the "Review and Publish" button

    <img src="https://mintcdn.com/trebleai/5XNOo1Uq3QVPV6lD/images/workflows-6.png?fit=max&auto=format&n=5XNOo1Uq3QVPV6lD&q=85&s=ef5165080bffe95483d14f3ab1a5134c" alt="HubSpot Workflows" width="1730" height="1362" data-path="images/workflows-6.png" />
  </Step>
</Steps>

<Check>
  Congratulations! You have created your first workflow in HubSpot to deploy a WhatsApp conversation with Treble.
</Check>

<Info>
  REMEMBER: Workflows are used for sending mass messages, as well as for sending automated messages.
</Info>
