You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Claude Stream Task**: View the Trigger.dev task code in the [src/trigger/claude-stream.ts](https://github.com/triggerdotdev/examples/tree/main/claude-thinking-chatbot/src/trigger/claude-stream.ts) file, which sets up the streaming connection with Claude.
40
+
-**Chat Component**: The main chat interface is in [app/components/claude-chat.tsx](https://github.com/triggerdotdev/examples/tree/main/claude-thinking-chatbot/app/components/claude-chat.tsx), which handles:
41
+
- Message state management
42
+
- User input handling
43
+
- Rendering of message bubbles
44
+
- Integration with Trigger.dev for streaming
45
+
-**Stream Response**: The `StreamResponse` component within the chat component handles:
46
+
- Displaying streaming text from Claude
47
+
- Showing/hiding the thinking process with an animated toggle
|[AI Agent: Generate and translate copy](/guides/ai-agents/generate-translate-copy)| Chain prompts to generate and translate content|
25
+
|[AI Agent: Route questions](/guides/ai-agents/route-question)| Route questions to different models based on complexity |
26
+
|[AI Agent: Content moderation](/guides/ai-agents/respond-and-check-content)| Parallel check content while responding to customers|
27
+
|[AI Agent: News verification](/guides/ai-agents/verify-news-article)| Orchestrate fact checking of news articles|
28
+
|[AI Agent: Translation refinement](/guides/ai-agents/translate-and-refine)| Evaluate and refine translations with feedback|
29
+
|[Prisma](/guides/frameworks/prisma)| How to setup Prisma with Trigger.dev |
30
+
|[Sequin database triggers](/guides/frameworks/sequin)| Trigger tasks from database changes using Sequin |
31
+
|[Supabase edge function hello world](/guides/frameworks/supabase-edge-functions-basic)| Trigger tasks from Supabase edge function |
32
+
|[Supabase database webhooks](/guides/frameworks/supabase-edge-functions-database-webhooks)| Trigger tasks using Supabase database webhooks |
33
+
|[Using webhooks in Next.js](/guides/frameworks/nextjs-webhooks)| Trigger tasks from a webhook in Next.js |
34
+
|[Using webhooks in Remix](/guides/frameworks/remix-webhooks)| Trigger tasks from a webhook in Remix |
35
+
|[Stripe webhooks](/guides/examples/stripe-webhook)| Trigger tasks from incoming Stripe webhook events |
37
36
38
37
## Example projects
39
38
40
39
Example projects are full projects with example repos you can fork and use. These are a great way of learning how to encorporate Trigger.dev into your project.
41
40
42
-
| Example project | Description | Framework | GitHub |
41
+
| Example project | Description | Framework | GitHub |
|[Realtime Fal.ai image generation](/guides/example-projects/realtime-fal-ai)| Generate an image from a prompt using Fal.ai and show the progress of the task on the frontend using Realtime. | Next.js |[View repo](https://github.com/triggerdotdev/examples/tree/main/realtime-fal-ai-image-generation)|
45
-
|[Batch LLM Evaluator](/guides/example-projects/batch-llm-evaluator)| Evaluate multiple LLM models and stream the results to the frontend. | Next.js |[View repo](https://github.com/triggerdotdev/examples/tree/main/batch-llm-evaluator)|
46
-
|[Realtime CSV Importer](/guides/example-projects/realtime-csv-importer)| Upload a CSV file and see the progress of the task streamed to the frontend. | Next.js |[View repo](https://github.com/triggerdotdev/examples/tree/main/realtime-csv-importer)|
47
-
|[Vercel AI SDK image generator](/guides/example-projects/vercel-ai-sdk-image-generator)| Use the Vercel AI SDK to generate images from a prompt. | Next.js |[View repo](https://github.com/triggerdotdev/examples/tree/main/vercel-ai-sdk-image-generator)|
43
+
|[Batch LLM Evaluator](/guides/example-projects/batch-llm-evaluator)| Evaluate multiple LLM models and stream the results to the frontend. | Next.js |[View the repo](https://github.com/triggerdotdev/examples/tree/main/batch-llm-evaluator)|
44
+
|[Claude thinking chatbot](/guides/example-projects/claude-thinking-chatbot)| Use Vercel's AI SDK and Anthropic's Claude 3.7 model to create a thinking chatbot. | Next.js |[View the repo](https://github.com/triggerdotdev/examples/tree/main/claude-thinking-chatbot)|
45
+
|[Realtime Fal.ai image generation](/guides/example-projects/realtime-fal-ai)| Generate an image from a prompt using Fal.ai and show the progress of the task on the frontend using Realtime. | Next.js |[View the repo](https://github.com/triggerdotdev/examples/tree/main/realtime-fal-ai-image-generation)|
46
+
|[Realtime CSV Importer](/guides/example-projects/realtime-csv-importer)| Upload a CSV file and see the progress of the task streamed to the frontend. | Next.js |[View the repo](https://github.com/triggerdotdev/examples/tree/main/realtime-csv-importer)|
47
+
|[Vercel AI SDK image generator](/guides/example-projects/vercel-ai-sdk-image-generator)| Use the Vercel AI SDK to generate images from a prompt. | Next.js |[View the repo](https://github.com/triggerdotdev/examples/tree/main/vercel-ai-sdk-image-generator)|
0 commit comments