# New Interaction Events (Instant) — Slack

> Emit new events on new Slack interactivity events sourced from Block Kit interactive elements, Slash commands, or Shortcuts.

- Key: `slack_v2-new-interaction-event-received`
- Type: Trigger (Instant)
- Version: 0.0.31
- App: Slack (`slack_v2`) — https://pipedream.com/apps/slack-v2.md
- This page (HTML): https://pipedream.com/apps/slack-v2/triggers/new-interaction-event-received
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/slack_v2/sources/new-interaction-event-received/new-interaction-event-received.mjs

## Description

Emit new events on new Slack [interactivity events](https://api.slack.com/interactivity) sourced from [Block Kit interactive elements](https://api.slack.com/interactivity/components), [Slash commands](https://api.slack.com/interactivity/slash-commands), or [Shortcuts](https://api.slack.com/interactivity/shortcuts).

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `action_ids` | `string[]` | No | Filter interaction events by specific action_id's to subscribe for new interaction events. If none are specified, all action_ids created via Pipedream will emit new events. |
| `conversations` | `string[]` | No | Filter interaction events by one or more channels. If none selected, any interaction event in any channel will emit new events. |

## Returns

Events emitted by Slack.

## Run it

**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 deployed = await pd.triggers.deploy({
  id: "slack_v2-new-interaction-event-received",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    slack_v2: { authProvisionId: "apn_xxxxxxx" },
    action_ids: ["Action IDs"],
    conversations: ["Channels"],
  },
  webhookUrl: "https://example.com/webhooks/slack-v2",
})

console.log(deployed.id)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/triggers/deploy \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "slack_v2-new-interaction-event-received",
    "webhook_url": "https://example.com/webhooks/slack-v2",
    "configured_props": {
      "slack_v2": { "authProvisionId": "apn_xxxxxxx" },
      "action_ids": ["Action IDs"],
      "conversations": ["Channels"]
    }
  }'
```

**MCP**

MCP servers expose Slack actions as on-demand tools.

New Interaction Events (Instant) is an event source, so your application deploys it with the Connect SDK or API and then either receives each event at a webhook URL or retrieves events on demand with the trigger events API.

## Event delivery

Every event is sent to the HTTP endpoint you choose when you deploy the source. Or: no webhook required — your app or agent can fetch recent events from the [trigger events API](https://pipedream.com/docs/connect/api-reference/list-trigger-events.md) instead.

---

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