# Gmail + MILKEE Integrations: Connect with Zapier MCP
> zapier.com/apps/gmail/integrations/milkee
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Gmail and MILKEE in minutes. Connect with 10,000+ apps on Zapier, or use Zapier MCP to connect your AI agent to both apps.

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Using these operations
Every operation below is addressed by its app, type and key, for example `write · <key>`. Events from one app can start a run that calls functions in the other.

- **MCP**: connect each app through mcp.zapier.com to expose its operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`, then call `runAction({ app, actionType, action, connection, inputs })`.
- **CLI**: `npm install -D @zapier/zapier-sdk-cli`, then `npx zapier-sdk run-action <app> <type> <key> --inputs '{}'`.

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · accountCreate`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "milkee", owner: "me" });

const { data } = await zapier.runAction({
  app: "milkee",
  actionType: "write",
  action: "accountCreate",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action milkee write accountCreate \
  --inputs '{}'
```

## Gmail

### Identity
One of the most popular email services, Gmail keeps track of all your emails with threaded conversations, tags, and Google-powered search to find any message you need.

- App slug: gmail
- Operations published here: 23 (8 events, 12 functions, 2 queries, 1 search-or-write action)

### Authentication
Zapier connects to Gmail via oauth. Your code references a connection, not a raw credential.

- Auth type: oauth
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection gmail
```

### Capabilities

#### Events (8)

Events fire when something happens in Gmail. Use them to start a run.

##### New Attachment
Triggers when you receive a new attachment. Each check only finds emails received in the last hour, so attachments on older emails will not trigger, even if they appear in test results.

- Type: read · Key: `attachment`
- Requires: nothing
- Optional: label_ids, query
- SDK: `runAction({ app: "gmail", actionType: "read", action: "attachment" })`
- CLI: `npx zapier-sdk run-action gmail read attachment`

##### New Label
Triggers when you add a new label.

- Type: read · Key: `label`
- Requires: nothing
- SDK: `runAction({ app: "gmail", actionType: "read", action: "label" })`
- CLI: `npx zapier-sdk run-action gmail read label`

##### New Labeled Conversation
Triggers the first time a label is added to a conversation. Replies within that conversation will not trigger again.

- Type: read · Key: `labeled_conversation`
- Requires: labelId
- SDK: `runAction({ app: "gmail", actionType: "read", action: "labeled_conversation" })`
- CLI: `npx zapier-sdk run-action gmail read labeled_conversation`

##### New Labeled Email
Triggers when an email is labeled. Also triggers when a reply is added to the conversation.

- Type: read · Key: `label_message_v2`
- Requires: label_ids
- Optional: extended_polling_window
- SDK: `runAction({ app: "gmail", actionType: "read", action: "label_message_v2" })`
- CLI: `npx zapier-sdk run-action gmail read label_message_v2`

##### New Email
Triggers when a new email appears in the specified mailbox. Each check only finds emails received in the last hour, so older emails moved into the mailbox or label will not trigger, even if they appear in test results. To trigger on older emails you label, use New Labeled Email.

- Type: read · Key: `message`
- Requires: nothing
- Optional: label_ids
- SDK: `runAction({ app: "gmail", actionType: "read", action: "message" })`
- CLI: `npx zapier-sdk run-action gmail read message`

##### New Email Matching Search
Triggers when you receive a new email that matches a search string you provide. Each check only finds emails received in the last hour, so older emails that match later (for example, after you label them) will not trigger, even if they appear in test results. To trigger on older emails you label, use New Labeled Email.

- Type: read · Key: `search`
- Requires: query
- SDK: `runAction({ app: "gmail", actionType: "read", action: "search" })`
- CLI: `npx zapier-sdk run-action gmail read search`

##### New Starred Email
Triggers when you receive a new email and star it within two days.

- Type: read · Key: `star_message`
- Requires: nothing
- SDK: `runAction({ app: "gmail", actionType: "read", action: "star_message" })`
- CLI: `npx zapier-sdk run-action gmail read star_message`

##### New Conversation
Triggers when a new email conversation begins in your inbox. Each check only finds conversations with an email received in the last hour, so older conversations moved into a label will not trigger, even if they appear in test results. To trigger on older conversations you label, use New Labeled Conversation.

- Type: read · Key: `thread_v2`
- Requires: nothing
- Optional: label_ids
- SDK: `runAction({ app: "gmail", actionType: "read", action: "thread_v2" })`
- CLI: `npx zapier-sdk run-action gmail read thread_v2`

#### Functions (12)

Functions change something in Gmail.

##### Add Label to Email
Add a label to an email message.

- Type: write · Key: `add_label`
- Requires: new_label_ids, message_id
- SDK: `runAction({ app: "gmail", actionType: "write", action: "add_label" })`
- CLI: `npx zapier-sdk run-action gmail write add_label`

##### Archive Email
Archive an email message.

- Type: write · Key: `archive_email`
- Requires: message_id
- SDK: `runAction({ app: "gmail", actionType: "write", action: "archive_email" })`
- CLI: `npx zapier-sdk run-action gmail write archive_email`

##### Delete Email
Sends an email message to the trash.

- Type: write · Key: `delete_email`
- Requires: message_id
- SDK: `runAction({ app: "gmail", actionType: "write", action: "delete_email" })`
- CLI: `npx zapier-sdk run-action gmail write delete_email`

##### Create Draft
Create a draft email message.

- Type: write · Key: `draft_v2`
- Requires: subject, body
- Optional: to, cc, bcc, from, from_name, body_type, signature, render_signature_in_html, signature_delimiter, label_ids, file, recipient_instructions
- SDK: `runAction({ app: "gmail", actionType: "write", action: "draft_v2" })`
- CLI: `npx zapier-sdk run-action gmail write draft_v2`

##### Create Draft Reply
Create a draft reply to an existing email.

- Type: write · Key: `draft_v2_reply`
- Requires: thread_id, body
- Optional: trigger_instructions, to, cc, bcc, from, from_name, body_type, signature, render_signature_in_html, signature_delimiter, label_ids, file
- SDK: `runAction({ app: "gmail", actionType: "write", action: "draft_v2_reply" })`
- CLI: `npx zapier-sdk run-action gmail write draft_v2_reply`

##### Forward Email
Forward an existing email message to new recipients.

- Type: write · Key: `forward_email`
- Requires: message_id
- Optional: to, cc, bcc, from, from_name, reply_to, additional_message, body_type, include_attachments, label_ids
- SDK: `runAction({ app: "gmail", actionType: "write", action: "forward_email" })`
- CLI: `npx zapier-sdk run-action gmail write forward_email`

##### Get Conversation
Retrieves every message in a Gmail conversation by its thread ID.

- Type: write · Key: `get_conversation`
- Requires: thread_id
- Optional: format
- SDK: `runAction({ app: "gmail", actionType: "write", action: "get_conversation" })`
- CLI: `npx zapier-sdk run-action gmail write get_conversation`

##### Create Label
Creates a new label.

- Type: write · Key: `label`
- Requires: name
- SDK: `runAction({ app: "gmail", actionType: "write", action: "label" })`
- CLI: `npx zapier-sdk run-action gmail write label`

##### Send Email
Create and send a new email message.

- Type: write · Key: `message`
- Requires: subject, body
- Optional: to, cc, bcc, from, from_name, reply_to, body_type, signature, render_signature_in_html, signature_delimiter, label_ids, file, send_to_groups
- SDK: `runAction({ app: "gmail", actionType: "write", action: "message" })`
- CLI: `npx zapier-sdk run-action gmail write message`

##### Remove Label From Email
Remove a label from an email message.

- Type: write · Key: `remove_label`
- Requires: message_id, label_ids
- SDK: `runAction({ app: "gmail", actionType: "write", action: "remove_label" })`
- CLI: `npx zapier-sdk run-action gmail write remove_label`

##### Remove Label From Conversation
Remove a specified label from all emails within a conversation.

- Type: write · Key: `remove_thread_label`
- Requires: thread_id, label_ids
- SDK: `runAction({ app: "gmail", actionType: "write", action: "remove_thread_label" })`
- CLI: `npx zapier-sdk run-action gmail write remove_thread_label`

##### Reply to Email
Send a reply to an email message.

- Type: write · Key: `reply_to_message`
- Requires: thread_id, body
- Optional: trigger_instructions, to, cc, bcc, from, from_name, reply_to, subject, body_type, signature, render_signature_in_html, signature_delimiter, label_ids, file
- SDK: `runAction({ app: "gmail", actionType: "write", action: "reply_to_message" })`
- CLI: `npx zapier-sdk run-action gmail write reply_to_message`

#### Queries (2)

Queries read from Gmail and return data. They change nothing.

##### Get Attachment by Filename
Retrieves a specific Gmail message attachment by Filename.

- Type: search · Key: `attachment`
- Requires: message_id, attachment_filename
- Optional: attachment_size
- SDK: `runAction({ app: "gmail", actionType: "search", action: "attachment" })`
- CLI: `npx zapier-sdk run-action gmail search attachment`

##### Find Email
Finds an email message.

- Type: search · Key: `message`
- Requires: query
- SDK: `runAction({ app: "gmail", actionType: "search", action: "message" })`
- CLI: `npx zapier-sdk run-action gmail search message`

#### Search or Write Actions (1)

These operations search for a match first, and create one only if nothing is found.

##### Find or Send Email
Finds or creates a specific message.

- Type: search_or_write · Key: `message`
- Requires: query, subject, body
- Optional: to, cc, bcc, from, from_name, reply_to, body_type, signature, render_signature_in_html, signature_delimiter, label_ids, file, send_to_groups
- SDK: `runAction({ app: "gmail", actionType: "search_or_write", action: "message" })`
- CLI: `npx zapier-sdk run-action gmail search_or_write message`

## MILKEE

### Identity
MILKEE is a all in one accounting tool for Swiss Freelancers and small businesses. Do your time tracking, invoicing and accounting all in one software.

- App slug: milkee
- Operations published here: 68 (40 events, 9 functions, 10 queries, 9 search-or-write actions)

### Authentication
Zapier connects to MILKEE via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection milkee
```

### Capabilities

#### Events (40)

Events fire when something happens in MILKEE. Use them to start a run.

##### New Account
Triggers when a new account is created.

- Type: read · Key: `accountList`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "accountList" })`
- CLI: `npx zapier-sdk run-action milkee read accountList`

##### New Contact
Triggers when a new contact is created.

- Type: read · Key: `contactList`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "contactList" })`
- CLI: `npx zapier-sdk run-action milkee read contactList`

##### New Customer
Triggers when a new customer is created.

- Type: read · Key: `customerList`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "customerList" })`
- CLI: `npx zapier-sdk run-action milkee read customerList`

