Skip to main content

Set up a Google Sheet for outbound call testing

Set up a Google Sheet linked to your AI Employee so you can run outbound call tests.

Link a Google Sheet to your AI Employee so you can run outbound call tests from it. Use this setup for testing purposes only.

Step 1: Prepare the Google Sheet

  1. Click File and Make a copy.

    Google Sheets File menu open with the Make a copy option highlighted
  2. Change the document's name (if needed) and click Make a copy.

Google Sheets Copy document dialog with the Name field and the Make a copy button highlighted

You should now be able to edit your copy of the Google Sheet.

Step 2: Configure Apps Script

Apps Script is Google's built-in tool for running scripts attached to a Google Sheet. Your copy of the template already contains the script, so you only need to deploy it as a web app.

  1. Click Extensions and Apps Script.

    Google Sheets Extensions menu open with the Apps Script option highlighted
  2. Click Deploy and select New deployment.

    Apps Script editor with the Deploy menu open and New deployment highlighted
  3. Click the gear icon and Web app.

    New deployment dialog with the gear icon menu open and Web app selected as the deployment type
  4. In the configuration settings:

    • Description: Add a brief description (e.g., business name or app purpose).

    • Execute as: Choose your account.

    • Who has access: Select Anyone.

  5. Click Deploy.

    New deployment dialog with Description, Execute as, and Who has access set to Anyone, and the Deploy button highlighted
  6. Click Authorize access and sign into the account you selected in step 4.

    New deployment dialog prompting you to authorize the web app, with the Authorize access button highlighted
  7. After deployment, click Copy to copy the generated Web app URL to your clipboard.

    Deployment confirmation dialog with the Copy link under the Web app URL highlighted
  8. Click Done to close the pop-up window.

Step 3: Add the webhook to the Newo.ai platform

Let's connect the Google Sheet to the Newo.ai Platform using the webhook previously created:

  1. Navigate to the Integrations page on the Builder.

  2. Under the API Integration section, click the three dots next to the "webhook" connector and select Webhooks.

    Builder Integrations page with the webhook connector's menu open and Webhooks highlighted
  3. Click + Add Webhook.

    Webhooks dialog on the Outgoing tab with the Add Webhook button highlighted
  4. Set any "Idn" (for example, "call_table_url").

  5. Paste the copied URL from the Google Sheet App Script into the "URL" field.

  6. Add the following in the "Commands" field:

    • get_contact_details

    • update_inbound_record

    • update_outbound_record

  7. Click Create.

Add Webhook form with Idn, URL and three Commands filled in, and the Create button highlighted

Step 4: Add the API key to the Google Sheet

The final step involves transferring the API key to the Google Sheet by doing the following:

  1. Navigate to the Integrations page on the Builder.

  2. Under the "API Integration" section, click the three dots next to the "webhook" connector and select Edit Settings.

    Builder Integrations page with the webhook connector's menu open and Edit Settings highlighted
  3. Copy the "Newo.ai API Key" and paste it into the Google Sheet in cell B3 of the "Meta" tab.

Google Sheet Meta tab with cell B3, the Newo API Key value cell, highlighted

Testing

To test the outbound caller functionality, see Run outbound caller tests from a Google Sheet.

Did this answer your question?