Chapter 2: Preparing Credentials
Before building, we need to grant NappAI permission to access your Google accounts. This is the most important step and must be done precisely.
Go to the Credentials section of the main NappAI dashboard and create the following three credentials.
1. Google Mail Credential
- Click on + New Credential.
- In the Credential Type field, search for and select
Google Mail. - Credential Name: Give it a name you can recognize, for example,
My Gmail Credential. - Select Project: If prompted to select a Google Cloud project, choose the corresponding one.
- Google Drive Access: For this use case, where we will only read emails, select
Read. We do not need permissions to create or delete. - Click Save. Follow the steps to authenticate with your Google account.
2. Google Calendar Credential
- Create another New Credential.
- In Credential Type, select
Google Calendar. - Credential Name: Give it a name, for example,
My Calendar Credential. - Permissions: Choose the permissions you need. For this use case, where we will read and create events, select
Read and Write. - Click Save and authenticate with your Google account.
3. Google API Credential (for Gemini)
- Create the final New Credential.
- In Credential Type, select
Google API. - Credential Name: Give it a name, for example,
My Gemini Credential. - Google API Key: Paste your Google Generative AI API key here. You can get one for free here.
- Click Save.
Perfect! With authorizations ready, we can now build the flow.