Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
d84cba6
chore(self-hosting): add health check endpoint (#3562)
PlaneInABottle Mar 13, 2026
9229002
fix(execution): queued execution finalization and async correlation (…
PlaneInABottle Mar 13, 2026
7e740e6
improvement(copilot): state persistence, subflow recreation, dynamic …
icecrasher321 Mar 14, 2026
5b9f0d7
feat(mothership): mothership (#3411)
Sg312 Mar 14, 2026
d06aa1d
fix(connectors): align connector scopes with oauth config and fix kb …
waleedlatif1 Mar 14, 2026
b2d146c
improvement(mothership): message queueing for home chat (#3576)
waleedlatif1 Mar 14, 2026
8f15be2
fix(ashby): add secretToken to webhook creation and fix trigger UX (#…
waleedlatif1 Mar 14, 2026
c738226
fix(file): bun issues with new file creation (#3582)
icecrasher321 Mar 14, 2026
9ae656c
fix(files): default file name (#3585)
icecrasher321 Mar 14, 2026
e6b2b73
fix(execution): report cancellation durability truthfully (#3550)
PlaneInABottle Mar 14, 2026
e13f52f
fix(tools): support stringified HTTP request tables (#3565)
PlaneInABottle Mar 14, 2026
f347e3f
fix(firecrawl) fix firecrawl scrape credit usage calculation (#3583)
TheodoreSpeaks Mar 14, 2026
a2f8ed0
fix lint
icecrasher321 Mar 14, 2026
00ff21a
fix(workflow) Fix embedded workflow logs (#3587)
TheodoreSpeaks Mar 14, 2026
5ba3118
feat(byok-migration) byok migration script (#3584)
TheodoreSpeaks Mar 14, 2026
cbc9f42
improvement(cleanup): remove unused old ui components (#3589)
waleedlatif1 Mar 14, 2026
952915a
fix(sidebar): collapsed sidebar shows single icons with hover dropdow…
waleedlatif1 Mar 14, 2026
75bdf46
improvement(promos): promo codes should be only stripe codes (#3591)
icecrasher321 Mar 14, 2026
f077751
fix(mothership): file materialization tools (#3586)
Sg312 Mar 14, 2026
8837f14
feat(home): expand template examples with 83 categorized templates (#…
waleedlatif1 Mar 15, 2026
f572949
fix(embedded): viewport options breaking autolayout (#3596)
icecrasher321 Mar 15, 2026
aad620c
fix(mothership): run workflow tools (run from block, run until block)…
Sg312 Mar 15, 2026
b7b575c
fix(ui) reduce redundant rerenders (#3593)
TheodoreSpeaks Mar 15, 2026
743742d
Show rendered md by default (#3594)
TheodoreSpeaks Mar 15, 2026
7ecd377
fix(tasks-ui): update in progress to be amber, added status to dropdo…
waleedlatif1 Mar 15, 2026
ad68dc1
improvement(grain): make trigger names in line with API since resourc…
icecrasher321 Mar 15, 2026
8906439
fix(notifications): credentials connection notifs showing up in right…
icecrasher321 Mar 15, 2026
aa1f605
fix(kb): auto-refresh documents after connector sync and remove redun…
waleedlatif1 Mar 15, 2026
38c8922
improvement: landing, sidebar, globals, buttons (#3590)
emir-karabeg Mar 15, 2026
6818c51
improvement(connectors): audit and harden all 30 knowledge base conne…
waleedlatif1 Mar 15, 2026
680c9cd
improvement(ui): align all public pages with dark landing theme and i…
waleedlatif1 Mar 16, 2026
395a61d
fix(deploy): consolidate deployment detection into single source of t…
waleedlatif1 Mar 16, 2026
b0870f4
fix(subagent, streaming) fix deploy subagent and task streamnig (#3610)
TheodoreSpeaks Mar 16, 2026
738d51a
fix(ui): render block handles underneath current block content (#3611)
waleedlatif1 Mar 16, 2026
6df6512
feat(tables): upload csvs (#3607)
icecrasher321 Mar 16, 2026
36e502a
fix(workflow) fix mothership double-running workflows (#3614)
TheodoreSpeaks Mar 17, 2026
c090c82
fix(mothership): add promptForToolApproval to prevent tool hang in mo…
TheodoreSpeaks Mar 17, 2026
c867801
fix(ui) Live update resources in resource main view (#3617)
TheodoreSpeaks Mar 17, 2026
974cc66
fix(ui) add embedded workflow notifications, switch tab on workflow r…
TheodoreSpeaks Mar 17, 2026
2a7b07e
Fix row_count context (#3622)
TheodoreSpeaks Mar 17, 2026
e804ea3
fix(embedded): block layout should not be dependent on viewport (#3621)
icecrasher321 Mar 17, 2026
b930ee3
improvement(tables): tables multi-select, keyboard shortcuts, and doc…
waleedlatif1 Mar 17, 2026
b3d9e54
fix(ui) fix task switch causing duplicate text renderings (#3624)
TheodoreSpeaks Mar 17, 2026
8fa4f3f
fix(mothership): thinking and subagent text (#3613)
Sg312 Mar 17, 2026
3e3c160
fix(embedded): autolayout viewport calculation for resource view (#3629)
waleedlatif1 Mar 17, 2026
1873f2d
improvement(mothership): tool display titles, html sanitization, and …
waleedlatif1 Mar 17, 2026
101fcec
fix(mothership): stream management (#3623)
Sg312 Mar 17, 2026
70d8df5
fix(ui): add back file split view (#3632)
TheodoreSpeaks Mar 17, 2026
3bd2750
fix(ui): ensure new resource tab button is always visible (#3633)
TheodoreSpeaks Mar 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(home): expand template examples with 83 categorized templates (#…
…3592)

* feat(home): expand template examples with 83 categorized templates

- Extract template data into consts.ts with rich categorization (category, modules, tags)
- Expand from 6 to 83 templates across 7 categories: sales, support, engineering, marketing, productivity, operations
- Add show more/collapse UI with category groupings for non-featured templates
- Add connector-powered knowledge search templates (Gmail, Slack, Notion, Jira, Linear, Salesforce, etc.)
- Add platform-native templates (document summarizer, bulk data classifier, knowledge assistant, etc.)
- Optimize prompts for mothership execution with explicit resource creation and integration names
- Add tags field for future cross-cutting filtering by persona, pattern, and domain
- React 19.2.1 → 19.2.4 upgrade

* fix(home): remove WhatsApp customer notifications template

* fix(home): add aria-expanded to toggle button, skip popular in expanded view

* fix(home): fix category display order, add aria-label to template cards
  • Loading branch information
waleedlatif1 authored Mar 15, 2026
commit 8837f14194ff70b716343b274062ff6885f2c9c5
4 changes: 2 additions & 2 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"next": "16.1.6",
"next-themes": "^0.4.6",
"postgres": "^3.4.5",
"react": "19.2.1",
"react-dom": "19.2.1",
"react": "19.2.4",
"react-dom": "19.2.4",
"shiki": "4.0.0",
"tailwind-merge": "^3.0.2"
},
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export type { Category, ModuleTag, Tag, TemplatePrompt } from './consts'
export { CATEGORY_META, MODULE_META, TEMPLATES } from './consts'
export { TemplatePrompts } from './template-prompts'
Original file line number Diff line number Diff line change
@@ -1,96 +1,152 @@
import type { ComponentType, SVGProps } from 'react'
'use client'

import { useState } from 'react'
import Image from 'next/image'
import { Search, Table } from '@/components/emcn/icons'
import { GmailIcon, GoogleCalendarIcon } from '@/components/icons'
import { MarkdownIcon } from '@/components/icons/document-icons'

interface TemplatePrompt {
icon: ComponentType<SVGProps<SVGSVGElement>>
title: string
prompt: string
image: string
import { ChevronDown } from '@/components/emcn/icons'
import type { Category, ModuleTag } from './consts'
import { CATEGORY_META, MODULE_META, TEMPLATES } from './consts'

const FEATURED_TEMPLATES = TEMPLATES.filter((t) => t.featured)
const EXTRA_TEMPLATES = TEMPLATES.filter((t) => !t.featured)

/** Group non-featured templates by category, preserving category order. */
function getGroupedExtras() {
const groups: { category: Category; label: string; templates: typeof TEMPLATES }[] = []
const byCategory = new Map<Category, typeof TEMPLATES>()

for (const t of EXTRA_TEMPLATES) {
const existing = byCategory.get(t.category)
if (existing) {
existing.push(t)
} else {
const arr = [t]
byCategory.set(t.category, arr)
}
}

for (const [key, meta] of Object.entries(CATEGORY_META)) {
const cat = key as Category
if (cat === 'popular') continue
const items = byCategory.get(cat)
if (items?.length) {
groups.push({ category: cat, label: meta.label, templates: items })
}
}

return groups
}

const TEMPLATES: TemplatePrompt[] = [
{
icon: Table,
title: 'Self-populating CRM',
prompt:
'Create a self-healing CRM table that keeps track of all my customers by integrating with my existing data sources. Schedule a recurring job every morning to automatically pull updates from all relevant data sources and keep my CRM up to date.',
image: '/templates/crm-light.png',
},
{
icon: GoogleCalendarIcon,
title: 'Meeting prep agent',
prompt:
'Create an agent that checks my calendar each morning, pulls context on every attendee and topic, and prepares a brief for each meeting so I walk in fully prepared.',
image: '/templates/meeting-prep-dark.png',
},
{
icon: MarkdownIcon,
title: 'Resolve todo list',
prompt:
'Create a file of all my todos then go one by one and check off every time a todo is done. Look at my calendar and see what I have to do.',
image: '/templates/todo-list-light.png',
},
{
icon: Search,
title: 'Research assistant',
prompt:
'Build an agent that takes a topic, searches the web for the latest information, summarizes key findings, and compiles them into a clean document I can review.',
image: '/templates/research-assistant-dark.png',
},
{
icon: GmailIcon,
title: 'Auto-reply agent',
prompt: 'Create a Gmail agent that drafts responses to relevant emails automatically.',
image: '/templates/gmail-agent-dark.png',
},
{
icon: Table,
title: 'Expense tracker',
prompt:
'Create a table that tracks all my expenses by pulling transactions from my connected accounts. Categorize each expense automatically and generate a weekly summary report.',
image: '/templates/expense-tracker-light.png',
},
]
const GROUPED_EXTRAS = getGroupedExtras()

function ModulePills({ modules }: { modules: ModuleTag[] }) {
return (
<div className='flex flex-wrap gap-[4px]'>
{modules.map((mod) => (
<span
key={mod}
className='rounded-full bg-[var(--surface-3)] px-[6px] py-[1px] text-[11px] text-[var(--text-secondary)]'
>
{MODULE_META[mod].label}
</span>
))}
</div>
)
}

interface TemplatePromptsProps {
onSelect: (prompt: string) => void
}

export function TemplatePrompts({ onSelect }: TemplatePromptsProps) {
const [expanded, setExpanded] = useState(false)

return (
<div className='grid grid-cols-3 gap-[16px]'>
{TEMPLATES.map((template) => {
const Icon = template.icon
return (
<button
key={template.title}
type='button'
onClick={() => onSelect(template.prompt)}
className='group flex cursor-pointer flex-col text-left'
>
<div className='overflow-hidden rounded-[10px] border border-[var(--border-1)]'>
<div className='relative h-[120px] w-full overflow-hidden'>
<Image
src={template.image}
alt={template.title}
fill
unoptimized
className='object-cover transition-transform duration-300 group-hover:scale-105'
/>
</div>
<div className='flex items-center gap-[6px] border-[var(--border-1)] border-t bg-[var(--white)] px-[10px] py-[6px] dark:bg-[var(--surface-4)]'>
<Icon className='h-[14px] w-[14px] shrink-0 text-[var(--text-icon)]' />
<span className='font-base text-[14px] text-[var(--text-body)]'>
{template.title}
</span>
<div className='flex flex-col gap-[24px]'>
{/* Featured grid */}
<div className='grid grid-cols-3 gap-[16px]'>
{FEATURED_TEMPLATES.map((template) => (
<TemplateCard key={template.title} template={template} onSelect={onSelect} />
))}
</div>

{/* Expand / collapse */}
<button
type='button'
onClick={() => setExpanded((prev) => !prev)}
aria-expanded={expanded}
className='flex items-center justify-center gap-[6px] text-[13px] text-[var(--text-secondary)] transition-colors hover:text-[var(--text-body)]'
>
{expanded ? (
<>
Show less <ChevronDown className='h-[14px] w-[14px] rotate-180' />
</>
) : (
<>
More examples <ChevronDown className='h-[14px] w-[14px]' />
</>
)}
</button>

{/* Categorized extras */}
{expanded && (
<div className='flex flex-col gap-[32px]'>
{GROUPED_EXTRAS.map((group) => (
<div key={group.category} className='flex flex-col gap-[12px]'>
<h3 className='font-medium text-[13px] text-[var(--text-secondary)]'>
{group.label}
</h3>
<div className='grid grid-cols-3 gap-[16px]'>
{group.templates.map((template) => (
<TemplateCard key={template.title} template={template} onSelect={onSelect} />
))}
</div>
</div>
</button>
)
})}
))}
</div>
)}
</div>
)
}

interface TemplateCardProps {
template: (typeof TEMPLATES)[number]
onSelect: (prompt: string) => void
}

function TemplateCard({ template, onSelect }: TemplateCardProps) {
const Icon = template.icon

return (
<button
type='button'
onClick={() => onSelect(template.prompt)}
aria-label={`Select template: ${template.title}`}
className='group flex cursor-pointer flex-col text-left'
>
<div className='overflow-hidden rounded-[10px] border border-[var(--border-1)]'>
<div className='relative h-[120px] w-full overflow-hidden'>
{template.image ? (
<Image
src={template.image}
alt={template.title}
fill
unoptimized
className='object-cover transition-transform duration-300 group-hover:scale-105'
/>
) : (
<div className='flex h-full w-full items-center justify-center bg-[var(--surface-3)] transition-colors group-hover:bg-[var(--surface-4)]'>
<Icon className='h-[32px] w-[32px] text-[var(--text-icon)] opacity-40' />
</div>
)}
</div>
<div className='flex flex-col gap-[4px] border-[var(--border-1)] border-t bg-[var(--white)] px-[10px] py-[6px] dark:bg-[var(--surface-4)]'>
<div className='flex items-center gap-[6px]'>
<Icon className='h-[14px] w-[14px] shrink-0 text-[var(--text-icon)]' />
<span className='font-base text-[14px] text-[var(--text-body)]'>{template.title}</span>
</div>
<ModulePills modules={template.modules} />
</div>
</div>
</button>
)
}
4 changes: 2 additions & 2 deletions apps/sim/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@
"posthog-js": "1.334.1",
"posthog-node": "5.9.2",
"prismjs": "^1.30.0",
"react": "19.2.1",
"react-dom": "19.2.1",
"react": "19.2.4",
"react-dom": "19.2.4",
"react-hook-form": "^7.54.2",
"react-markdown": "^10.1.0",
"react-simple-code-editor": "^0.14.1",
Expand Down
17 changes: 9 additions & 8 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"release": "bun run scripts/create-single-release.ts"
},
"overrides": {
"react": "19.2.1",
"react-dom": "19.2.1",
"react": "19.2.4",
"react-dom": "19.2.4",
"next": "16.1.6",
"@next/env": "16.1.6",
"drizzle-orm": "^0.44.5",
Expand Down
Loading