tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Generative AI > Google Gemini API > ADK with Google Contacts - CRM Integration

ADK with Google Contacts - CRM Integration

Author: Venkata Sudhakar

The Google People API (formerly Contacts API) gives ADK agents access to the Google Workspace contact directory - useful for resolving vendor email addresses, looking up regional managers, and maintaining a lightweight CRM without a separate system. ShopMax India uses a Contacts-connected agent to enrich order data with vendor details and create new contact records when onboarding suppliers.

The People API supports two types of contacts: personal contacts (contactGroups) and directory contacts (domain-wide). For Workspace organisations, the otherContacts and directory search scopes allow the agent to search the company directory by name or email. Creating contacts uses the people.create method with a Person resource containing names, emails, phone numbers, and organisation details.

The below example shows an ADK agent that searches the ShopMax contact directory and creates a new vendor contact.


It gives the following output,

New vendor contact created:
  Name    : Rahul Verma
  Email   : [email protected]
  Phone   : +91-98201-44321
  Company : FreshSupply Pvt Ltd
  City    : Hyderabad
  Status  : Contact saved to ShopMax address book.

Combine the Contacts agent with the Sheets agent to sync the vendor master list - when a new contact is created, a row is appended to the Vendor Registry sheet with the contact details and onboarding date. Use the People API groups endpoint to organise contacts into labelled groups such as Electronics Vendors, Logistics Partners, and Service Providers for easier lookup by other agents.


 
  


  
bl  br