Query a Google Sheet

Our platform lets you read a write to a google sheet directly.

Please note it works with only with Google Sheets, and not xlsx files hosted on google

Package

const sheets = require("@googlesheets");

Reading a sheet

To allow reading from a google sheet, please write to support@konverse.ai, to get email ID of the chatbot to which you will need to grant permissions

let rows = await sheets.readSheet(workBookId, sheetId)
rows.map(row => {
  let first_name = row["First Name"]
});

Append a row in google sheet

let sheet = await sheets.getSheet(workbookID, sheetID);
const larryRow = await sheet.addRow({ name: 'Larry Page', email: 'larry@google.com' });

Last updated