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

# Use Znift with ChatGPT

> Create a Custom GPT that manages your Znift tasks using the OpenAPI spec.

You can create a Custom GPT in ChatGPT that manages your Znift tasks. ChatGPT uses the OpenAPI specification to call the API directly.

## Create a Custom GPT

<Steps>
  <Step title="Open GPT Builder">
    Go to [chatgpt.com](https://chatgpt.com), click your profile icon, then **My GPTs > Create a GPT**.
  </Step>

  <Step title="Configure the GPT">
    In the **Configure** tab:

    * **Name:** Znift Tasks
    * **Description:** Manage your Znift tasks — create, complete, move, search, and review.
    * **Instructions:** Paste the following:

    ```
    You are a task management assistant connected to the user's Znift account.
    Use the available actions to manage tasks. Dates are in YYYY-MM-DD format.

    When the user asks about their tasks, start with the dashboard endpoint
    to get an overview. For daily briefings, summarize overdue items first,
    then pending tasks, then completed count and streak.

    When creating tasks, always confirm the date and text with the user
    before calling the API. Default to today's date if not specified.
    ```
  </Step>

  <Step title="Add Actions">
    Scroll down to **Actions > Create new action**.

    **Import from URL:** Paste this URL and click **Import**:

    ```
    https://znift.com/api/v1/openapi.json
    ```

    This loads all 13 Znift API endpoints as available actions.
  </Step>

  <Step title="Set up authentication">
    In the Actions authentication section:

    * **Authentication type:** API Key
    * **API Key:** Your Znift API key (from [Profile > API Keys](https://znift.com/dashboard/api-keys))
    * **Auth Type:** Custom
    * **Custom Header Name:** `x-api-key`
  </Step>

  <Step title="Save and test">
    Click **Save** (choose "Only me" or "Anyone with a link").

    Try: "What do I have to do today?"
  </Step>
</Steps>

## Example Prompts

Once your GPT is set up, try:

* "What's on my plate today?"
* "Add a task for tomorrow: review the quarterly report"
* "Mark the standup prep as done"
* "How productive was I this week?"
* "Search for tasks about the migration"
* "Move the design review to next Monday"

## Limitations

* ChatGPT may ask for confirmation before each API call (this is normal for Actions)
* Custom GPTs require a ChatGPT Plus or Team subscription
* The GPT uses your API key stored in its configuration — do not share the GPT publicly if your key is embedded