##### Deleted Account
Triggers when an account is deleted.

- Type: read · Key: `deleted_account`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "deleted_account" })`
- CLI: `npx zapier-sdk run-action milkee read deleted_account`

##### Deleted Contact
Triggers when a contact is deleted.

- Type: read · Key: `deleted_contact`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "deleted_contact" })`
- CLI: `npx zapier-sdk run-action milkee read deleted_contact`

##### Deleted Customer
Triggers when a customer is deleted.

- Type: read · Key: `deleted_customer`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "deleted_customer" })`
- CLI: `npx zapier-sdk run-action milkee read deleted_customer`

##### Deleted Entry
Triggers when an accounting entry is deleted.

- Type: read · Key: `deleted_entry`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "deleted_entry" })`
- CLI: `npx zapier-sdk run-action milkee read deleted_entry`

##### Deleted Product
Triggers when a product is deleted.

- Type: read · Key: `deleted_product`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "deleted_product" })`
- CLI: `npx zapier-sdk run-action milkee read deleted_product`

##### Deleted Project
Triggers when a project is deleted.

- Type: read · Key: `deleted_project`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "deleted_project" })`
- CLI: `npx zapier-sdk run-action milkee read deleted_project`

##### Deleted Tag
Triggers when a tag is deleted.

- Type: read · Key: `deleted_tag`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "deleted_tag" })`
- CLI: `npx zapier-sdk run-action milkee read deleted_tag`

##### Deleted Task
Triggers when a task is deleted.

- Type: read · Key: `deleted_task`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "deleted_task" })`
- CLI: `npx zapier-sdk run-action milkee read deleted_task`

