# Create Meeting Clip — Fireflies

> Create a clip (a Fireflies "bite") from a completed, already-transcribed meeting by specifying a start and end time in seconds. This is the action to use for past meetings — for a meeting that is still running, use Create Live Meeting…

- Key: `fireflies-create-meeting-clip`
- Type: Action (Write)
- Version: 0.0.2
- App: Fireflies (`fireflies`) — https://pipedream.com/apps/fireflies.md
- This page (HTML): https://pipedream.com/apps/fireflies/actions/create-meeting-clip
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/fireflies/actions/create-meeting-clip/create-meeting-clip.mjs

## Description

Create a clip (a Fireflies "bite") from a completed, already-transcribed meeting by specifying a start and end time in seconds. This is the action to use for past meetings — for a meeting that is still running, use **Create Live Meeting Soundbite** instead. To find the moment to clip, read the `sentences` array returned by **Find Meeting by ID**: each sentence carries its own `start_time` and `end_time` in seconds (e.g. `142.5`), so clipping around a quote means passing that sentence's start and end. Clip generation is asynchronous — this returns immediately with `status: pending` and no media, so `preview`, `thumbnail` and the playable URL are not available yet. Pass the returned `id` to **Find Clip by ID** and poll until `status` reaches a terminal `ready` or `error`. [See the documentation](https://docs.fireflies.ai/graphql-api/mutation/create-bite)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `meetingId` | `string` | Yes | The completed meeting to clip. A Fireflies meeting ID and transcript ID are the same value. Use Find Meeting by ID or Find Recent Meeting to look up a meeting ID. Options are loaded from the connected account. |
| `startTime` | `string` | Yes | Where the clip starts, in seconds from the beginning of the meeting, e.g. 142.5. Fractional seconds are allowed, using a dot as the decimal separator. Thousands separators are ignored, so 1,200 is read as 1200 seconds. Copy the start_time of a sentence returned by Find Meeting by ID to clip around a specific quote. |
| `endTime` | `string` | Yes | Where the clip ends, in seconds from the beginning of the meeting, e.g. 168.25. Uses a dot as the decimal separator and ignores thousands separators, the same as Start Time. Must be greater than Start Time. |
| `name` | `string` | No | A title for the clip, e.g. Pricing objection. Max 256 characters. |
| `mediaType` | `string` | No | Whether to produce a video or audio clip. A video clip is only possible if the meeting itself was recorded with video. |
| `privacies` | `string[]` | No | Who can view the clip. public is viewable by anyone with the link, team by your Fireflies team, and participants by the meeting's attendees. |
| `summary` | `string` | No | A short description of what the clip contains, e.g. Customer pushes back on the enterprise tier price. Max 500 characters. |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "fireflies",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "fireflies-create-meeting-clip",
  arguments: {
    meetingId: "Meeting ID",
    startTime: "Start Time",
  },
})
```

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "fireflies-create-meeting-clip",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    fireflies: { authProvisionId: "apn_xxxxxxx" },
    meetingId: "Meeting ID",
    startTime: "Start Time",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "fireflies-create-meeting-clip",
    "configured_props": {
      "fireflies": { "authProvisionId": "apn_xxxxxxx" },
      "meetingId": "Meeting ID",
      "startTime": "Start Time"
    }
  }'
```

---

- App: https://pipedream.com/apps/fireflies.md · All apps: https://pipedream.com/apps
