Skip to content

Feature Request: Read Contacts #56

@raybell-md

Description

@raybell-md

Feature Request

It would be cool to be able to query https://contacts.google.com (Contracts, Directory, Other contacts)

I would love to prompt "what is the last e-mail my boss sent me?"

Potential ways to solution

I'm somewhat familiar with workspace APIs. Firstly, I can get my boss's email via (apps script):

function getUserManager() {
  var userEmail = '{{ USEREMAIL }}';
  try {
    var user = AdminDirectory.Users.get(userEmail, {viewType: 'domain_public'});
    var manager = user.relations?.find(r => r.type === 'manager')?.value || 'Not Found';
    Logger.log('Manager: ' + manager);
  } catch (e) {
    Logger.log('Error: ' + e.message);
  }
}

I imagine that value could be parsed to the e-mail query tool *from: {{ MANAGEREMAIL }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions