# 1FIT + Grok by xAI Integrations: Connect with Zapier MCP
> zapier.com/apps/1fit/integrations/grok-by-xai
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate 1FIT and Grok by xAI 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).

## 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** (default for AI clients — self-contained for OAuth clients; no further docs needed):
  - Endpoint: `https://mcp.zapier.com/api/v1/connect` (Streamable HTTP only; SSE is not supported).
  - Auth: OAuth 2.0 + PKCE + Dynamic Client Registration. Do not create a server at `mcp.zapier.com` or ask for an API token; Zapier auto-provisions the server during browser sign-in.
  - Client setup: Claude Code `claude mcp add --transport http zapier https://mcp.zapier.com/api/v1/connect`; Cursor `mcp.json` `{ "type": "http", "url": "https://mcp.zapier.com/api/v1/connect" }`; VS Code and other clients `mcp.json` `{ "type": "http", "url": "https://mcp.zapier.com/api/v1/connect" }`; OpenCode `opencode.json` `{ "type": "remote", "url": "https://mcp.zapier.com/api/v1/connect" }`; Terminal auto-installer `npx @zapier/install-zapier`.
  - Setup guides: Claude https://docs.zapier.com/mcp/get-started/connect/claude.md; Claude Code https://docs.zapier.com/mcp/get-started/connect/claude-code.md; ChatGPT https://docs.zapier.com/mcp/get-started/connect/chatgpt.md; Cursor https://docs.zapier.com/mcp/get-started/connect/cursor.md; Codex https://docs.zapier.com/mcp/get-started/connect/codex.md.
  - After sign-in: call `discover_zapier_actions` for `1fit` and `grok-by-xai`, then `enable_zapier_action`. If 1FIT or Grok by xAI isn't connected in Zapier yet, running an action returns a browser OAuth link for the user.
- **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**: once Categorize Text is enabled, call `grok_by_xai_categorize_text`. Each operation below lists its MCP tool name.
- **SDK**:

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

const zapier = createZapierSdk();
const { data: connection } = await zapier.findFirstConnection({ app: "grok-by-xai", owner: "me" });

const { data } = await zapier.runAction({
  app: "grok-by-xai",
  actionType: "write",
  action: "categorize_text",
  connection: connection.id,
  inputs: {
    model: "", // Grok Model
    raw_text: "", // Input Text
    categories: "", // Categories
    allow_multiple_categories: "", // Allow Grok to Output Multiple Categories
  },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action grok-by-xai write categorize_text \
  --inputs '{"model":"","raw_text":"","categories":"","allow_multiple_categories":""}'
```

## 1FIT

### Identity
1FIT is an online coaching platform which helps users scale their business with ease.

- App slug: 1fit
- Operations published here: 8 (6 events, 2 functions)

### Authentication
Zapier connects to 1FIT 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.130.2 and @zapier/zapier-sdk-cli v0.93.2; 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 1fit
```

### Capabilities

#### Events (6)

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

##### Activity Logged
Triggers when a client logs an activity.

- Type: read · Key: `activity_logged`
- Requires: nothing
- MCP tool: `1fit_activity_logged` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "1fit", actionType: "read", action: "activity_logged" })`
- CLI: `npx zapier-sdk run-action 1fit read activity_logged`

##### New Client
Triggers when a new client is created.

- Type: read · Key: `client_created`
- Requires: nothing
- MCP tool: `1fit_new_client` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "1fit", actionType: "read", action: "client_created" })`
- CLI: `npx zapier-sdk run-action 1fit read client_created`

##### Client Deactivated
Triggers when a client is deactivated.

- Type: read · Key: `client_deactivated`
- Requires: nothing
- MCP tool: `1fit_client_deactivated` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "1fit", actionType: "read", action: "client_deactivated" })`
- CLI: `npx zapier-sdk run-action 1fit read client_deactivated`

##### Client Deleted
Triggers when a client is deleted.

- Type: read · Key: `client_deleted`
- Requires: nothing
- MCP tool: `1fit_client_deleted` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "1fit", actionType: "read", action: "client_deleted" })`
- CLI: `npx zapier-sdk run-action 1fit read client_deleted`

##### New Prospect
Triggers when a new prospect is created.

