Steps to Create GPT Custom Actions with BigQuery and Google Drive
Pin-Cheng (Cindy) Tseng
Business Intelligence Manager, Product Manager, Data Consultant, Data Player
Recently, I helped build GPTs to assist colleagues in quickly gaining insights into daily operations. Here’s a record of the process and the pitfalls encountered...T^T
1. Set Up Google Cloud Credentials:
- Go to the Google Cloud Console.
- Create OAuth credentials.
- Obtain the Client ID and Client Secret.
2. Set Up GPTs:
- Create a new GPT and a new action.
- Add OAuth Authentication (paste the Client ID and Client Secret from step 1).
- Google OAuth Scopes
Authorization URL: https://accounts.google.com/o/oauth2/auth
Token URL: https://oauth2.googleapis.com/token
Scope: https://www.googleapis.com/auth/bigquery
(For additional scopes, refer to Google OAuth Scopes).
- Enter the OpenAPI Schema (ActionGPT can help to generate it).
- Paste the Callback URL into the Credentials.
3. Challenges:
- The training environment is unstable.
- Although the format is provided in the instructions, it is often forgotten.
- Knowledge files are missing.
- Prompts are overwritten instead of being appended.
- Prompt rollback issues.
- Usage issue: If you’re using a shared account, please be aware of this.
- API limitations from OpenAI.
- Strange errors: Try restarting your computer = =.