Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI agents Example page #789

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
75 changes: 75 additions & 0 deletions pages/docs/examples/ai-agents.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
import { ResourceGrid, Resource } from 'src/shared/Docs/Resources';
import { Example } from 'src/shared/Docs/Examples';

import { RobotIcon } from "@heroicons/react/24/outline";

export const description = "Learn how to use Inngest with AI agents for automated workflows."

# AI Agents

AI agents are software entities that perform tasks autonomously or semi-autonomously based on predefined rules or machine learning models. These agents can be used in various scenarios, such as customer support, data analysis, and process automation, to enhance efficiency and productivity.

With Inngest, you can orchestrate and manage AI agents to create robust workflows that leverage AI capabilities seamlessly.

## Code examples
Here are apps that use Inngest to power AI agent workflows.

<Example example={{
title: "Integrate AI agents with Inngest",
technology: "Next.js, OpenAI",
description: "AI-powered task automation in Next.js using OpenAI and Inngest. Enhance productivity with automated workflows.",
pattern: 1,
demo: "https://www.loom.com/share/c43aa34205854096bcec0a96e7ba5634?sid=839b1adc-ad39-4540-9995-88967f2b6da9",
github: "https://github.com/joelhooks/inngest-partykit-nextjs-openai",
image: "/assets/docs/examples/ai-agents/vercel-openai-inngest-partykit-demo.png",
author: "Joel Hooks",
authorSocial: "https://twitter.com/jhooks"
}}/>

## More context
Check the resources below to learn more about working with AI agents using Inngest.

<ResourceGrid cols={2}>

<Resource resource={{
href: "/blog/ai-in-production-managing-capacity-with-flow-control",
name: 'Blog: "AI in production: Managing capacity with flow control"',
icon: RobotIcon,
description: "Learn how to manage AI capacity in production using Inngest's flow control techniques, including throttling, concurrency, debouncing, and prioritization, to optimize performance and cost-efficiency.",
pattern: 1,
}}/>

<Resource resource={{
href: "https://www.youtube.com/watch?v=EoFI_Bmzb4g",
name: 'Talk: "Automate All of Your Customer Interactions with AI in Next.js"',
icon: RobotIcon,
description: "Joel Hooks discusses managing long-running processes like generative AI to automate customer interactions effectively.",
pattern: 1,
}}/>

<Resource resource={{
href: "/blog/semi-autonomous-ai-agents",
name: 'Blog: "Semi-Autonomous AI Agents and Collaborative Multiplayer Asynchronous Workflows"',
icon: RobotIcon,
description: "Build an AI agent that reads from Linear issues, returns relevant issues based on queries, and allows actions on those issues.",
pattern: 1,
}}/>

<Resource resource={{
href: "https://www.youtube.com/watch?v=PCq6DozV-mY",
name: 'Video: "Chaining Prompts The Easy Way - Using Inngest Serverless Jobs with OpenAI"',
icon: RobotIcon,
description: "Doug Silkstone demonstrates how to chain together prompts and get content in next to no time at all.",
pattern: 1,
}}/>

</ResourceGrid>

## Related concepts

- [Concurrency](/docs/guides/concurrency)
- [Debouncing](/docs/guides/debounce)
- [Prioritization](/docs/guides/priority)
- [Rate limiting](/docs/guides/rate-limiting)
- [Steps](/docs/reference/functions/step-run)
- [Throttling](/docs/guides/throttling)
8 changes: 8 additions & 0 deletions pages/docs/examples/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ Explore the features built with Inngest:

<ResourceGrid cols={2}>

<Resource resource={{
href: "/docs/examples/ai-agents",
name: "AI Agents",
icon: EnvelopeIcon,
description: "Use Inngest to build AI agents.",
pattern: 1,
}}/>

<Resource resource={{
href: "/docs/examples/email-sequence",
name: "Email Sequence",
Expand Down
2 changes: 1 addition & 1 deletion pages/docs/examples/track-failures-in-datadog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This page provides an example of tracking all function failures using [Datadog's

## Quick Snippet

Here is a basic function that uses the internal [`"inngest/function.failed"`](/docs/reference/system-events/inngest-function-failed) event. This event is triggered whenever any single function fails in your Inngest [environment](/docs/platform/environments).
Here is a basic function that uses the internal [`"inngest/function.failed"`](/docs/reference/system-events/inngest-function-failed) event. This event is triggered whenever any single function fails in your [Inngest environment](/docs/platform/environments).

```ts
import { client, v1 } from "@datadog/datadog-api-client";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `inngest/function.failed` {{ className: "not-prose" }}

The `inngest/function.failed` event is sent whenever any single function fails in your Inngest [environment]((/docs/platform/environments)).
The `inngest/function.failed` event is sent whenever any single function fails in your [Inngest environment](/docs/platform/environments).

This event can be used to track all function failures in a single place, enabling you to send metrics, alerts, or events to [external systems like Datadog or Sentry](/docs/examples/track-failures-in-datadog) for all of your Inngest functions.

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions shared/Docs/navigationStructure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,10 @@ const sectionExamples: NavGroup[] = [
defaultOpen: true,
links: [
{ title: "All examples", href: `/docs/examples/` },
{
title: "AI agents",
href: `/docs/examples/ai-agents`,
},
{
title: "Email Sequence",
href: `/docs/examples/email-sequence`,
Expand Down
Loading