Chapter 2: Preparing the Credentials
Before building, we need to grant NappAI permission to access your Google accounts. This is the most important step and must be done accurately.
Go to the Credentials section of the main NappAI panel 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 recognizable name, 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 on 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 on Save and authenticate with your Google account.
3. Google API Credential (for Gemini)
- Create the last 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 a free one here.
- Click on Save.
Perfect! With the authorizations ready, we can now build the flow.