---
title: "POST /v1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}:generateOnboardingSuggestions"
method: POST
path: "/v1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}:generateOnboardingSuggestions"
tags: ["projects"]
---

# POST /v1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}:generateOnboardingSuggestions

`POST /v1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}:generateOnboardingSuggestions`

## Request

- Base URL: `https://ces.googleapis.com`
- URL: `https://ces.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}:generateOnboardingSuggestions`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/ces`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/ces`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Generates personalized onboarding suggestions for the Arc zero state: classifies the requesting user (new / exploring / returning) from their assistant-session history in the app and returns suggestion chips (resume a session, continue work, or start something new) to render before any message is sent.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `appsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string

## Request body

- GenerateOnboardingSuggestionsRequest: Request message for SessionService.GenerateOnboardingSuggestions.
  - `maxSuggestions` integer: Optional. Maximum number of suggestions to return. Defaults to 4 when unset.

## Response `200`

Successful response

- GenerateOnboardingSuggestionsResponse: Response message for SessionService.GenerateOnboardingSuggestions.
  - `contextToken` string: Opaque token capturing the onboarding snapshot used to generate these suggestions. Clients echo it on the first StreamChatAiAssistantRequest so the server can reuse the snapshot.
  - `suggestions` AssistantSuggestion[]: Personalized suggestions, ranked most relevant first.
    - `candidateType` string: Rule-table candidate type in kebab-case (e.g. "resume-pending-review"), for metrics.
    - `icon` 'ICON_UNSPECIFIED' | 'RESUME' | 'BUILD' | 'EVALUATE' | 'DEPLOY' | 'EXPLORE' | 'FIX': Icon hint for the chip.
    - `label` string: Chip label shown to the user (at most 60 characters).
    - `loadSession` AssistantSuggestionLoadSession: Parameters for the load_session action.
      - `assistantSessionId` string: Identifier of the assistant session to open (the final segment of the AssistantSession resource name).
    - `rationale` string: Optional short explanation of why this suggestion is shown (tooltip / rationale popover).
    - `seedPrompt` string: Prefill the composer with this text; the user reviews and sends.
    - `sendMessage` string: Prefill the composer with this text and submit immediately. Only used for quick-reply chips inside an active onboarding conversation.
    - `source` 'SOURCE_UNSPECIFIED' | 'RULE' | 'LLM_RANKED': How this suggestion was produced.
    - `suggestionId` string: Stable identifier for this suggestion, round-tripped by clients in interaction logging.
  - `userProfile` 'USER_PROFILE_UNSPECIFIED' | 'NEW' | 'EXPLORING' | 'RETURNING': Classification of the requesting user's history.

## Changes

- **2026-11-17** `455f2f484021`: 4 info
  - the security scope `https://www.googleapis.com/auth/ces` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/ces` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2c`
- **2026-11-11** `d1599b011b2e`: 4 info
  - the security scope `https://www.googleapis.com/auth/ces` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/ces` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/ces/changes/v1/projects/:projectsId/locations/:locationsId/apps/:appsId:generateOnboardingSuggestions/post.md)

---

[API](https://skmtc.dev/google/apis/ces.md) - [All operations](https://skmtc.dev/google/apis/ces/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/ces/revisions/455f2f484021?raw)
