|
| 1 | +--- |
| 2 | +title: Grain |
| 3 | +description: Access meeting recordings, transcripts, and AI summaries |
| 4 | +--- |
| 5 | + |
| 6 | +import { BlockInfoCard } from "@/components/ui/block-info-card" |
| 7 | + |
| 8 | +<BlockInfoCard |
| 9 | + type="grain" |
| 10 | + color="#F6FAF9" |
| 11 | +/> |
| 12 | + |
| 13 | +## Usage Instructions |
| 14 | + |
| 15 | +Integrate Grain into your workflow. Access meeting recordings, transcripts, highlights, and AI-generated summaries. Can also trigger workflows based on Grain webhook events. |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | +## Tools |
| 20 | + |
| 21 | +### `grain_list_recordings` |
| 22 | + |
| 23 | +List recordings from Grain with optional filters and pagination |
| 24 | + |
| 25 | +#### Input |
| 26 | + |
| 27 | +| Parameter | Type | Required | Description | |
| 28 | +| --------- | ---- | -------- | ----------- | |
| 29 | +| `cursor` | string | No | Pagination cursor for next page | |
| 30 | +| `beforeDatetime` | string | No | Only recordings before this ISO8601 timestamp | |
| 31 | +| `afterDatetime` | string | No | Only recordings after this ISO8601 timestamp | |
| 32 | +| `participantScope` | string | No | Filter: "internal" or "external" | |
| 33 | +| `titleSearch` | string | No | Search term to filter by recording title | |
| 34 | +| `teamId` | string | No | Filter by team UUID | |
| 35 | +| `meetingTypeId` | string | No | Filter by meeting type UUID | |
| 36 | +| `includeHighlights` | boolean | No | Include highlights/clips in response | |
| 37 | +| `includeParticipants` | boolean | No | Include participant list in response | |
| 38 | +| `includeAiSummary` | boolean | No | Include AI-generated summary | |
| 39 | + |
| 40 | +#### Output |
| 41 | + |
| 42 | +| Parameter | Type | Description | |
| 43 | +| --------- | ---- | ----------- | |
| 44 | +| `recordings` | array | Array of recording objects | |
| 45 | + |
| 46 | +### `grain_get_recording` |
| 47 | + |
| 48 | +Get details of a single recording by ID |
| 49 | + |
| 50 | +#### Input |
| 51 | + |
| 52 | +| Parameter | Type | Required | Description | |
| 53 | +| --------- | ---- | -------- | ----------- | |
| 54 | +| `recordingId` | string | Yes | The recording UUID | |
| 55 | +| `includeHighlights` | boolean | No | Include highlights/clips | |
| 56 | +| `includeParticipants` | boolean | No | Include participant list | |
| 57 | +| `includeAiSummary` | boolean | No | Include AI summary | |
| 58 | +| `includeCalendarEvent` | boolean | No | Include calendar event data | |
| 59 | +| `includeHubspot` | boolean | No | Include HubSpot associations | |
| 60 | + |
| 61 | +#### Output |
| 62 | + |
| 63 | +| Parameter | Type | Description | |
| 64 | +| --------- | ---- | ----------- | |
| 65 | +| `id` | string | Recording UUID | |
| 66 | +| `title` | string | Recording title | |
| 67 | +| `start_datetime` | string | ISO8601 start timestamp | |
| 68 | +| `end_datetime` | string | ISO8601 end timestamp | |
| 69 | +| `duration_ms` | number | Duration in milliseconds | |
| 70 | +| `media_type` | string | audio, transcript, or video | |
| 71 | +| `source` | string | Recording source \(zoom, meet, teams, etc.\) | |
| 72 | +| `url` | string | URL to view in Grain | |
| 73 | +| `thumbnail_url` | string | Thumbnail image URL | |
| 74 | +| `tags` | array | Array of tag strings | |
| 75 | +| `teams` | array | Teams the recording belongs to | |
| 76 | +| `meeting_type` | object | Meeting type info \(id, name, scope\) | |
| 77 | +| `highlights` | array | Highlights \(if included\) | |
| 78 | +| `participants` | array | Participants \(if included\) | |
| 79 | +| `ai_summary` | object | AI summary text \(if included\) | |
| 80 | +| `calendar_event` | object | Calendar event data \(if included\) | |
| 81 | +| `hubspot` | object | HubSpot associations \(if included\) | |
| 82 | + |
| 83 | +### `grain_get_transcript` |
| 84 | + |
| 85 | +Get the full transcript of a recording |
| 86 | + |
| 87 | +#### Input |
| 88 | + |
| 89 | +| Parameter | Type | Required | Description | |
| 90 | +| --------- | ---- | -------- | ----------- | |
| 91 | +| `recordingId` | string | Yes | The recording UUID | |
| 92 | + |
| 93 | +#### Output |
| 94 | + |
| 95 | +| Parameter | Type | Description | |
| 96 | +| --------- | ---- | ----------- | |
| 97 | +| `transcript` | array | Array of transcript sections | |
| 98 | + |
| 99 | +### `grain_list_teams` |
| 100 | + |
| 101 | +List all teams in the workspace |
| 102 | + |
| 103 | +#### Input |
| 104 | + |
| 105 | +| Parameter | Type | Required | Description | |
| 106 | +| --------- | ---- | -------- | ----------- | |
| 107 | + |
| 108 | +#### Output |
| 109 | + |
| 110 | +| Parameter | Type | Description | |
| 111 | +| --------- | ---- | ----------- | |
| 112 | +| `teams` | array | Array of team objects | |
| 113 | + |
| 114 | +### `grain_list_meeting_types` |
| 115 | + |
| 116 | +List all meeting types in the workspace |
| 117 | + |
| 118 | +#### Input |
| 119 | + |
| 120 | +| Parameter | Type | Required | Description | |
| 121 | +| --------- | ---- | -------- | ----------- | |
| 122 | + |
| 123 | +#### Output |
| 124 | + |
| 125 | +| Parameter | Type | Description | |
| 126 | +| --------- | ---- | ----------- | |
| 127 | +| `meeting_types` | array | Array of meeting type objects | |
| 128 | + |
| 129 | +### `grain_create_hook` |
| 130 | + |
| 131 | +Create a webhook to receive recording events |
| 132 | + |
| 133 | +#### Input |
| 134 | + |
| 135 | +| Parameter | Type | Required | Description | |
| 136 | +| --------- | ---- | -------- | ----------- | |
| 137 | +| `hookUrl` | string | Yes | Webhook endpoint URL \(must respond 2xx\) | |
| 138 | +| `filterBeforeDatetime` | string | No | Filter: recordings before this date | |
| 139 | +| `filterAfterDatetime` | string | No | Filter: recordings after this date | |
| 140 | +| `filterParticipantScope` | string | No | Filter: "internal" or "external" | |
| 141 | +| `filterTeamId` | string | No | Filter: specific team UUID | |
| 142 | +| `filterMeetingTypeId` | string | No | Filter: specific meeting type | |
| 143 | +| `includeHighlights` | boolean | No | Include highlights in webhook payload | |
| 144 | +| `includeParticipants` | boolean | No | Include participants in webhook payload | |
| 145 | +| `includeAiSummary` | boolean | No | Include AI summary in webhook payload | |
| 146 | + |
| 147 | +#### Output |
| 148 | + |
| 149 | +| Parameter | Type | Description | |
| 150 | +| --------- | ---- | ----------- | |
| 151 | +| `id` | string | Hook UUID | |
| 152 | +| `enabled` | boolean | Whether hook is active | |
| 153 | +| `hook_url` | string | The webhook URL | |
| 154 | +| `filter` | object | Applied filters | |
| 155 | +| `include` | object | Included fields | |
| 156 | +| `inserted_at` | string | ISO8601 creation timestamp | |
| 157 | + |
| 158 | +### `grain_list_hooks` |
| 159 | + |
| 160 | +List all webhooks for the account |
| 161 | + |
| 162 | +#### Input |
| 163 | + |
| 164 | +| Parameter | Type | Required | Description | |
| 165 | +| --------- | ---- | -------- | ----------- | |
| 166 | + |
| 167 | +#### Output |
| 168 | + |
| 169 | +| Parameter | Type | Description | |
| 170 | +| --------- | ---- | ----------- | |
| 171 | +| `hooks` | array | Array of hook objects | |
| 172 | + |
| 173 | +### `grain_delete_hook` |
| 174 | + |
| 175 | +Delete a webhook by ID |
| 176 | + |
| 177 | +#### Input |
| 178 | + |
| 179 | +| Parameter | Type | Required | Description | |
| 180 | +| --------- | ---- | -------- | ----------- | |
| 181 | +| `hookId` | string | Yes | The hook UUID to delete | |
| 182 | + |
| 183 | +#### Output |
| 184 | + |
| 185 | +| Parameter | Type | Description | |
| 186 | +| --------- | ---- | ----------- | |
| 187 | +| `success` | boolean | True when webhook was successfully deleted | |
| 188 | + |
| 189 | + |
| 190 | + |
| 191 | +## Notes |
| 192 | + |
| 193 | +- Category: `tools` |
| 194 | +- Type: `grain` |
0 commit comments