Capri Ai
  • Quickstart Guides
    • Getting Started With Capri AI
    • Video Onboarding Course
    • Setup
    • Capri AI Affiliate Program
  • Capri Portal
    • Accessing the Capri Portal
    • Navigating the Capri Portal
    • Setting up the Settings
    • Setting up an Agent
    • Setting up Actions
      • GHL Channel
        • Contact/Custom Fields
      • GHL Calendar
      • Google Calendar
      • Google Sheets
      • Google Docs
      • Website Reading
    • Adding a User to your Organization
    • Using the Emulator
      • Adding the Emulator as a Custom Menu Item
      • Iframe Emulator Settings
    • Understanding Fallbacks
    • Setting up Rebilling
    • Snapshots
  • Spreadsheet and Knowledge Base
    • Setting up and Using a Spreadsheet
    • Having the Spreadsheet Auto-Update
  • PROMPT DESIGN
    • Creating Prompts
    • Prompt Examples
  • INTEGRATING WITH CRM AND WEBHOOK INFORMATION
    • GoHighLevel (GHL)
    • HubSpot
    • Webhook Information
    • Triggers
      • Automated Follow-Up For Stale Leads
    • Using Multiple Webhooks
    • Uphex
  • API and Developer Tools
    • Using The New Public API
      • Agent API
    • Email and Plain Text Make Modules
    • Model Pricing
  • Customer Support
    • Contact Us!
  • Legacy Information
    • Legacy Information
      • Setup (Legacy)
      • Accessing the Capri Portal (Legacy)
      • Navigating the Capri Portal (Legacy)
      • Capri Portal Settings (Legacy)
      • Using the Emulator (Legacy)
      • Adding the Emulator as a Custom Menu Item (Legacy)
      • Connecting to the CRM (Legacy)
        • GoHighLevel (GHL)
        • Webhook Information
      • Custom Tags (Legacy)
      • Handoff and Disqualify (Legacy)
      • Testing and Debugging (Legacy)
      • Understanding Fallbacks (Legacy)
      • Overview of the calendar integration (Legacy)
      • Respond Tasks (Legacy)
      • Outreach Tasks (Legacy)
      • Evaluate Tasks (Legacy)
      • Custom Tasks (Legacy)
      • Setting up a Spreadsheet (Legacy)
      • Using the Knowledge Base Extension (Legacy)
Powered by GitBook
On this page
  1. Spreadsheet and Knowledge Base

Having the Spreadsheet Auto-Update

PreviousSetting up and Using a SpreadsheetNextCreating Prompts

Last updated 10 months ago

Usually, when you make changes to a spreadsheet that you're using with Capri, you need to delete and reupload the spreadsheet to the portal for those changes to be updated in Capri, but there is a way to have the spreadsheet auto update whenever changes are made!

The first thing you need to do is go to the spreadsheet that you're using, select extensions at the top, then apps script.

This will bring you to a page with code on it that looks like this.

This may seem like a lot, but don't worry, all you'll be doing is copying and pasting this code! From here, what you need to do is click the two squares in the top right to copy this code, and then you can go back to the apps script page and paste it in!

Next, open a new tab and go to the Capri portal, then navigate to the "organizations" tab on the left, then select "tokens" and add a new token.

Copy this token by clicking the two squares, then go back to the apps script page and scroll down to find line 41 where 'YOUR_CAPRI_TOKEN' is displayed.

Replace YOUR_CAPRI_TOKEN with the token you copied from the Capri portal, making sure to keep the apostrophes on the edges.

Afterward, save the script by clicking the floppy disk at the top, then click "deploy" and "new deployment."

From here, click the gear button and select "Web app" and then for the description just enter "Capri Update Script" and click "Deploy" in the bottom right.

After it's deployed, click the clock icon on the left labelled "triggers" and then add a new trigger in the bottom right.

On the page that pops up, make sure that the "Choose which function to run" option is set to "sendHttpRequest" and that the "Select Event Type" option is set to "On edit".

Afterward, save this trigger, and you should be good to go!

Delete the code that's already there, then go to the page and select beta_script.js This will bring you to a page with code on it.

https://github.com/Capri-Ai/Knowledge-Updates/tree/main/CapriGPT(Beta)