> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gc.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Save chat

> Save an `ask_gcai` chat into GC AI history and return a shareable deep link.

<Info>
  **Tool** `ask_gcai_save_chat` · **Behavior** Destructive
</Info>

Save an `ask_gcai` chat into GC AI history and return a shareable deep link. API chats stay out of history until saved. Pass `project_id` to also file the chat into a project you can edit. Idempotent: saving a chat that is already saved (and already in that project) returns the same link with no side effects.

## Input parameters

<ParamField body="chat_id" type="string (uuid)" required>
  The `chat_id` of an API chat, from a completed `ask_gcai` result.
</ParamField>

<ParamField body="project_id" type="string (uuid)">
  Optional project to file the chat into. You must have edit access to it.
</ParamField>

## Response

<ResponseField name="id" type="string (uuid)" />

<ResponseField name="title" type="string | null" />

<ResponseField name="chat_url" type="string (uri)">
  Deep link to open the chat in GC AI.
</ResponseField>

<ResponseField name="materialized_at" type="string" />

<ResponseField name="project_id" type="string (uuid) | null">
  The project the chat is filed under, if any.
</ResponseField>
