# Pabbly

Pabbly card allows you to trigger a workflow from your Pabbly account and use the input data (from chatman) in performing different actions or workflow. A workflow is a sequence of actions that connects two or more apps and automates a task.&#x20;

## Using Pabbly Card In Journey

Add a Pabbly card to the journey whose  data you want to store under workflow and later on perform an action as desired.

Your Pabbly card might be inactive. Follow the steps below to activate and store the attributes.

### Creating Account on Pabbly

1. Make an account on [Pabbly](https://accounts.pabbly.com/signup/).&#x20;

<figure><img src="https://3618795910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3pP2APLi2ZwqQCorRa5l%2Fuploads%2Fo7TfM6R0bBfeEfvIi1Bs%2Fpabbly%20login.png?alt=media&#x26;token=7e2aa81b-1f0f-4dad-bfb7-da83b9cfb29d" alt=""><figcaption></figcaption></figure>

2. You'll see a workspace as shown in the image below.

<figure><img src="https://3618795910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3pP2APLi2ZwqQCorRa5l%2Fuploads%2F8ndz207RPlTdWvgEeuqq%2Fimage.png?alt=media&#x26;token=a49db638-75bd-4492-9aae-2b81fe6ed395" alt=""><figcaption></figcaption></figure>

### Create Workflow

1. On the dashboard, head over to '**create workflow**.'

<figure><img src="https://3618795910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3pP2APLi2ZwqQCorRa5l%2Fuploads%2FKLzKXsecmLTP6N5HW7VR%2Fworkflow%20click.png?alt=media&#x26;token=293eb5b9-2c7d-4fd0-863b-ae1eec001fd3" alt=""><figcaption></figcaption></figure>

2. Enter a relevant **workflow name** and **select** **where** you want **to** **store** **it** and tap '**Create**.'&#x20;

For, e.g., We name it '**Welcome\_email**' and store it under **home**.

<figure><img src="https://3618795910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3pP2APLi2ZwqQCorRa5l%2Fuploads%2FvlLh4JJjh3fohQutr5yZ%2Fcreate%20workflow.png?alt=media&#x26;token=4ebb1a04-3588-4973-8669-ee15e254ec3d" alt=""><figcaption></figcaption></figure>

### Create Trigger

3. Select your trigger application, i.e. from where the Pabbly workflow starts. Here our trigger application is 'Chatman', search in the box and tap.

<figure><img src="https://3618795910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3pP2APLi2ZwqQCorRa5l%2Fuploads%2FDPCkPBn86RsIx73MHzSi%2Ftrigger%20app.png?alt=media&#x26;token=c9517207-7b8f-49c1-a387-9920ed0778d6" alt=""><figcaption></figcaption></figure>

4. Under  Tri**gger event**, choose an event.&#x20;

<details>

<summary>Different Events Explained</summary>

* **Contact Completed Journey:** This event triggers when a contact finishes a journey in your Chatman account. You can use this event to trigger actions based on the completion of a journey, such as sending a follow-up email, updating a spreadsheet, or creating a task.
* **Contact Started Journey:** This event triggers when a contact starts a journey in your Chatman account.  You can use this event to trigger actions based on the initiation of a journey, such as sending a welcome message, adding a tag, or assigning a score.
* **Custom Event Triggered:** This event triggers when a custom event is triggered in your Chatman account. You can use this event to trigger actions based on any condition or logic that you define, such as sending a notification, creating a record, or calling a webhook.
* **Export via Zapier : Send Attributes:** This event triggers when the Export via Zapier card runs in the conversational flow in your Chatman account. The Export via Zapier card allows you to send user-defined and system attributes to zapier. You can use this event to trigger actions based on the attributes that you send, such as creating a contact, updating a CRM, or sending a personalized message.
* **New Contact Added:** This event triggers when a new contact is added in your Chatman account. You can use this event to trigger actions based on the addition of a new contact, such as sending a welcome email, adding them to a list, or enrolling them in a journey.

</details>

For instance we select **New Contact Added**.

<figure><img src="https://3618795910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3pP2APLi2ZwqQCorRa5l%2Fuploads%2FeZnmevAL3YSJ9fKK5imj%2Fpabbly%20trigger%20event.png?alt=media&#x26;token=8d85ec32-63f0-4efb-b69b-e657b582aac7" alt=""><figcaption></figcaption></figure>

5. Once you have selected an event tap '**Connect**.'

<figure><img src="https://3618795910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3pP2APLi2ZwqQCorRa5l%2Fuploads%2FCwZD1sdw2CX9RVBHGTu8%2Fpabbly%20trigger%20event%20(1).png?alt=media&#x26;token=5c54b410-301d-4627-a691-1e920f79b159" alt=""><figcaption></figcaption></figure>

5. A pop-up will appear. Now under 'Makerobos Chatman', choose add new connection or select existing connection.&#x20;

Here we select existing connection as we previously connected with chatman.

<figure><img src="https://3618795910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3pP2APLi2ZwqQCorRa5l%2Fuploads%2FpqiOZYv2ABocldLK6EF4%2Fpabbly%20trigger%20event%20(2).png?alt=media&#x26;token=d3eb0e61-b28f-4e48-a1a5-719fabfdb4b6" alt=""><figcaption></figcaption></figure>

6. Now under existing connection tap account which you want to associate and tap 'Save.'

<figure><img src="https://3618795910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3pP2APLi2ZwqQCorRa5l%2Fuploads%2FcFcpQ9U3VC06OCi3MmNv%2Fpabbly%20trigger%20event%20(3).png?alt=media&#x26;token=deb777f3-2f7f-4a24-9fdd-4a07d45983fb" alt=""><figcaption></figcaption></figure>

6. Now, under **Card** select the user creation type which on which the events gets triggered.

<details>

<summary>Different User Creation Type</summary>

* **Contact API:** This user creation type is triggered when a new contact is added to Chatman via the Contact API. The Contact API allows you to create, update, and delete contacts programmatically using HTTP requests.
* **Imported:** This user creation type is triggered when a new contact is imported to Chatman from another source, such as a CSV file, Google Contacts, or Outlook. You can import contacts to Chatman using the Import Contacts feature in the app.
* **Direct:** This user creation type is triggered when a new contact is created directly in Chatman, either manually or by using a chatbot. You can create contacts in Chatman by filling out a form, scanning a QR code, or chatting with a bot.
* **Ad Click:** This user creation type is triggered when a new contact is created from an ad click. This means that the contact clicks on an advertisement that leads to Chatman, such as a Facebook ad, a Google ad, or a banner ad on a website.
* **Shopify:** This user creation type is triggered when a new contact is created from a Shopify integration. This means that the contact is a customer or a potential customer who has interacted with your Shopify store, such as by placing an order, signing up for a newsletter, or browsing your products.

</details>

For eg: Direct.

<figure><img src="https://3618795910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3pP2APLi2ZwqQCorRa5l%2Fuploads%2Fg9Pba0Y2l0onU7XWxNFf%2Fpabbly%20trigger%20event%20(4).png?alt=media&#x26;token=3d022a6a-f615-4688-a3ec-d4bbd859b772" alt=""><figcaption></figcaption></figure>

7. Tap 'Save & Send Test Request.'

<figure><img src="https://3618795910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3pP2APLi2ZwqQCorRa5l%2Fuploads%2Frs1JbrpCTqaB6LV2XBcx%2Fpabbly%20trigger%20event%20(5).png?alt=media&#x26;token=fba9a44d-6344-4182-be02-ef76b40e6f98" alt=""><figcaption></figcaption></figure>

8. Once you have clicked over the "Save & Send Test Request" button, then do a direct contact add in Chatman in order to capture the response here.

{% content-ref url="broken-reference" %}
[Broken link](https://docs.makerobos.com/chatman-enterprise-whatsapp-platform/chatman-functions/journeys/plugin-cards/broken-reference)
{% endcontent-ref %}

{% hint style="info" %}
After tapping, we added a contact starting with 9170168XXXXX manually in Chatman and received the response for the same in Pabbly.
{% endhint %}

<figure><img src="https://3618795910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3pP2APLi2ZwqQCorRa5l%2Fuploads%2F9BIeu82kcjDB1FkulHMa%2Fpabbly%20trigger%20event%20(7).png?alt=media&#x26;token=f1f76819-0951-4c75-a5c5-352ad1683bf5" alt=""><figcaption></figcaption></figure>

### Create Action

1. You'll now be redirected to the action, select an app where you want to send those data. For eg: Lets' select 'Gmail.'

{% hint style="info" %}
You can select any application of your choice where you want the action to get triggered.
{% endhint %}

<figure><img src="https://3618795910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3pP2APLi2ZwqQCorRa5l%2Fuploads%2FlG1twtzpndU2Z0GIRWeT%2Fpabbly%20trigger%20event%20(8).png?alt=media&#x26;token=d03c68f9-661e-439d-b0f4-c1312a4b7c86" alt=""><figcaption></figcaption></figure>

2. Under **action and event s**elect an event, for eg: **Select send email** and tap '**connect**.'

{% hint style="success" %}
The fields might change according to the event selected.
{% endhint %}

<figure><img src="https://3618795910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3pP2APLi2ZwqQCorRa5l%2Fuploads%2FHN8JVXepDvIK8uGunTsb%2Fpabbly%20trigger%20event%20(9).png?alt=media&#x26;token=2e846d89-ffe5-4777-aea1-99b4e50cbdfb" alt=""><figcaption></figcaption></figure>

3. Now under Gmail tap '**Add new connection**.' If you have an existing one tap 'Select existing connection.'

We have an existing connection, so we opt for 'select existing connection' and then under '**existing connection**,' select connection and tap '**Save**.'

{% hint style="success" %}
For adding a new connection, opt '**add** **new connection**.' Click, **connect with Gmail** and choose the account with which you want to associate.
{% endhint %}

<figure><img src="https://3618795910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3pP2APLi2ZwqQCorRa5l%2Fuploads%2FzpoLpIWIBP4wUIckugrC%2Fpabbly%20trigger%20event%20(10).png?alt=media&#x26;token=b4b5f3c1-67c0-45a3-987d-569caf6659b9" alt=""><figcaption></figcaption></figure>

4. Enter all the fields and tap save and test response.&#x20;

{% hint style="success" %}
If don't want to fill any field, simply leave it blank.
{% endhint %}

<figure><img src="https://3618795910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3pP2APLi2ZwqQCorRa5l%2Fuploads%2FJZFcpnsOPG2M3diqdp6b%2Fpabbly%20trigger%20event%20(11).png?alt=media&#x26;token=41efc046-a952-4dac-9253-879b2403a413" alt=""><figcaption></figcaption></figure>

5. You'll receive a list of fields. If you want to update the data, tap '**save and test response**' or else tap '**save**' to store the response.

<figure><img src="https://3618795910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3pP2APLi2ZwqQCorRa5l%2Fuploads%2FSQbiW8WYFe8BdKLScjjw%2Fpabbly%20trigger%20event%20(13).png?alt=media&#x26;token=58a6a400-83ed-49d8-a042-0cef5ae91384" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3618795910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3pP2APLi2ZwqQCorRa5l%2Fuploads%2FxqpHngtjOr0KHS16NzW8%2Fpabbly%20trigger%20event%20(12).png?alt=media&#x26;token=56ca526d-8ab7-4592-a6fc-9ff073d93490" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
As we entered the fields, we received an email on the entered Gmail account.
{% endhint %}