##### Deleted Tax Rate
Triggers when a tax rate is deleted.

- Type: read · Key: `deleted_tax_rate`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "deleted_tax_rate" })`
- CLI: `npx zapier-sdk run-action milkee read deleted_tax_rate`

##### Deleted Time Track
Triggers when a time track entry is deleted.

- Type: read · Key: `deleted_time_track`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "deleted_time_track" })`
- CLI: `npx zapier-sdk run-action milkee read deleted_time_track`

##### New Entry
Triggers when a new entry is created.

- Type: read · Key: `entryList`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "entryList" })`
- CLI: `npx zapier-sdk run-action milkee read entryList`

##### New Account
Triggers when a new account is created.

- Type: read · Key: `new_account`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "new_account" })`
- CLI: `npx zapier-sdk run-action milkee read new_account`

##### New Contact
Triggers when a new contact is created.

- Type: read · Key: `new_contact`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "new_contact" })`
- CLI: `npx zapier-sdk run-action milkee read new_contact`

##### New Customer
Triggers when a new customer is created.

- Type: read · Key: `new_customer`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "new_customer" })`
- CLI: `npx zapier-sdk run-action milkee read new_customer`

##### New Entry
Triggers when a new accounting entry is created.

- Type: read · Key: `new_entry`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "new_entry" })`
- CLI: `npx zapier-sdk run-action milkee read new_entry`

##### New Product
Triggers when a new product is created.

- Type: read · Key: `new_product`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "new_product" })`
- CLI: `npx zapier-sdk run-action milkee read new_product`

