Connect Your AI Agent to Google Sheets Quickchat AI released a guide showing how to connect an AI Agent to Google Sheets using AI Actions, enabling automatic logging of leads, unanswered questions, feedback, and demo requests without third-party tools. The integration uses a one-click Google Sheets connection and custom HTTP requests to append rows to a shared spreadsheet. Introduction Your AI Agent talks to every visitor on your site. Some are ready to buy, some ask a question it cannot answer, some request a feature you do not have yet, and some want a demo. By default, all of that is gone when the chat closes . This guide shows you how to connect your AI Agent to Google Sheets so each of those moments becomes a row in a sheet your team already uses. No Zapier, no webhooks, no engineer. You need two things: - a Quickchat AI Agent sign up here and use for https://app.quickchat.ai/register free - a Google account The mechanism is AI Actions : custom HTTP requests your Agent can make during a conversation. Quickchat AI has a one-click Google Sheets connection that creates a sheet and a starter logging action for you, and from there you shape it and add as many reports as you want. By the end you will have four working reports , and you will have tested each one yourself . This is a long, exact walkthrough. The canonical reference for AI Actions lives in the docs at docs.quickchat.ai/ai-agent/actions . For another worked example of a custom action, see Send Slack notifications with AI Actions . What you will build Four reports, each writing to its own tab of one Google Sheet: | Report | Tab | When the Agent writes a row | |---|---|---| | Leads | Leads | A visitor shows buying intent and shares an email | | Unanswered questions | Unanswered | The Agent cannot answer a factual question | | Feedback | Feedback | A visitor requests a feature, reports a bug, or gives praise | | Demo requests | Demos | A visitor asks for a demo or a call | The screenshots below come from a test Agent built for a fictional company, Tideline , a subscription-analytics platform for SaaS businesses. The company is invented so the example stays neutral, but every conversation and every row shown here was produced by a real Agent running the real reply pipeline. Use your own company’s details when you follow along. How the Google Sheets integration works The whole feature rests on one idea: an AI Action is a described HTTP request, and a Google Sheet row is one such request. An AI Action has four parts. The description is what the model reads to decide whether to call it; the parameters are what it fills in from the conversation. A few more facts make the rest of the post easier to follow. Writing a row is one API call. Google Sheets has an append endpoint that adds a row to a tab. Each report is a POST to that endpoint with the row values in the body. The columns are not fixed. They are whatever your action sends. You decide the columns by editing the action’s body and the sheet’s header row, so the same integration can log leads, bug reports, or anything else . Least-privilege access. The Google connection requests only the drive.file scope, which grants access exclusively to files the app creates . It cannot see the rest of your Drive. The Agent never sees your credentials. The request carries an Authorization header whose value is a placeholder, {{google sheets access token}} . Quickchat AI fills that placeholder with a real, auto-refreshed token after the model has done its part. The token never enters the prompt. Two built-in variables are available to any action without being defined as parameters: {{conversation url}} , a deep link back to the conversation in your Inbox, and {{conversation channel}} , the channel the visitor used web widget, Slack, WhatsApp, and so on . Step 1: Create your AI Agent and give it knowledge A Quickchat Agent’s behavior comes from two places: its Identity the main prompt and the knowledge you give it to answer from. Actions & MCPs is where you extend what it can do , such as writing to a Google Sheet. This guide works in Identity this step and Step 4 step-4-add-the-reporting-instructions-to-your-prompt and Actions & MCPs Steps 2, 3 and 6 step-6-add-the-other-three-reports , and tests everything in AI Preview Step 5 step-5-test-the-lead-report . After you sign up https://app.quickchat.ai/register , open Identity in the left sidebar. The AI Main Prompt is where you describe what your Agent is and how it should behave. Give it a short, accurate description of your product, and put the facts it should be able to state plans, prices, which integrations exist into its knowledge so it can answer questions directly. The Agent’s name and its main prompt: a short, accurate description of your product and how the Agent should behave. You add the reporting block to the end of this prompt in Step 4. Do not worry about writing all of that prompt yourself. Every prompt, action description, and request body in this guide is given as a copy-paste block , so you will paste them rather than type them out. You will return to this screen in Step 4 step-4-add-the-reporting-instructions-to-your-prompt to add the reporting instructions. Step 2: Connect Google Sheets Open Actions & MCPs in the sidebar, click Add Action , and choose Google Sheets . Actions & MCPs, then Add Action, then Google Sheets. The connect dialog opens and, before you grant any access, spells out what the one click will set up: a new Google Sheet in your Drive, and a ready-to-use logging action, preset for leads, that you review and switch on. The dialog explains the two things connecting will set up, before you grant any access. Click Connect . Google asks which account to use and then which permission to grant. The only scope requested is drive.file , which lets the integration touch only the files it creates , never the rest of your Drive. Google’s own screen: pick the account whose Drive the sheet should live in. The next screen grants the drive.file permission, which lets the integration touch only the files it creates. When you approve, you land back on the Actions & MCPs page in Quickchat AI, with the connected dialog open: Connected, back on the Actions page. Quickchat AI created a sheet and one starter logging action, added switched off and ready to review. That one click did two things automatically: Created a spreadsheet in your Google Drive, with one tab Leads and a header row. Added a single, disabled AI Action called log lead to google sheet , already wired to that sheet. That starter action is a normal, fully editable AI Action . The integration presets it for lead capture because that is the most common case, but the name, the columns, and the description are all yours to change. In this guide you will review it, switch it on as the first report, then build three more like it in Step 6 step-6-add-the-other-three-reports . Step 3: Review and enable the lead action The auto-created log lead to google sheet action is listed under Custom Actions , switched off. Open it to review the configuration before enabling it. This is the template every other report follows , so it is worth understanding in full. The four reporting actions. Only the first, log lead to google sheet, is created for you; the other three you add in Step 6. The top of the action holds its name and the parameters the Agent collects: The action name and the parameters the Agent fills in from the conversation. Scroll down to the API Endpoint section. Because Quickchat AI created the sheet and this action together, the URL is already filled in with your spreadsheet’s ID , the method is POST , and the headers are set: The full endpoint URL already contains your sheet’s ID. Query Params stays empty: the valueInputOption=RAW setting rides along in the URL. The Authorization header carries the token placeholder. The {SPREADSHEET ID} you see written in API documentation is not a live placeholder . At connect time, Quickchat AI created your sheet and wrote its real ID straight into this action’s URL, which is why the field already shows the complete address: https://sheets.googleapis.com/v4/spreadsheets/