Integrating Pix with WhatsApp via Woovi + BotConversa
1. Creating the webhook in BotConversa
In the Automação section, open the Webhook option. You will land on this page:

Click the Criar webhook button. A new item will be added to the webhook list,
and you can give it any name you like. In this case, we'll name it Teste for now.
What you see should look similar to this:

After creating the webhook, you can click it to open a screen showing some details and actions for that webhook.
What you see will look similar to this:

In place of the black blur you will see your webhook URL; this is the URL you will register on our platform.
Click the Copiar button to copy your webhook URL.
2. Creating the webhook on Woovi
To create the webhook on Woovi, we recommend following our tutorial.
Webhook test request
After adding the webhook, go back to the webhook detail in BotConversa.
Click the Receber dados button. If everything went well, you will see an option containing
the response to your first request:

This is the information you will see in the webhook request response.
You can ignore it for now. The first request we make to every webhook endpoint checks whether the URL is valid; it is used strictly to test the endpoint.
Valid webhook request
After receiving the test request, you will be able to receive the real requests
from our webhook. In this case, we selected the Nova Cobrança criada (new charge created) option to
continue the tutorial. So, after you:
- Create a new charge on Woovi
- Press the reload button on the webhook detail in BotConversa
You will see the following information:

This is a valid webhook payload for when a charge is created. It contains information such as: charge amount, customer information, payment link, BR code for payment (Pix copy and paste), among other useful information.
3. Configuring the webhook contact in BotConversa
After adding the BotConversa webhook on Woovi, you need to add the contact that will receive the message on WhatsApp.
You will see the following form:

Fill in both fields as expected, as in the example below:

4. Starting the conversation flow and sending the message
If you choose the simplest way, you can add a new action and choose the Enviar mensagem option;
this way you can add the message that will be sent to the contact.
However, we recommend doing these actions through a "Conversation flow", which gives you better control and more detail over how and when messages are sent.
Creating the conversation flow
To create the conversation flow, open Fluxo de conversas in the sidebar.
You will see the following screen:

On this screen, click the Criar button. A modal will appear where you can enter the name of the
flow. For this example, we'll name it Teste.
After creating the flow, click it to open it. You will see the flow detail. The boxes are action blocks; you can learn more about them in this tutorial here.
Your flow will look similar to this one:

Click the content block. You will be able to enter text however you like. You can also split it into multiple messages or add other logic depending on what you need.
Linking the conversation flow to the webhook action
After creating and configuring your conversation flow, go back to the webhook detail and add another action.
Select the Enviar fluxo option and choose the flow you just created (or any
flow you want).

What you see will look similar to the image above.
This way, the conversation flow will run whenever the webhook is executed in BotConversa.
Congratulations! You have set up BotConversa with Woovi!
5. Additional steps (optional)
Adding webhook data to the conversation flow text
If you want to insert data and information from the webhook response, watch the following tutorial: Webhook disponibilizado para BotConversa ser acionado por outros sistemas sem intermediários.