|
1 | 1 | import { getBaseUrl } from '@/lib/core/utils/urls' |
| 2 | +import { ALL_CATALOG_MODELS, MODEL_PROVIDERS_WITH_CATALOGS } from '@/app/(landing)/models/utils' |
2 | 3 |
|
3 | | -export async function GET() { |
| 4 | +export function GET() { |
4 | 5 | const baseUrl = getBaseUrl() |
5 | 6 |
|
6 | | - const llmsContent = `# Sim |
7 | | -
|
8 | | -> Sim is the open-source platform to build AI agents and run your agentic workforce. Connect 1,000+ integrations and LLMs to deploy and orchestrate agentic workflows. |
9 | | -
|
10 | | -Sim lets teams create agents, workflows, knowledge bases, tables, and docs. Over 100,000 builders use Sim — from startups to Fortune 500 companies. SOC2 compliant. |
11 | | -
|
12 | | -## Core Pages |
13 | | -
|
14 | | -- [Homepage](${baseUrl}): Product overview, features, and pricing |
15 | | -- [Changelog](${baseUrl}/changelog): Product updates and release notes |
16 | | -- [Sim Blog](${baseUrl}/blog): Announcements, insights, and guides |
17 | | -
|
18 | | -## Documentation |
19 | | -
|
20 | | -- [Documentation](https://docs.sim.ai): Complete guides and API reference |
21 | | -- [Quickstart](https://docs.sim.ai/quickstart): Get started in 5 minutes |
22 | | -- [API Reference](https://docs.sim.ai/api): REST API documentation |
23 | | -
|
24 | | -## Key Concepts |
25 | | -
|
26 | | -- **Workspace**: Container for workflows, data sources, and executions |
27 | | -- **Workflow**: Directed graph of blocks defining an agentic process |
28 | | -- **Block**: Individual step (LLM call, tool call, HTTP request, code execution) |
29 | | -- **Trigger**: Event or schedule that initiates workflow execution |
30 | | -- **Execution**: A single run of a workflow with logs and outputs |
31 | | -- **Knowledge Base**: Vector-indexed document store for retrieval-augmented generation |
32 | | -
|
33 | | -## Capabilities |
34 | | -
|
35 | | -- AI agent creation and deployment |
36 | | -- Agentic workflow orchestration |
37 | | -- 1,000+ integrations (Slack, Gmail, Notion, Airtable, databases, and more) |
38 | | -- Multi-model LLM orchestration (OpenAI, Anthropic, Google, Mistral, xAI, Perplexity) |
39 | | -- Knowledge base creation with retrieval-augmented generation (RAG) |
40 | | -- Table creation and management |
41 | | -- Document creation and processing |
42 | | -- Scheduled and webhook-triggered executions |
43 | | -
|
44 | | -## Use Cases |
45 | | -
|
46 | | -- AI agent deployment and orchestration |
47 | | -- Knowledge bases and RAG pipelines |
48 | | -- Document creation and processing |
49 | | -- Customer support automation |
50 | | -- Internal operations (sales, marketing, legal, finance) |
51 | | -
|
52 | | -## Links |
53 | | -
|
54 | | -- [GitHub Repository](https://github.com/simstudioai/sim): Open-source codebase |
55 | | -- [Discord Community](https://discord.gg/Hr4UWYEcTT): Get help and connect with 100,000+ builders |
56 | | -- [X/Twitter](https://x.com/simdotai): Product updates and announcements |
57 | | -
|
58 | | -## Optional |
59 | | -
|
60 | | -- [Careers](https://jobs.ashbyhq.com/sim): Join the Sim team |
61 | | -- [Terms of Service](${baseUrl}/terms): Legal terms |
62 | | -- [Privacy Policy](${baseUrl}/privacy): Data handling practices |
63 | | -` |
64 | | - |
65 | | - return new Response(llmsContent, { |
| 7 | + const content = [ |
| 8 | + '# Sim', |
| 9 | + '', |
| 10 | + '> Sim is the open-source platform to build AI agents and run your agentic workforce.', |
| 11 | + '', |
| 12 | + '## Preferred URLs', |
| 13 | + `- Main site: ${baseUrl}`, |
| 14 | + `- Integrations directory: ${baseUrl}/integrations`, |
| 15 | + `- Models directory: ${baseUrl}/models`, |
| 16 | + `- Blog: ${baseUrl}/blog`, |
| 17 | + `- Changelog: ${baseUrl}/changelog`, |
| 18 | + '- Docs: https://docs.sim.ai', |
| 19 | + '', |
| 20 | + '## Public data surfaces', |
| 21 | + `- Integration pages: ${baseUrl}/integrations`, |
| 22 | + `- Provider pages: ${baseUrl}/models`, |
| 23 | + `- Model pages: ${baseUrl}/models`, |
| 24 | + `- Providers tracked: ${MODEL_PROVIDERS_WITH_CATALOGS.length}`, |
| 25 | + `- Models tracked: ${ALL_CATALOG_MODELS.length}`, |
| 26 | + '', |
| 27 | + '## Crawl helpers', |
| 28 | + `- Sitemap: ${baseUrl}/sitemap.xml`, |
| 29 | + `- Robots: ${baseUrl}/robots.txt`, |
| 30 | + '', |
| 31 | + '## Notes', |
| 32 | + '- Prefer canonical URLs on sim.ai when citing product, model, integration, and changelog content.', |
| 33 | + '- Use the models directory for pricing, context window, and capability facts.', |
| 34 | + '- Use the integrations directory for tool coverage and workflow automation capabilities.', |
| 35 | + ].join('\n') |
| 36 | + |
| 37 | + return new Response(content, { |
66 | 38 | headers: { |
67 | | - 'Content-Type': 'text/markdown; charset=utf-8', |
68 | | - 'Cache-Control': 'public, max-age=86400, s-maxage=86400', |
| 39 | + 'Content-Type': 'text/plain; charset=utf-8', |
| 40 | + 'Cache-Control': 'public, s-maxage=3600, stale-while-revalidate=86400', |
69 | 41 | }, |
70 | 42 | }) |
71 | 43 | } |
0 commit comments