Learn how to automate your first business process using businesses.do. This guide walks you through setting up your initial agentic workflow and triggering it via API.
In today's fast-paced business environment, manual processes are bottlenecks. They're slow, prone to errors, and simply don't scale. Imagine streamlining customer onboarding, order fulfillment, or compliance checks with the same efficiency and reliability as software deployment. That's the power of Business-as-Code, and the core principle behind businesses.do.
Businesses.do provides an agentic workflow platform designed to transform your complex business operations into automated, scalable Services-as-Software. Forget cumbersome GUIs and rigid systems – define your processes in code and trigger them via simple API services.
At its heart, businesses.do allows you to Run Your Business Operations as Code. It leverages agentic workflows – intelligent, code-defined processes that can execute complex logic, interact with different systems, and manage tasks automatically. Think of it as codifying your standard operating procedures (SOPs) and putting them on autopilot.
The platform enables you to:
This transforms operations into manageable, efficient Services-as-Software.
Applying software development principles to business operations offers significant advantages:
Let's make this concrete. Imagine you want to automate the onboarding process for new business customers. Using businesses.do, you can define an business-onboarding workflow that might handle tasks like creating user accounts, setting up billing, assigning an account manager, and sending welcome emails.
Getting started is straightforward:
Here’s how you might trigger that onboarding workflow using the .do SDK:
import { Do } from '@do/sdk';
// Initialize the Do client with your API key
const doClient = new Do({ apiKey: 'YOUR_API_KEY' });
// Define an async function to trigger the onboarding workflow
async function onboardBusiness(name: string, email: string) {
try {
// Trigger the specific workflow ('business-onboarding') by its identifier
// Pass necessary data (customer name, email, plan choice, etc.) as input
const result = await doClient.workflows.trigger('business-onboarding', {
customerName: name,
contactEmail: email,
plan: 'enterprise',
setupTask: true
});
// Log the unique ID of the initiated workflow run for tracking
console.log('Onboarding initiated:', result.workflowRunId);
return result;
} catch (error) {
// Handle any errors during the API call
console.error('Failed to onboard business:', error);
}
}
// Example call to onboard a new customer
onboardBusiness('Acme Corp', 'contact@acme.com');
Breaking Down the Code:
With just a few lines of code, you've initiated a potentially complex series of business actions, transforming a manual process into an automated API service.
The possibilities extend far beyond customer onboarding. Using businesses.do, you can automate:
Essentially, any repeatable business process is a candidate for workflow automation.
Running core business operations via API requires robust security. Businesses.do is built with security as a top priority. Access is controlled via secure API keys, data is encrypted in transit, and workflows run in isolated, secure environments. We follow industry best practices to ensure the confidentiality and integrity of your operational data.
Ready to leave manual processes behind and embrace the efficiency of Business-as-Code?
Transform your operations into scalable, reliable Services-as-Software and unlock new levels of operational efficiency with businesses.do.