Step A — Create/Select a GCP Project
- Go to Google Cloud Console and sign in.
- Top navbar → Project dropdown → New Project. Name it e.g.
vertex-chat-demo.
- Make sure Billing is enabled for the project.
Step B — Enable Required APIs
- Left menu → APIs & Services ▸ Library.
- Enable Vertex AI API.
- Optional (but useful): Cloud Storage API and IAM API.
Step C — Create a Service Account & Key
- Left menu → IAM & Admin ▸ Service Accounts → Create Service Account.
- Name:
vertex-chatbot-sa. Click Continue.
- Grant role:
Vertex AI User (and for local dev, Vertex AI Admin if needed).
- Create → then in the list, click the new SA → Keys tab → Add Key ▸ Create new key → JSON.
- Download the JSON file and place it in your project folder (e.g.,
C:/VertexChatbot/keys/sa.json).
Keep the JSON secret. Do not commit to public repos.
Step D — Install Cloud SDK (for local auth)
- Install: Google Cloud SDK.
- Open terminal and run:
gcloud init
gcloud auth application-default login
This opens a browser to authenticate. Once done, your local environment can call Vertex AI.
Done! You have a project, Vertex AI is enabled, and you have credentials for local development.