##### New Project
Triggers when a new project is created.

- Type: read · Key: `new_project`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "new_project" })`
- CLI: `npx zapier-sdk run-action milkee read new_project`

##### New Tag
Triggers when a new tag is created.

- Type: read · Key: `new_tag`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "new_tag" })`
- CLI: `npx zapier-sdk run-action milkee read new_tag`

##### New Task
Triggers when a new task is created.

- Type: read · Key: `new_task`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "new_task" })`
- CLI: `npx zapier-sdk run-action milkee read new_task`

##### New Tax Rate
Triggers when a new tax rate is created.

- Type: read · Key: `new_tax_rate`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "new_tax_rate" })`
- CLI: `npx zapier-sdk run-action milkee read new_tax_rate`

##### New Time Track
Triggers when a new time track entry is created.

- Type: read · Key: `new_time_track`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "new_time_track" })`
- CLI: `npx zapier-sdk run-action milkee read new_time_track`

##### New Product
Triggers when a new product is created.

- Type: read · Key: `productList`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "productList" })`
- CLI: `npx zapier-sdk run-action milkee read productList`

##### New Project
Triggers when a new project is created.

- Type: read · Key: `projectList`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "projectList" })`
- CLI: `npx zapier-sdk run-action milkee read projectList`

##### New Tag
Triggers when a new tag is created.

- Type: read · Key: `tagList`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "tagList" })`
- CLI: `npx zapier-sdk run-action milkee read tagList`

##### New Task
Triggers when a new task is created.

- Type: read · Key: `taskList`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "taskList" })`
- CLI: `npx zapier-sdk run-action milkee read taskList`

##### New Tax Rate
Triggers when a new tax rate is created.

- Type: read · Key: `taxRateList`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "taxRateList" })`
- CLI: `npx zapier-sdk run-action milkee read taxRateList`

##### New Time Track
Triggers when a new time track is created.

- Type: read · Key: `timeTrackList`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "timeTrackList" })`
- CLI: `npx zapier-sdk run-action milkee read timeTrackList`

##### Updated Account
Triggers when an account is updated.

- Type: read · Key: `updated_account`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "updated_account" })`
- CLI: `npx zapier-sdk run-action milkee read updated_account`

##### Updated Contact
Triggers when a contact is updated.

- Type: read · Key: `updated_contact`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "updated_contact" })`
- CLI: `npx zapier-sdk run-action milkee read updated_contact`

##### Updated Customer
Triggers when a customer is updated.

- Type: read · Key: `updated_customer`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "updated_customer" })`
- CLI: `npx zapier-sdk run-action milkee read updated_customer`

##### Updated Entry
Triggers when an accounting entry is updated.

- Type: read · Key: `updated_entry`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "updated_entry" })`
- CLI: `npx zapier-sdk run-action milkee read updated_entry`

##### Updated Product
Triggers when a product is updated.

- Type: read · Key: `updated_product`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "updated_product" })`
- CLI: `npx zapier-sdk run-action milkee read updated_product`

##### Updated Project
Triggers when a project is updated.

