Recently, I asked Google Assistant to add a new contact for me, but it refused, likely because this feature isn't implemented yet. This got me thinking about how I could implement it myself, so I brainstormed and came up with a small system, which I'll share below.
Nylas offers an amazing set of APIs for working with Contacts, Email, and Calendar. However, in this post, I'll focus solely on how to work with Contacts. Here's how it's done.
- Enable Nylas Hosted Authentication
Nylas hosted authentication is the quickest and easiest way to set up user authentication for your app. With hosted authentication, you redirect users to a Nylas login page and Nylas handles the rest, including detecting third party providers including SSO identity providers, and managing token exchanges. Visit Hosted Auth
- Setup the Nylas configurations and GCP OAuth configurations in project.
- Now that we have all the configurations in place, it's time to design the prompt and APIs. I've crafted a simple system prompt to achieve the expected JSON response.
- Contact Service
- Visit repo for code and more BravesDevs/NylasHack
Top comments (0)