In today's digital landscape, personalization is king. Customers expect experiences tailored to them, not generic, one-size-fits-all messages. For businesses, this presents a massive challenge: how do you treat every new user like a VIP without an army of researchers and marketers working around the clock? The answer lies in moving beyond simple automation and embracing intelligent, agentic workflows.
Generic onboarding emails with a simple Hello, {firstName} are no longer enough. True personalization means understanding who your customer is, what their company does, what their needs are, and how your product fits into their world. This level of detail has traditionally been impossible to achieve at scale.
Enter Workflows.do—a platform designed to transform complex business processes into reliable, event-driven services. By leveraging AI Agents within your workflows, you can automate the deep research, data enrichment, and personalized execution that turns a standard signup into a genuine connection.
Traditional automation tools are great for linear, predictable tasks. If a user signs up, send Email A. If they click a link, tag them with B. But what happens when the logic is more complex?
This is where rigid, if/then logic fails. You need a system that can reason, research, and adapt. You need an Agentic Workflow.
An Agentic Workflow uses AI Agents as intelligent, dynamic steps within a larger process. Instead of just executing a predefined command, an AI Agent can be tasked with a goal—like "research this company" or "summarize this person's professional background." The agent then uses the tools and data available to it to accomplish that goal.
At Workflows.do, we allow you to define these powerful, multi-step processes as simple Typescript code. This gives you the full power of a programming language combined with the intelligence of AI, all running on a reliable, event-driven architecture.
Let's break down how you can build a hyper-personalized onboarding experience using workflows.do. When a new user signs up, a single event can trigger a cascade of automated research and action.
Here’s what that looks like in code:
Let's walk through this process step-by-step:
The entire workflow is triggered by an event: onUserSignup. This could come from your application's backend, a webhook from a tool like Auth0, or a form submission. The first action is to gather more data. The workflow calls APIs like Apollo and PeopleDataLabs to enrich the basic signup information with comprehensive company and social profile data. With workflows.do, you can easily integrate any third-party API or internal service into your workflow.
This is where the magic happens. The workflow doesn't just have data; it has context. It now deploys AI Agents to perform specific research tasks:
With a rich, multi-faceted understanding of the user, the ai.personalizeEmailSequence agent gets to work. It doesn't just slot a name into a template. It synthesizes all the research—the company profile, the personal background, the GitHub activity—to craft a unique email sequence designed to resonate with that specific individual. The result is a level of personalization that feels human-driven.
Finally, the workflow summarizes the entire engagement in three sentences, saves all the collected data to your database, and posts a notification to Slack for your team. Every execution is logged and managed, with built-in features like automatic retries with exponential backoff to ensure that this critical business process runs smoothly and reliably every single time.
While this workflow is defined in Typescript, its power is accessible to everyone. Once built, it becomes a reliable service. Your sales and marketing teams no longer need to manually research every lead; the system does it for them, delivering a rich summary and kicking off personalized outreach automatically. This is the essence of 'Services-as-Software'—abstracting complex business logic into a simple, automated service.
The possibilities extend far beyond onboarding:
Stop thinking in terms of simple automation and start thinking in terms of intelligent orchestration. With workflows.do, you can transform your most complex business processes into a durable competitive advantage.
Ready to automate anything, instantly? Visit Workflows.do to learn how to deliver intelligent workflows as code.
import { AI } from 'workflows.do'
export default AI({
onUserSignup: async ({ ai, api, db, event }) => {
const { name, email, company } = event
// 1. Enrich contact details with multiple data sources
const enrichedContact = await api.apollo.search({ name, email, company })
const socialProfiles = await api.peopleDataLabs.findSocialProfiles({ name, email, company })
const githubProfile = socialProfiles.github ? await api.github.profile({ profile: socialProfiles.github }) : undefined
// 2. Using the enriched data, perform deep AI-powered research
const companyProfile = await ai.researchCompany({ company })
const personalProfile = await ai.researchPersonalBackground({ name, enrichedContact })
const githubActivity = githubProfile ? await ai.summarizeGithubActivity({ githubProfile }) : undefined
// 3. Schedule a highly personalized email sequence
const emailSequence = await ai.personalizeEmailSequence({ name, company, personalProfile, companyProfile, githubActivity })
await api.scheduleEmails({ to: email, sequence: emailSequence })
// 4. Summarize, save, and notify the team
const details = { enrichedContact, socialProfiles, githubProfile, companyProfile, personalProfile, githubActivity, emailSequence }
const summary = await ai.summarizeContent({ length: '3 sentences', details })
const { url } = await db.users.create({ name, email, company, summary, ...details })
await api.slack.postMessage({ channel: '#signups', content: { name, email, company, summary, url } })
},
})