- Type: read · Key: `updated_project`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "updated_project" })`
- CLI: `npx zapier-sdk run-action milkee read updated_project`

##### Updated Tag
Triggers when a tag is updated.

- Type: read · Key: `updated_tag`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "updated_tag" })`
- CLI: `npx zapier-sdk run-action milkee read updated_tag`

##### Updated Task
Triggers when a task is updated.

- Type: read · Key: `updated_task`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "updated_task" })`
- CLI: `npx zapier-sdk run-action milkee read updated_task`

##### Updated Tax Rate
Triggers when a tax rate is updated.

- Type: read · Key: `updated_tax_rate`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "updated_tax_rate" })`
- CLI: `npx zapier-sdk run-action milkee read updated_tax_rate`

##### Updated Time Track
Triggers when a time track entry is updated.

- Type: read · Key: `updated_time_track`
- Requires: nothing
- SDK: `runAction({ app: "milkee", actionType: "read", action: "updated_time_track" })`
- CLI: `npx zapier-sdk run-action milkee read updated_time_track`

#### Functions (9)

Functions change something in MILKEE.

##### Create Account
Creates a new account.

- Type: write · Key: `accountCreate`
- Requires: name, number, type
- Optional: iban, is_primary_bank_account
- SDK: `runAction({ app: "milkee", actionType: "write", action: "accountCreate" })`
- CLI: `npx zapier-sdk run-action milkee write accountCreate`

##### Create Customer
Creates a new customer.

- Type: write · Key: `customerCreate`
- Requires: name
- Optional: contact_name, email, phone, street, zip, city, country, website, default_hourly_rate, tax_rate_id
- SDK: `runAction({ app: "milkee", actionType: "write", action: "customerCreate" })`
- CLI: `npx zapier-sdk run-action milkee write customerCreate`

##### Create Entry
Creates a new accounting entry.

- Type: write · Key: `entryCreate`
- Requires: date, debit_account_id, credit_account_id
- Optional: description, sum, number, customer_id, project_id, tax_rate_id, billable, entry_group_id, tag_ids
- SDK: `runAction({ app: "milkee", actionType: "write", action: "entryCreate" })`
- CLI: `npx zapier-sdk run-action milkee write entryCreate`

##### Create Product
Creates a new product.

- Type: write · Key: `productCreate`
- Requires: name
- Optional: description, price, unit
- SDK: `runAction({ app: "milkee", actionType: "write", action: "productCreate" })`
- CLI: `npx zapier-sdk run-action milkee write productCreate`

##### Create Project
Creates a new project.

- Type: write · Key: `projectCreate`
- Requires: name
- Optional: customer_id, newCustomerName, project_type, budget, hourly_rate
- SDK: `runAction({ app: "milkee", actionType: "write", action: "projectCreate" })`
- CLI: `npx zapier-sdk run-action milkee write projectCreate`

##### Create Tag
Creates a new tag.

- Type: write · Key: `tagCreate`
- Requires: name, color
- SDK: `runAction({ app: "milkee", actionType: "write", action: "tagCreate" })`
- CLI: `npx zapier-sdk run-action milkee write tagCreate`

##### Create Task
Creates a new task.

- Type: write · Key: `taskCreate`
- Requires: title, due, project_id
- Optional: description, status, planned_hours
- SDK: `runAction({ app: "milkee", actionType: "write", action: "taskCreate" })`
- CLI: `npx zapier-sdk run-action milkee write taskCreate`

##### Create Tax Rate
Creates a new tax rate.

- Type: write · Key: `taxRateCreate`
- Requires: name, account_id
- Optional: name_on_documents, rate, saldo_rate, field_number, is_acquisition_tax, acquisition_account_id, archived
- SDK: `runAction({ app: "milkee", actionType: "write", action: "taxRateCreate" })`
- CLI: `npx zapier-sdk run-action milkee write taxRateCreate`

##### Create Time Track
Creates a new time track entry.

- Type: write · Key: `timeTrackCreate`
- Requires: project_id, hours, minutes, date
- Optional: description, task_id, hourly_rate, billable, start, end
- SDK: `runAction({ app: "milkee", actionType: "write", action: "timeTrackCreate" })`
- CLI: `npx zapier-sdk run-action milkee write timeTrackCreate`

#### Queries (10)

Queries read from MILKEE and return data. They change nothing.

##### Find Account
Finds an account by name, number, or type.

