API access
When you build your own chat screen, your backend talks to the agent through the API. Watch a runSession turn end to end, see streaming text arrive in chunks, and compare the message:send method.
10 minPro
Checking your access…
Inside this lesson
- An animation you play, pause and step through, with each part saying what it is doing.
- The real code beside it, with the lines for each step lit up.
- Practice mode, where you route each message yourself, and a short quiz.
- About 10 minutes.
Written from the official documentation
- docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/deploy/api-access
- docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1/projects.locations.apps.sessions/runSession
- docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1/projects.locations.apps.deployments.message/send
- docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/authentication