Skip to content

Commit e52fe77

Browse files
committed
feat(flint): add Flint integration with agent task tools, block, and docs
1 parent 0640c0b commit e52fe77

16 files changed

Lines changed: 862 additions & 1 deletion

File tree

apps/docs/components/icons.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6827,6 +6827,22 @@ export function JiraServiceManagementIcon(props: SVGProps<SVGSVGElement>) {
68276827
)
68286828
}
68296829

6830+
export function FlintIcon(props: SVGProps<SVGSVGElement>) {
6831+
return (
6832+
<svg {...props} viewBox='374 415 519 617' fill='none' xmlns='http://www.w3.org/2000/svg'>
6833+
<path d='M374 1004.46L679.798 1031.21V833.875L374 847.451V1004.46Z' fill='currentColor' />
6834+
<path
6835+
d='M374 567.086V676.084L803.573 606.042V764.423L892.518 750.061V415L374 567.086Z'
6836+
fill='currentColor'
6837+
/>
6838+
<path
6839+
d='M374 831.711L695.54 817.349V894.67L787.634 891.719V624.536L374 692.217V831.711Z'
6840+
fill='currentColor'
6841+
/>
6842+
</svg>
6843+
)
6844+
}
6845+
68306846
export function FirefliesIcon(props: SVGProps<SVGSVGElement>) {
68316847
const id = useId()
68326848
const g1 = `fireflies_g1_${id}`

apps/docs/components/ui/icon-mapping.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ import {
7272
FindymailIcon,
7373
FirecrawlIcon,
7474
FirefliesIcon,
75+
FlintIcon,
7576
GammaIcon,
7677
GithubIcon,
7778
GitLabIcon,
@@ -315,6 +316,7 @@ export const blockTypeToIconMap: Record<string, IconComponent> = {
315316
firecrawl: FirecrawlIcon,
316317
fireflies: FirefliesIcon,
317318
fireflies_v2: FirefliesIcon,
319+
flint: FlintIcon,
318320
gamma: GammaIcon,
319321
github: GithubIcon,
320322
github_v2: GithubIcon,
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
---
2+
title: Flint
3+
description: Run background agent tasks on your Flint sites
4+
---
5+
6+
import { BlockInfoCard } from "@/components/ui/block-info-card"
7+
8+
<BlockInfoCard
9+
type="flint"
10+
color="#F6F54F"
11+
/>
12+
13+
## Usage Instructions
14+
15+
Create background agent tasks that modify your Flint sites from natural-language prompts, generate batches of pages from a template, and check task status and results.
16+
17+
18+
19+
## Actions
20+
21+
### `flint_create_task`
22+
23+
Start a background Flint agent task that modifies a site from a natural-language prompt.
24+
25+
#### Input
26+
27+
| Parameter | Type | Required | Description |
28+
| --------- | ---- | -------- | ----------- |
29+
| `siteId` | string | Yes | ID of the Flint site the agent should modify |
30+
| `prompt` | string | Yes | Natural-language instructions for the agent \(e.g., "Add a new About page with a team section"\) |
31+
| `callbackUrl` | string | No | HTTPS webhook URL that Flint will POST to when the task completes or fails |
32+
| `publish` | boolean | No | Whether to automatically publish the changes when the task completes |
33+
34+
#### Output
35+
36+
| Parameter | Type | Description |
37+
| --------- | ---- | ----------- |
38+
| `taskId` | string | Identifier of the created background task |
39+
| `status` | string | Initial task status \(running\) |
40+
| `createdAt` | string | ISO 8601 timestamp when the task was created |
41+
42+
### `flint_generate_pages`
43+
44+
Start a background Flint agent task that generates up to 10 pages from a template page.
45+
46+
#### Input
47+
48+
| Parameter | Type | Required | Description |
49+
| --------- | ---- | -------- | ----------- |
50+
| `siteId` | string | Yes | ID of the Flint site the agent should modify |
51+
| `templatePageSlug` | string | Yes | Slug of the existing template page to generate from \(e.g., /case-studies/template\) |
52+
| `items` | json | Yes | JSON array of 1-10 pages to generate. Each item requires targetPageSlug \(slug for the new page\) and context \(content details the agent should use\). |
53+
| `callbackUrl` | string | No | HTTPS webhook URL that Flint will POST to when the task completes or fails |
54+
| `publish` | boolean | No | Whether to automatically publish the generated pages when the task completes |
55+
56+
#### Output
57+
58+
| Parameter | Type | Description |
59+
| --------- | ---- | ----------- |
60+
| `taskId` | string | Identifier of the created background task |
61+
| `status` | string | Initial task status \(running\) |
62+
| `createdAt` | string | ISO 8601 timestamp when the task was created |
63+
64+
### `flint_get_task`
65+
66+
Get the status and results of a background Flint agent task.
67+
68+
#### Input
69+
70+
| Parameter | Type | Required | Description |
71+
| --------- | ---- | -------- | ----------- |
72+
| `taskId` | string | Yes | Identifier of the task returned when it was created \(e.g., bg-...\) |
73+
74+
#### Output
75+
76+
| Parameter | Type | Description |
77+
| --------- | ---- | ----------- |
78+
| `taskId` | string | Identifier of the task |
79+
| `status` | string | Task status: running, completed, or failed |
80+
| `pagesCreated` | array | Pages created by the task \(populated when completed\) |
81+
| `pagesModified` | array | Pages modified by the task \(populated when completed\) |
82+
| `pagesDeleted` | array | Pages deleted by the task \(populated when completed\) |
83+
| `errorMessage` | string | Error message when the task failed |
84+
85+

apps/docs/content/docs/en/integrations/meta.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
"findymail",
7171
"firecrawl",
7272
"fireflies",
73+
"flint",
7374
"gamma",
7475
"github",
7576
"gitlab",

0 commit comments

Comments
 (0)