<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/agentic-workflow-example-importing-crm-contacts-with-next-js-and-openai-o1-8ihoovep3" -->

---
title: Agentic workflow example: importing CRM contacts with...
description: A demo Next.js CRM shows how to build an agentic contact-importer using OpenAI's o1-preview reasoning model combined with Inngest's durable, retriable workflow...
canonical: https://daily.dev/posts/agentic-workflow-example-importing-crm-contacts-with-next-js-and-openai-o1-8ihoovep3
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Agentic workflow example: importing CRM contacts with Next.js and OpenAI o1 | daily.dev
og:description: A demo Next.js CRM shows how to build an agentic contact-importer using OpenAI's o1-preview reasoning model combined with Inngest's durable, retriable workflow...
og:url: https://daily.dev/posts/agentic-workflow-example-importing-crm-contacts-with-next-js-and-openai-o1-8ihoovep3
og:image: https://api.daily.dev/og/posts/8IHooVeP3.png
og:image:alt: Agentic workflow example: importing CRM contacts with Next.js and OpenAI o1
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Agentic workflow example: importing CRM contacts with Next.js and OpenAI o1

**[Inngest Blog](https://daily.dev/sources/inngest)** · 8 min read · 0 upvotes · 0 comments

## Summary

A demo Next.js CRM shows how to build an agentic contact-importer using OpenAI's o1-preview reasoning model combined with Inngest's durable, retriable workflow functions. Instead of hand-coded column-matching UI, o1-preview is given a high-level goal and a set of predefined actions (convert, enrich, save) plus the ability to generate custom OpenAI calls, then produces a JSON plan executed via Inngest's Workflow Kit. The piece covers prompt design, throttling for o1-preview's rate limits, a comparison of o1-preview vs o1-mini reliability for structured JSON output, and ideas for further improvements like batching and learning from past runs. Full source code is available on GitHub.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.inngest.com/blog/agentic-workflow-example>

## Questions this post answers

### Why did o1-mini fail to produce reliable JSON output for agentic workflow steps compared to o1-preview?

During development of an agentic CRM import workflow, o1-mini struggled to output a deterministic and simple JSON structure for model call actions, despite being faster and cheaper. Switching to o1-preview solved the reliability issue, making it the better choice for production even though o1-mini remains preferable for faster, cheaper iteration during development.

_Developers weighing o1-preview against o1-mini for structured output can compare real trade-offs on daily.dev._

### How do you handle OpenAI o1-preview API rate limits in a long-running background job?

Wrap the o1-preview call in an Inngest Function with throttling configured, for example limiting to 5000 calls per minute, so the workflow respects o1-preview's API rate limits while running without duration limitations in the background. This pattern uses Inngest's throttle option alongside step.run to keep long reasoning-model calls reliable on platforms like Vercel Edge Functions.

_Engineers building durable AI workflows can track patterns like this for OpenAI rate limiting on daily.dev._

## Similar posts on daily.dev

- [How to build your first end-to-end AI workflow in n8n](https://daily.dev/posts/how-to-build-your-first-end-to-end-ai-workflow-in-n8n-lpowryi0s) · The New Stack · 1 upvotes · 0 comments
- [Build Complex Workflows with n8n & Master AI Integration](https://daily.dev/posts/build-complex-workflows-with-n8n-master-ai-integration-xcoydqf5a) · freeCodeCamp · 5 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#inngest](https://daily.dev/tags/inngest), [#nextjs](https://daily.dev/tags/nextjs)

[View this post on daily.dev](https://daily.dev/posts/agentic-workflow-example-importing-crm-contacts-with-next-js-and-openai-o1-8ihoovep3)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Agentic workflow example: importing CRM contacts with Next.js and OpenAI o1","url":"https://daily.dev/posts/agentic-workflow-example-importing-crm-contacts-with-next-js-and-openai-o1-8ihoovep3","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/agentic-workflow-example-importing-crm-contacts-with-next-js-and-openai-o1-8ihoovep3"},"datePublished":"2026-09-13T19:57:10.699Z","dateModified":"2026-10-15T02:22:43.403Z","description":"A demo Next.js CRM shows how to build an agentic contact-importer using OpenAI's o1-preview reasoning model combined with Inngest's durable, retriable workflow...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4bd39064ed1573c8f5f3fc1ab96b4155?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4bd39064ed1573c8f5f3fc1ab96b4155?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Inngest Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Inngest Blog","logo":"https://media.daily.dev/image/upload/s--ieZKUa5y--/c_limit,w_256/f_auto,q_auto/v1789329423/logos/inngest?_a=BAMAMicg0","url":"https://daily.dev/sources/inngest"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/agentic-workflow-example-importing-crm-contacts-with-next-js-and-openai-o1-8ihoovep3","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,inngest,nextjs","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Inngest Blog","item":"https://daily.dev/sources/inngest"},{"@type":"ListItem","position":3,"name":"Agentic workflow example: importing CRM contacts with Next.js and OpenAI o1"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/agentic-workflow-example-importing-crm-contacts-with-next-js-and-openai-o1-8ihoovep3#faq","mainEntity":[{"@type":"Question","name":"Why did o1-mini fail to produce reliable JSON output for agentic workflow steps compared to o1-preview?","acceptedAnswer":{"@type":"Answer","text":"During development of an agentic CRM import workflow, o1-mini struggled to output a deterministic and simple JSON structure for model call actions, despite being faster and cheaper. Switching to o1-preview solved the reliability issue, making it the better choice for production even though o1-mini remains preferable for faster, cheaper iteration during development. Developers weighing o1-preview against o1-mini for structured output can compare real trade-offs on daily.dev."}},{"@type":"Question","name":"How do you handle OpenAI o1-preview API rate limits in a long-running background job?","acceptedAnswer":{"@type":"Answer","text":"Wrap the o1-preview call in an Inngest Function with throttling configured, for example limiting to 5000 calls per minute, so the workflow respects o1-preview's API rate limits while running without duration limitations in the background. This pattern uses Inngest's throttle option alongside step.run to keep long reasoning-model calls reliable on platforms like Vercel Edge Functions. Engineers building durable AI workflows can track patterns like this for OpenAI rate limiting on daily.dev."}}]}
```

