# Create Bot — Meetstream AI

> Creates a new bot instance to join a meeting. See the documentation

- Key: `meetstream_ai-create-bot`
- Type: Action (Write)
- Version: 0.0.3
- App: Meetstream AI (`meetstream_ai`) — https://pipedream.com/apps/meetstream-ai.md
- This page (HTML): https://pipedream.com/apps/meetstream-ai/actions/create-bot
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/meetstream_ai/actions/create-bot/create-bot.mjs

## Description

Creates a new bot instance to join a meeting. [See the documentation](https://vento.so/view/35d0142d-f91f-47f6-8175-d42e1953d6f1?utm_medium=share)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `meetingLink` | `string` | Yes | The link to the meeting where the bot should join |
| `botName` | `string` | No | The name of the bot |
| `audioRequired` | `boolean` | No | Whether audio is required |
| `videoRequired` | `boolean` | No | Whether video is required |
| `liveAudioRequired` | `string` | No | Specify websocket_url for live audio streaming |
| `liveTranscriptionRequired` | `string` | No | Specify webhook_url for live transcription |
| `deepgramApiKey` | `string` | No | This key is required if you use a Google Meet link and Live Transcription Webhook URL is specified |

## 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": "meetstream_ai",
      },
    },
  },
)

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: "meetstream_ai-create-bot",
  arguments: {
    meetingLink: "Meeting Link",
    botName: "Bot Name",
  },
})
```

**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: "meetstream_ai-create-bot",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    meetstream_ai: { authProvisionId: "apn_xxxxxxx" },
    meetingLink: "Meeting Link",
    botName: "Bot Name",
  },
})

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": "meetstream_ai-create-bot",
    "configured_props": {
      "meetstream_ai": { "authProvisionId": "apn_xxxxxxx" },
      "meetingLink": "Meeting Link",
      "botName": "Bot Name"
    }
  }'
```

---

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