recipe-sync-contacts-to-sheet

Export your Google Contacts directory to a Google Sheets spreadsheet in three steps. Requires gws-people and gws-sheets skills to be loaded before execution Lists contacts from your domain directory with names, email addresses, and phone numbers Creates a new sheet with headers and appends each contact as a row for easy reference and sharing

INSTALLATION
npx skills add https://github.com/googleworkspace/cli --skill recipe-sync-contacts-to-sheet
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

Export Google Contacts to Sheets

PREREQUISITE: Load the following skills to execute this recipe: gws-people, gws-sheets

Export Google Contacts directory to a Google Sheets spreadsheet.

Steps

  • List contacts: gws people people listDirectoryPeople --params '{"readMask": "names,emailAddresses,phoneNumbers", "sources": ["DIRECTORY_SOURCE_TYPE_DOMAIN_PROFILE"], "pageSize": 100}' --format json
  • Create a sheet: gws sheets +append --spreadsheet SHEET_ID --range 'Contacts' --values '["Name", "Email", "Phone"]'
  • Append each contact row: gws sheets +append --spreadsheet SHEET_ID --range 'Contacts' --values '["Jane Doe", "jane@company.com", "+1-555-0100"]'
BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card