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

# Live poll with Integromat and Google Sheets

> Build an SMS-based live poll using Plivo, Integromat, and Google Sheets

To start building a live poll using Plivo SMS, Integromat, and Google Sheets, you need:

* A [Plivo account](https://cx.plivo.com/signup)
* A Plivo phone number. You can buy one by visiting the [Phone Numbers](https://cx.plivo.com/home) page of the console or using the [PhoneNumber API](/docs/numbers/phone-numbers)
* A paid or trial [Integromat account](https://www.integromat.com/en/register?ref=plivo-devdocs)
* A [Google account](https://accounts.google.com/SignUp?ref=plivo-devdocs)

## Step 1: Set up Plivo

* Log in to your Integromat account.

* Click on Create a **new scenario** on the top right of the screen.

* In the next screen, search for “Plivo.”

  <Frame caption="Search For Plivo">
    <img src="https://mintcdn.com/plivo/VVpGlua-mdfO5CNz/images/integrations/integromat/step-1-search-for-plivo.png?fit=max&auto=format&n=VVpGlua-mdfO5CNz&q=85&s=995eb58ffa82f7aefa5eee51329a020c" width="1169" height="578" data-path="images/integrations/integromat/step-1-search-for-plivo.png" />
  </Frame>

* Select the Plivo integration and **Continue**. You’ll be taken to a screen where you can create a scenario from scratch.

* Click on the big “?” area to start adding modules to the scenario. You should see something like this:

  <Frame caption="Scenario Creation">
    <img src="https://mintcdn.com/plivo/VVpGlua-mdfO5CNz/images/integrations/integromat/step-1-scenario-creation.png?fit=max&auto=format&n=VVpGlua-mdfO5CNz&q=85&s=b4b29ffb2632c22f77483728310d45c0" width="1440" height="735" data-path="images/integrations/integromat/step-1-scenario-creation.png" />
  </Frame>

* Click on Plivo module and you’ll see the possible triggers and actions:

  <Frame caption="Trigger">
    <img src="https://mintcdn.com/plivo/VVpGlua-mdfO5CNz/images/integrations/integromat/step-1-select-trigger.png?fit=max&auto=format&n=VVpGlua-mdfO5CNz&q=85&s=a157009e76e6cbad193f6ac8efbac2e0" width="1440" height="735" data-path="images/integrations/integromat/step-1-select-trigger.png" />
  </Frame>

* Select **SMS received INSTANT** and you’ll see an interface to set up a webhook. Click on **Add** beside the drop-down:

  <Frame caption="Webhook">
    <img src="https://mintcdn.com/plivo/VVpGlua-mdfO5CNz/images/integrations/integromat/step-1-add-webhook.png?fit=max&auto=format&n=VVpGlua-mdfO5CNz&q=85&s=aff85a3fa55f19fb42509ea3fc6b18d1" width="1440" height="735" data-path="images/integrations/integromat/step-1-add-webhook.png" />
  </Frame>

* Give the webhook a name. In this example, we called it “Poll.”

* Select the Plivo connection you want to use. If this is your first time, or if you want to add a new connection, click **Add**.

* In the next form, give the connection a name, enter your Plivo Auth ID and Auth Token, and **Continue**. You can find your Plivo authorization credentials on the overview page of the [Plivo dashboard](https://cx.plivo.com/home).

  <Frame caption="Add Connection">
    <img src="https://mintcdn.com/plivo/VVpGlua-mdfO5CNz/images/integrations/integromat/step-1-add-connection.png?fit=max&auto=format&n=VVpGlua-mdfO5CNz&q=85&s=6543177116cd1209ce36dd88fc45fd67" width="1440" height="735" data-path="images/integrations/integromat/step-1-add-connection.png" />
  </Frame>

* Select the phone number you want to use for this scenario. Since this scenario will be triggered instantly using webhooks, any application that might be using this number for webhooks will break.

* Give this application a name and select the number you want to use. Click **Save**.

  <Frame caption="Save Trigger">
    <img src="https://mintcdn.com/plivo/VVpGlua-mdfO5CNz/images/integrations/integromat/step-1-save-trigger.png?fit=max&auto=format&n=VVpGlua-mdfO5CNz&q=85&s=a463fdb3511506a545483eb704e86ac3" width="1440" height="735" data-path="images/integrations/integromat/step-1-save-trigger.png" />
  </Frame>

* You now have a trigger that will be auto-triggered whenever there‘s a new incoming message to the Plivo number you specified.

## Step 2: Set up Google Sheets

* Open [Google Drive](https://drive.google.com/). You may be asked to sign in. We’ll connect the Google account to Integromat in a moment.

* Create a blank spreadsheet.

* Give the sheet a name and add column headers. In this example, we named the sheet “Integromat Poll” and added “From Number” and “Choice Selected” as column headers.

  <Frame caption="Save Trigger">
    <img src="https://mintcdn.com/plivo/VVpGlua-mdfO5CNz/images/integrations/integromat/step-1-save-trigger.png?fit=max&auto=format&n=VVpGlua-mdfO5CNz&q=85&s=a463fdb3511506a545483eb704e86ac3" width="1440" height="735" data-path="images/integrations/integromat/step-1-save-trigger.png" />
  </Frame>

* Now add a Google Sheets connection to Integromat. Heading back to the Integromat scenario creation, click on the big “?” area, and search for Google Sheets.

  <Frame caption="Google Sheets">
    <img src="https://mintcdn.com/plivo/VVpGlua-mdfO5CNz/images/integrations/integromat/step-2-search-for-google-sheets.png?fit=max&auto=format&n=VVpGlua-mdfO5CNz&q=85&s=edd06f6b5dd76e1c4f5b758b53933285" width="1440" height="735" data-path="images/integrations/integromat/step-2-search-for-google-sheets.png" />
  </Frame>

* Select Google Sheets to add the module to the scenario, then click on the added module to see the possible triggers and actions.

  <Frame caption="Select Action">
    <img src="https://mintcdn.com/plivo/VVpGlua-mdfO5CNz/images/integrations/integromat/step-2-select-action.png?fit=max&auto=format&n=VVpGlua-mdfO5CNz&q=85&s=bc065678b91fa0a755ab35335c2fd5ca" width="1440" height="735" data-path="images/integrations/integromat/step-2-select-action.png" />
  </Frame>

* Select the **Add a row** action. You’ll be asked to select a connection. You can choose an existing connection or create a new one by clicking **Add**. Once you click **Add** you’ll be taken to a Google login page or directly to the permissions page for you to give permission to access your spreadsheets.

  <Frame caption="Give Permissions">
    <img src="https://mintcdn.com/plivo/VVpGlua-mdfO5CNz/images/integrations/integromat/step-2-give-permissions.png?fit=max&auto=format&n=VVpGlua-mdfO5CNz&q=85&s=e80b180d12a45d19493151ae6395cc5f" width="1440" height="735" data-path="images/integrations/integromat/step-2-give-permissions.png" />
  </Frame>

* Once you log in and give the required permission, select the sheet you created earlier. Integromat will detect the column headers and give you an option to select which data needs to go to which column. Select the relevant data and click **OK**.

  <Frame caption="Configure Fields">
    <img src="https://mintcdn.com/plivo/VVpGlua-mdfO5CNz/images/integrations/integromat/step-2-configure-fields.png?fit=max&auto=format&n=VVpGlua-mdfO5CNz&q=85&s=cbbe70efbbad0982eee47a1915cfbc0f" width="1440" height="735" data-path="images/integrations/integromat/step-2-configure-fields.png" />
  </Frame>

* The scenario is now ready. Let’s test it.

## Step 3: Test the scenario

* To test this scenario, click on **Run once** to put the scenario into listening mode.

* Send a text message to the Plivo number you configured earlier. You can use your mobile phone to do this or use the Plivo Message API to send the message. We sent the text “Option A” to the Plivo number we configured.

  <Frame caption="Running The Scenario">
    <img src="https://mintcdn.com/plivo/VVpGlua-mdfO5CNz/images/integrations/integromat/step-3-running-the-scenario.png?fit=max&auto=format&n=VVpGlua-mdfO5CNz&q=85&s=893401c32738451a04f38bbc692c5948" width="1440" height="735" data-path="images/integrations/integromat/step-3-running-the-scenario.png" />
  </Frame>

* To check whether the scenario ran successfully, open the spreadsheet you created earlier. You should see a new row added, like this:

  <Frame caption="Checking Google Sheets">
    <img src="https://mintcdn.com/plivo/VVpGlua-mdfO5CNz/images/integrations/integromat/step-3-checking-google-sheets.png?fit=max&auto=format&n=VVpGlua-mdfO5CNz&q=85&s=7090400579862f79e638e01b9ea5e1b9" width="759" height="486" data-path="images/integrations/integromat/step-3-checking-google-sheets.png" />
  </Frame>

* It’s great that the scenario works, but it’s kind of boring to just see a huge table with results. We can add a nice chart.

## Step 4: Create a chart in Google Sheets

* Select all of Column B, then go to Insert > Chart:

  <Frame caption="Insert Chart">
    <img src="https://mintcdn.com/plivo/VVpGlua-mdfO5CNz/images/integrations/integromat/step-4-insert-chart.png?fit=max&auto=format&n=VVpGlua-mdfO5CNz&q=85&s=fabe80b052c678bf2909a135ff4a58c4" width="760" height="486" data-path="images/integrations/integromat/step-4-insert-chart.png" />
  </Frame>

* This should draw a chart that says “No Data.” Select “Use row 1 as headers” and “Aggregate column B.” You should then see a column chart:

  <Frame caption="Edit Chart">
    <img src="https://mintcdn.com/plivo/VVpGlua-mdfO5CNz/images/integrations/integromat/step-4-edit-chart.png?fit=max&auto=format&n=VVpGlua-mdfO5CNz&q=85&s=08833cc6c2f11720aea3a66638ea934d" width="1440" height="735" data-path="images/integrations/integromat/step-4-edit-chart.png" />
  </Frame>

* You can make the first row **bold** so the table looks better.

## Step 5: Go live

* To make the scenario live, click on the back button near “Integration Plivo, Google Sheets” on the top left. Save the scenario if you’re prompted to do so.

* In the scenario summary screen, you can see the overview of the scenario you just created and the run history.

  <Frame caption="Integration Summary">
    <img src="https://mintcdn.com/plivo/VVpGlua-mdfO5CNz/images/integrations/integromat/step-5-integration-summary.png?fit=max&auto=format&n=VVpGlua-mdfO5CNz&q=85&s=ce6216668f3918d107d0e4d3a10a57b2" width="1440" height="600" data-path="images/integrations/integromat/step-5-integration-summary.png" />
  </Frame>

* Use the toggle button on the top right to turn the scenario “ON” (also known as activating the scenario).

* Select “Immediately” from the drop-down displayed and click on **Activate**.

  <Frame caption="Activate Scenario">
    <img src="https://mintcdn.com/plivo/VVpGlua-mdfO5CNz/images/integrations/integromat/step-5-activate-scenario.png?fit=max&auto=format&n=VVpGlua-mdfO5CNz&q=85&s=64b716b8aaae1d389d8a0350d731e59f" width="1440" height="600" data-path="images/integrations/integromat/step-5-activate-scenario.png" />
  </Frame>

* And that’s a wrap! Your poll application is now live. Whenever someone sends a text message to the Plivo number that you configured with this scenario, a new row should be added and the chart should be updated.

  <Frame caption="After Activation">
    <img src="https://mintcdn.com/plivo/VVpGlua-mdfO5CNz/images/integrations/integromat/step-5-summary-after-activation.png?fit=max&auto=format&n=VVpGlua-mdfO5CNz&q=85&s=31c2e85815dfe48376945ce5e1ce26e5" width="1440" height="600" data-path="images/integrations/integromat/step-5-summary-after-activation.png" />
  </Frame>

* Send out a few text messages to see the magic. This is how it looks when people start sending their opinions in.

  <Frame caption="Google Sheets Live">
    <img src="https://mintcdn.com/plivo/VVpGlua-mdfO5CNz/images/integrations/integromat/step-5-google-sheets-live.png?fit=max&auto=format&n=VVpGlua-mdfO5CNz&q=85&s=5468dc5497503300678c424fcf754c47" width="1440" height="735" data-path="images/integrations/integromat/step-5-google-sheets-live.png" />
  </Frame>

Congratulations — you just built a great application!