- Type: read · Key: `prospect_created`
- Requires: nothing
- MCP tool: `1fit_new_prospect` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "1fit", actionType: "read", action: "prospect_created" })`
- CLI: `npx zapier-sdk run-action 1fit read prospect_created`

##### Workout Completed
Triggers when a client completes a workout.

- Type: read · Key: `workout_completed`
- Requires: nothing
- MCP tool: `1fit_workout_completed` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "1fit", actionType: "read", action: "workout_completed" })`
- CLI: `npx zapier-sdk run-action 1fit read workout_completed`

#### Functions (2)

Functions change something in 1FIT.

##### Create Client
Creates a new client in 1FIT

- Type: write · Key: `create_client`
- Requires: first_name, last_name, email, checkin_frequency
- Optional: mobile, payment_amount, payment_schedule, notes
- MCP tool: `1fit_create_client` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "1fit", actionType: "write", action: "create_client" })`
- CLI: `npx zapier-sdk run-action 1fit write create_client`

##### Create Prospect
Creates a new prospect in 1FIT

- Type: write · Key: `create_prospect`
- Requires: first_name, last_name, email, mobile, value, close_percentage, stage
- Optional: notes
- MCP tool: `1fit_create_prospect` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "1fit", actionType: "write", action: "create_prospect" })`
- CLI: `npx zapier-sdk run-action 1fit write create_prospect`

## Grok by xAI

### Identity
Grok by xAI is a speedy, hyper-intelligent, truthful LLM designed to understand the universe.

- App slug: grok-by-xai
- Operations published here: 5 (5 functions)

### Authentication
Zapier connects to Grok by xAI 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.130.2 and @zapier/zapier-sdk-cli v0.93.2; 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 grok-by-xai
```

### Capabilities

#### Functions (5)

Functions change something in Grok by xAI.

##### Categorize Text
Assign a category or label to the input text.

- Type: write · Key: `categorize_text`
- Requires: model, raw_text, categories, allow_multiple_categories
- Optional: info_data_usage
- MCP tool: `grok_by_xai_categorize_text` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "grok-by-xai", actionType: "write", action: "categorize_text" })`
- CLI: `npx zapier-sdk run-action grok-by-xai write categorize_text`

##### Extract Data From Images
Great for receipts, invoices, or other images.

- Type: write · Key: `extract_data_from_image`
- Requires: model, files, arguments
- Optional: info_data_usage
- MCP tool: `grok_by_xai_extract_data_from_images` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "grok-by-xai", actionType: "write", action: "extract_data_from_image" })`
- CLI: `npx zapier-sdk run-action grok-by-xai write extract_data_from_image`

##### Extract Data From Text
Extracts specific fields from unstructured text.

- Type: write · Key: `extract_data_from_text`
- Requires: model, raw_text, arguments
- Optional: info_data_usage
- MCP tool: `grok_by_xai_extract_data_from_text` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "grok-by-xai", actionType: "write", action: "extract_data_from_text" })`
- CLI: `npx zapier-sdk run-action grok-by-xai write extract_data_from_text`

##### Generate Image
Create brand new images from a text prompt.

- Type: write · Key: `generate_image`
- Requires: prompt
- Optional: info_data_usage, n
- MCP tool: `grok_by_xai_generate_image` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "grok-by-xai", actionType: "write", action: "generate_image" })`
- CLI: `npx zapier-sdk run-action grok-by-xai write generate_image`

##### Ask Grok
Send a prompt or images to Grok, which can access realtime data from X, the internet, news, and RSS feeds.

- Type: write · Key: `send_prompt`
- Requires: model, user_message, live_search
- Optional: info_data_usage, files, info_live_search, system_prompt, temperature
- MCP tool: `grok_by_xai_ask_grok` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "grok-by-xai", actionType: "write", action: "send_prompt" })`
- CLI: `npx zapier-sdk run-action grok-by-xai write send_prompt`

## Frequently asked questions about automating with 1FIT and Grok by xAI

### 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
- 1FIT integrations: zapier.com/apps/1fit/integrations.md
- Grok by xAI integrations: zapier.com/apps/grok-by-xai/integrations.md
- Full page: zapier.com/apps/1fit/integrations/grok-by-xai
- MCP quickstart (non-OAuth / connection-token clients): docs.zapier.com/mcp/get-started/quickstart.md
- SDK: npmjs.com/package/@zapier/zapier-sdk