- Type: search · Key: `accountSearch`
- Requires: nothing
- Optional: name, number, type
- SDK: `runAction({ app: "milkee", actionType: "search", action: "accountSearch" })`
- CLI: `npx zapier-sdk run-action milkee search accountSearch`

##### Find Contact
Finds a contact by name or customer.

- Type: search · Key: `contactSearch`
- Requires: nothing
- Optional: name, customer_id
- SDK: `runAction({ app: "milkee", actionType: "search", action: "contactSearch" })`
- CLI: `npx zapier-sdk run-action milkee search contactSearch`

##### Find Customer
Finds a customer by company name.

- Type: search · Key: `customerSearch`
- Requires: name
- SDK: `runAction({ app: "milkee", actionType: "search", action: "customerSearch" })`
- CLI: `npx zapier-sdk run-action milkee search customerSearch`

##### Find Entry
Finds entries by type, customer, project, or other criteria.

- Type: search · Key: `entrySearch`
- Requires: nothing
- Optional: type, customer_id, project_id, description, billable, locked, tax_rate_id, account_id, tag_id
- SDK: `runAction({ app: "milkee", actionType: "search", action: "entrySearch" })`
- CLI: `npx zapier-sdk run-action milkee search entrySearch`

##### Find Product
Finds a product by name or archive status.

- Type: search · Key: `productSearch`
- Requires: nothing
- Optional: name, archived
- SDK: `runAction({ app: "milkee", actionType: "search", action: "productSearch" })`
- CLI: `npx zapier-sdk run-action milkee search productSearch`

##### Find Project
Finds a project by name, customer, or archive status.

- Type: search · Key: `projectSearch`
- Requires: nothing
- Optional: name, customer_id, archived
- SDK: `runAction({ app: "milkee", actionType: "search", action: "projectSearch" })`
- CLI: `npx zapier-sdk run-action milkee search projectSearch`

##### Find Tag
Finds a tag by name.

- Type: search · Key: `tagSearch`
- Requires: name
- SDK: `runAction({ app: "milkee", actionType: "search", action: "tagSearch" })`
- CLI: `npx zapier-sdk run-action milkee search tagSearch`

##### Find Task
Finds a task by title, status, or project.

- Type: search · Key: `taskSearch`
- Requires: nothing
- Optional: title, project_id, status
- SDK: `runAction({ app: "milkee", actionType: "search", action: "taskSearch" })`
- CLI: `npx zapier-sdk run-action milkee search taskSearch`

##### Find Tax Rate
Finds a tax rate by name or archive status.

- Type: search · Key: `taxRateSearch`
- Requires: nothing
- Optional: name, archived
- SDK: `runAction({ app: "milkee", actionType: "search", action: "taxRateSearch" })`
- CLI: `npx zapier-sdk run-action milkee search taxRateSearch`

##### Find Time Track
Finds time tracks by project, customer, status, or other criteria.

- Type: search · Key: `timeTrackSearch`
- Requires: nothing
- Optional: project_id, customer_id, task_id, description, billable, status
- SDK: `runAction({ app: "milkee", actionType: "search", action: "timeTrackSearch" })`
- CLI: `npx zapier-sdk run-action milkee search timeTrackSearch`

#### Search or Write Actions (9)

These operations search for a match first, and create one only if nothing is found.

##### Find or Create Account
Finds an account by name, number, or type.

- Type: search_or_write · Key: `accountSearch`
- Requires: name, number, type
- Optional: iban, is_primary_bank_account
- SDK: `runAction({ app: "milkee", actionType: "search_or_write", action: "accountSearch" })`
- CLI: `npx zapier-sdk run-action milkee search_or_write accountSearch`

##### Find or Create Customer
Finds a customer by company name.

- Type: search_or_write · Key: `customerSearch`
- Requires: name
- Optional: contact_name, email, phone, street, zip, city, country, website, default_hourly_rate, tax_rate_id
- SDK: `runAction({ app: "milkee", actionType: "search_or_write", action: "customerSearch" })`
- CLI: `npx zapier-sdk run-action milkee search_or_write customerSearch`

##### Find or Create Entry
Finds entries by type, customer, project, or other criteria.

- Type: search_or_write · Key: `entrySearch`
- Requires: date, debit_account_id, credit_account_id
- Optional: type, customer_id, project_id, description, billable, locked, tax_rate_id, account_id, tag_id, sum, number, entry_group_id, tag_ids
- SDK: `runAction({ app: "milkee", actionType: "search_or_write", action: "entrySearch" })`
- CLI: `npx zapier-sdk run-action milkee search_or_write entrySearch`

##### Find or Create Product
Finds a product by name or archive status.

- Type: search_or_write · Key: `productSearch`
- Requires: name
- Optional: archived, description, price, unit
- SDK: `runAction({ app: "milkee", actionType: "search_or_write", action: "productSearch" })`
- CLI: `npx zapier-sdk run-action milkee search_or_write productSearch`

##### Find or Create Project
Finds a project by name, customer, or archive status.

- Type: search_or_write · Key: `projectSearch`
- Requires: name
- Optional: customer_id, archived, newCustomerName, project_type, budget, hourly_rate
- SDK: `runAction({ app: "milkee", actionType: "search_or_write", action: "projectSearch" })`
- CLI: `npx zapier-sdk run-action milkee search_or_write projectSearch`

##### Find or Create Tag
Finds a tag by name.

- Type: search_or_write · Key: `tagSearch`
- Requires: name, color
- SDK: `runAction({ app: "milkee", actionType: "search_or_write", action: "tagSearch" })`
- CLI: `npx zapier-sdk run-action milkee search_or_write tagSearch`

##### Find or Create Task
Finds a task by title, status, or project.

- Type: search_or_write · Key: `taskSearch`
- Requires: title, project_id, due
- Optional: status, description, planned_hours
- SDK: `runAction({ app: "milkee", actionType: "search_or_write", action: "taskSearch" })`
- CLI: `npx zapier-sdk run-action milkee search_or_write taskSearch`

##### Find or Create Tax Rate
Finds a tax rate by name or archive status.

- Type: search_or_write · Key: `taxRateSearch`
- Requires: name, account_id
- Optional: archived, name_on_documents, rate, saldo_rate, field_number, is_acquisition_tax, acquisition_account_id
- SDK: `runAction({ app: "milkee", actionType: "search_or_write", action: "taxRateSearch" })`
- CLI: `npx zapier-sdk run-action milkee search_or_write taxRateSearch`

##### Find or Create Time Track
Finds time tracks by project, customer, status, or other criteria.

- Type: search_or_write · Key: `timeTrackSearch`
- Requires: project_id, hours, minutes, date
- Optional: customer_id, task_id, description, billable, status, hourly_rate, start, end
- SDK: `runAction({ app: "milkee", actionType: "search_or_write", action: "timeTrackSearch" })`
- CLI: `npx zapier-sdk run-action milkee search_or_write timeTrackSearch`

## Frequently asked questions about automating with Gmail and MILKEE

### My AI agent already connects to my apps. Why add Zapier?

Your AI agent’s built-in or native connectors cover a limited set of popular apps. Zapier reaches 10,000+ apps and 90,000+ triggers and actions. Zapier also adds what your AI agent can’t: one place to manage logins and credentials, so you never paste an API key; automations that keep running after the chat closes, with fixes you can review when a run hits a snag; and the freedom to switch agent interfaces without starting over.

### Can’t my AI agent already run tasks on a schedule?

Most popular AI agents can run scheduled tasks. And for simple recurring jobs, that might be all you need. Automations that run on Zapier can run on a schedule too, but they can also start the moment something happens in your apps—like when a new lead/ticket comes in or you get an email reply. Zapier also uses AI only in the steps that need judgment, so routine steps like posting to Slack or updating Salesforce don’t burn model tokens.

### Why not have my AI agent write me a script?

You can, and the first version will probably work. The trouble comes later: a script needs somewhere to run, a way to hear about events, and someone to keep it going. If an API changes or a login expires, your script can quietly stop until you notice. It also holds your keys, often in a repo, where a leak can expose your accounts. With Zapier, your agent builds the automation, and you publish it. Zapier hosts it, handles your logins and credentials, and records every run. If a run fails, Zapier diagnoses what went wrong and prepares a fix you can review. Or you can decide which fixes Zapier can apply for you.

## Links
- Gmail integrations: zapier.com/apps/gmail/integrations.md
- MILKEE integrations: zapier.com/apps/milkee/integrations.md
- Full page: zapier.com/apps/gmail/integrations/milkee
- SDK: npmjs.com/package/@zapier/zapier-sdk