Skip to main content

Best AI accounting software in 2026: audit trail, approvals and ERP support compared

December 2026 edition · Last updated · Next re-check: Q1 2027

The best AI accounting software depends on the workflow you need to automate: accounts receivable, accounts payable, month-end close, reconciliation, revenue recognition, an AI-native ledger or FP&A. Within each category, check four things in the vendor’s own documentation: a per-step audit trail, human approval before anything posts or pays, fixed pre-approved steps, and native support for your ERP.

Choosing AI accounting software for a finance team comes down to control questions more than feature lists. Can you see every step the software ran? Can a person approve before posting or write-back? Does it connect to the ERP you already run?

This page compares 24 AI accounting tools across seven workflow categories on eight criteria. There is no overall score and no rank. Each cell states what the vendor documents publicly, with a link to the source and the date we checked it. Rows are alphabetical within each category. For how to evaluate automation before you buy, see AI accounting workflow automation.

How to read this table

Each column answers one question from the vendor’s own public pages.

  1. Audit trail and step logs. Yes: the docs describe a log of each step or action that you can review or export. Partial: only a general activity or change history.
  2. Human approval gates. Yes: you can require a person’s approval before an entry posts, a payment goes out or a customer message is sent. Partial: approval covers only one narrow action.
  3. Execution model. Fixed steps: the vendor states its steps are set and approved in advance. Generated at runtime: the vendor states AI generates the steps as it runs. Mixed: the vendor describes both.
  4. Named ERP integrations. The ERPs the vendor names as native integrations, up to six, then "+N more".
  5. SOC 2 Type II stated. Yes: the vendor’s own trust or security page states SOC 2 Type II. This column records the statement only.
  6. Workflow coverage. Which of AR, AP, Close, Reconciliation and Rev rec the vendor documents.
  7. Delivery model. Self-serve software, Managed service (the vendor builds and runs the workflows for you), or Both, as the vendor states it.
  8. Free trial or self-serve sign-up. Yes: a public free trial, free plan or sign-up. No: the site routes every visitor to a demo or sales call.

"Not documented" means we did not find it on the vendor’s public pages. It does not mean the feature is missing. We never infer a value. Criterion 8 is the only column that uses "No".

AI accounting tools compared, by workflow

AI accounts receivable software

AR tools send invoices, run dunning and apply incoming cash to open invoices. Check whether a person approves customer-facing messages before they go out. For a longer AR comparison, see best AR automation software.

AI accounting tools compared on eight criteria, December 2026 edition: AI accounts receivable software
ToolAudit trail and step logsHuman approval gatesExecution modelNamed ERP integrationsSOC 2 Type II statedWorkflow coverageDelivery modelFree trial or self-serve sign-up
BilltrustAR platform for invoicing, payments, credit, collections and cash applicationYesTrust page: audit trails let compliance teams review AI automation actionsSource, checked YesTrust page: guardrails require review and approval before automation runsSource, checked Not documentedSays autonomous processes run only when configured; step model not statedSource, checked SAP, Oracle Fusion, NetSuite, Microsoft Dynamics 365, Epicor, Infor, +9 moreERP integrations listed on the vendor's integrations pageSource, checked Not documentedTrust page cites SOC 1 and SOC 2 attestations; Type II not stated thereSource, checked ARInvoicing, payments, credit, collections and cash applicationSource, checked Not documentedSite sells software but does not state self-serve or managedSource, checked NoSite routes visitors to talk to an AR expert; no sign-up foundSource, checked
ChaserAR software for payment reminders, credit checks, payments and cash flow forecastingPartialKeeps a record of all reminders sent; no per-step log describedSource, checked Not documentedReminders can be paused or adjusted; no approval step before sending foundSource, checked Not documentedLooked for fixed vs AI-generated steps; not statedSource, checked Xero, QuickBooks, Sage Intacct, NetSuite, Microsoft Dynamics 365, Odoo, +6 moreAccounting systems and ERPs listed on the integrations pageSource, checked YesSecurity page states SOC 2 Type IISource, checked ARReminders, credit checks, payments, debt recovery, cash flow forecastsSource, checked BothSoftware, plus an optional credit control specialist serviceSource, checked YesHomepage offers a free trial sign-upSource, checked
GrowfinAR software for collections, cash application and cash flow forecastingYesEvery action, follow-up and response is logged in one shared platformSource, checked Not documentedLooked for configurable approvals on product pages; none describedSource, checked Not documentedLooked for fixed vs AI-generated steps; not statedSource, checked NetSuite, QuickBooks, Sage Intacct, Xero, SAP Business One, Sage X3, +3 moreERPs listed on the vendor's ERP integrations pageSource, checked Not documentedShows an AICPA SOC logo only; SOC 2 Type II not stated in textSource, checked ARCollections and cash applicationSource, checked Not documentedSite sells software but does not state self-serve or managedSource, checked NoSite routes visitors to book a demo; no sign-up foundSource, checked
HighRadiusAI agent platform for order-to-cash, AP, treasury, close and reconciliationLoopfour vs HighRadiusYesEvery invoice approval step is recorded in a detailed audit trailSource, checked YesMulti-level invoice approvals per a configurable approval matrixSource, checked Not documentedLooked for fixed vs AI-generated steps; not statedSource, checked SAP, Oracle, Microsoft Dynamics, NetSuiteNamed ERP integrations; vendor also cites 50+ ERPs and systemsSource, checked YesTrust Center lists SOC 2 Type 2Source, checked AR, AP, Close, Reconciliation, Rev recOrder to cash, AP, close and reconciliation, revenue recognitionSource, checked Not documentedSite sells software but does not state self-serve or managedSource, checked NoSite routes visitors to a demo request; no sign-up foundSource, checked
LoopfourDeterministic AI agents that run the finance workflows your team builds and approvesYesEach run shows every step's inputs and results; audit trail exports to CSVSource, checked YesApproval step with chosen approvers, by email or Slack, before postingSource, checked Fixed stepsEach workflow runs predefined steps the team approved; fixed and versionedSource, checked NetSuite, QuickBooks, Sage Intacct, Xero, RilletLive on the integrations page; Workday is listed as coming soonSource, checked YesSecurity page states a completed SOC 2 Type II examinationSource, checked AR, AP, Close, Reconciliation, Rev recPlaybooks for receivables, payables, close, reconciliation and revenueSource, checked BothFinance engineers build and maintain workflows; self-serve sign-up at studio.loopfour.ai/signupSource, checked YesSelf-serve sign-up at studio.loopfour.ai/signupSource, checked
TesorioAI agents for order-to-cash: collections, cash application and AR forecastingYesCollections Agent logs every action with its reasoningSource, checked YesHold every agent reply for review; approve each cash application matchSource, checked Not documentedLooked for fixed vs AI-generated steps; not statedSource, checked NetSuite, Sage Intacct, Workday, QuickBooksNamed ERPs; vendor says any ERP can connect via Tesorio ConnectSource, checked YesSecurity portal states annual SOC 2 Type 2 auditsSource, checked ARCollections, dunning, cash application, payment portal, AR forecastSource, checked Not documentedSite sells software but does not state self-serve or managedSource, checked NoSite offers demos and contact sales; no sign-up foundSource, checked
UpflowAR platform for collections, B2B payments, cash application and AR analyticsYesCustomer timeline logs each action, who did it and whenSource, checked YesIn suggestion mode nothing is sent or created without team approvalSource, checked Not documentedDescribes autonomy modes, not whether steps are fixed or generatedSource, checked NetSuite, Sage Intacct, QuickBooks, Xero, Pennylane, RilletAccounting and ERP integrations listed on the integrations pageSource, checked YesTrust Center states SOC 2 Type IISource, checked ARCollections, B2B payments, cash application and AR analyticsSource, checked Not documentedSite sells software but does not state self-serve or managedSource, checked YesOffers a free AR analytics version alongside Book a demoSource, checked

AI accounts payable software

AP tools capture bills, code them to the general ledger and route them for approval before payment. The approval gates column matters most here: it shows whether a payment can wait for a named approver. See how finance workflow automation connects AP to the rest of the process.

AI accounting tools compared on eight criteria, December 2026 edition: AI accounts payable software
ToolAudit trail and step logsHuman approval gatesExecution modelNamed ERP integrationsSOC 2 Type II statedWorkflow coverageDelivery modelFree trial or self-serve sign-up
Auditoria.AIAI agents that run accounts payable and accounts receivable work inside your systemsYesStates every action and rule is logged, traceable and auditableSource, checked Not documentedAutonomy is set per workflow and policy; no approval step describedSource, checked Not documentedAgents configured to policies; no statement on fixed vs runtime stepsSource, checked Workday, Oracle, SAP, NetSuite, SageERPs named on the partners page; also ServiceNow and CoupaSource, checked YesHomepage lists SOC 2 Type II among its compliance standardsSource, checked AP, ARAP helpdesk, invoices, accruals; AR helpdesk, collections, remittancesSource, checked Not documentedMentions a dedicated team; no delivery model statedSource, checked NoSite routes to Request a Demo; no trial or sign-up foundSource, checked
MediusAccounts payable automation covering invoice capture, approvals, payments and spendYesStates a full audit trail records every approval decisionSource, checked YesApproval workflows with rule-based routing to the right approverSource, checked Not documentedMentions agentic and generative AI; no fixed vs runtime step statementSource, checked Microsoft Dynamics, SAP, Oracle, NetSuite, JD Edwards, InforFAQ names these and says and moreSource, checked YesTrust Center lists SOC 2 Type 2 reportsSource, checked APAP automation, payments, supplier statement reconciliation, procurementSource, checked Not documentedDescribed as a cloud-based platform; no delivery model statedSource, checked NoSite routes to Book a Demo; no trial or sign-up foundSource, checked
StampliAccounts payable, procurement, payments and expense software with an AI assistantYesDetailed audit logs; invoice actions and decisions stored and auditableSource, checked YesPeople approve suggested entries before ERP posting and payment releaseSource, checked Not documentedAI prepares work within configured controls; no fixed vs runtime statementSource, checked NetSuite, Sage Intacct, QuickBooks, Microsoft Dynamics 365, SAP, Oracle, +3 moreAlso names Acumatica, Dealertrack and Sage 100Source, checked YesStates Stampli is certified compliant with SOC 2 Type 2Source, checked APAP, procurement, vendor management, payments, expensesSource, checked Not documentedNo delivery model stated on the pages checkedSource, checked NoSite routes to Get a demo or Contact sales; no sign-up foundSource, checked
TipaltiAccounts payable and global payments platform with procurement and expensesYesAudit trails track payer and payee activity in the systemSource, checked YesInvoices routed to approvers by predefined rulesSource, checked Not documentedDescribes AI agents with guardrails; no fixed vs runtime statementSource, checked NetSuite, Microsoft Dynamics, SAP, Sage, QuickBooks, XeroDynamics GP and Business Central, SAP Business OneSource, checked YesCloud page states ISAE 3000 (SOC 2) Type IISource, checked APAP, mass payments, procurement, expenses, treasurySource, checked Not documentedNo delivery model stated on the pages checkedSource, checked NoSite routes to Book a demo; no trial or sign-up foundSource, checked
Vic.aiAccounts payable platform for invoice processing, approvals, payments and expensesYesLog of every action, comment and decision in the approval processSource, checked YesRouting by vendor, amount, GL or cost center; limits by role or userSource, checked Not documentedMentions preset thresholds and AI Autopilot; no fixed vs runtime statementSource, checked NetSuite, Sage Intacct, Oracle, Workday, SAP, Microsoft Dynamics, +5 moreAlso AppFolio, Xledger, RealPage, Acumatica, Viewpoint VistaSource, checked YesTrust page states SOC 1 Type II and SOC 2 Type IISource, checked APInvoice processing, PO matching, approvals, bill pay, expensesSource, checked Not documentedNo delivery model stated on the pages checkedSource, checked NoSite offers Request demo and a product tour; no sign-up foundSource, checked

AI month-end close software

Close tools manage the close checklist, flux review and journal entries. Look for a step log your auditor can follow from source data to posted entry. More on month-end close automation.

AI accounting tools compared on eight criteria, December 2026 edition: AI month-end close software
ToolAudit trail and step logsHuman approval gatesExecution modelNamed ERP integrationsSOC 2 Type II statedWorkflow coverageDelivery modelFree trial or self-serve sign-up
BlackLineFinancial close, intercompany and invoice-to-cash platform with AI agentsYesStates every step of financial operations is tracked in a full audit trailSource, checked YesJournal entry approval routing by amount thresholds and rolesSource, checked Not documentedDescribes governed AI agents; no statement on fixed vs runtime stepsSource, checked SAP, Oracle, NetSuite, Microsoft DynamicsIntegration pages for Oracle, NetSuite, Dynamics; Smart Close for SAPSource, checked YesSecurity page lists SOC 2 Type 2 under auditing standardsSource, checked AR, Close, ReconciliationClose and consolidation, reconciliations, intercompany, invoice-to-cashSource, checked Not documentedNo delivery model stated on the pages checkedSource, checked NoSite routes to Schedule a demo; no trial or sign-up foundSource, checked
FloQastClose management software with AI agents for reconciliations and journal entriesYesStates every decision is logged, traceable and exportableSource, checked YesStates nothing hits the books without human approvalSource, checked Not documentedAgents follow processes in plain language; no fixed vs runtime statementSource, checked NetSuite, Workday, SAP, Oracle, Sage Intacct, QuickBooks, +2 moreHomepage also names Xero and YardiSource, checked YesHomepage states SOC 2 Type II compliantSource, checked Close, ReconciliationClose workflows, reconciliations and journal entriesSource, checked Not documentedNo delivery model stated on the pages checkedSource, checked NoSite routes to Book a Demo; no trial or sign-up foundSource, checked
LedgeAI agents that prepare month-end close work for accounting teams to reviewYesProduct page states an audit trail on every taskSource, checked YesReview outputs and approve before anything posts to the ERPSource, checked Not documentedWorkflows are team-configured; no statement on fixed vs runtime stepsSource, checked NetSuiteCertified NetSuite SuiteApp; other ERPs not namedSource, checked YesTrust center lists a SOC 2 Type II reportSource, checked AR, Close, Reconciliation, Rev recClose, reconciliations, revenue and deferrals, cash applicationSource, checked Not documentedSite does not say who sets up or runs the workflowsSource, checked NoSite routes to Book a demo; no sign-up foundSource, checked
NumericClose, reconciliation, cash and revenue platform that sits on top of the ERPYesStates every action is tracked in an audit trail with timestampsSource, checked PartialClose task and control sign-offs; no pre-posting approval describedSource, checked Not documentedDescribes AI agents and user rules; no fixed vs runtime statementSource, checked NetSuite, Workday, Xero, QuickBooks, Sage IntacctLive ERP integrations named in the reconciliation page FAQSource, checked YesStated on Numeric's own comparison page; no trust page foundSource, checked AR, Close, Reconciliation, Rev recClose, reconciliations, cash matching, invoicing, ASC 606 rev recSource, checked Not documentedNo delivery model stated on the pages checkedSource, checked NoSite routes to Schedule a demo or a public demo; no sign-up foundSource, checked

AI reconciliation software

Reconciliation tools match bank, processor and ledger records and flag what doesn’t match. Check how exceptions are logged and who clears them. More on payment reconciliation software.

AI accounting tools compared on eight criteria, December 2026 edition: AI reconciliation software
ToolAudit trail and step logsHuman approval gatesExecution modelNamed ERP integrationsSOC 2 Type II statedWorkflow coverageDelivery modelFree trial or self-serve sign-up
SimetrikFinancial control platform for reconciliation, accounting automation and closeYesAudit trail for every configuration change and user actionSource, checked YesAdjustment postings and period-end close run through approval workflowsSource, checked Not documentedCites a deterministic core plus AI reasoning; step model not statedSource, checked SAP, Oracle, Microsoft Dynamics 365, Sage Intacct, NetSuiteListed under ERPs and core systemsSource, checked YesSecurity page lists SOC 2 Type 2Source, checked Close, ReconciliationReconciliations, journal entries, structured period closeSource, checked Self-serve softwareFinance and ops teams configure and run controls on their ownSource, checked NoSite offers Request a Demo and login onlySource, checked
TrintechSoftware and AI agents for reconciliations, matching, journal entries and closeYesLogs who prepared, reviewed, approved and posted each journal, timestampedSource, checked YesConfigurable journal approval steps, routing can vary by journal valueSource, checked Not documentedMentions policy-driven controls; no statement on fixed vs runtime stepsSource, checked Microsoft Dynamics, NetSuite, Oracle, SAP, WorkdayERP integration pages linked from the siteSource, checked YesTrust center states an annual SOC 2 Type 2 attestationSource, checked Close, ReconciliationAccount reconciliation, matching, journal entries, close managementSource, checked Not documentedSite does not state SaaS or managed serviceSource, checked NoCalls to action are Book a Demo and talk to specialistsSource, checked

AI revenue recognition software

Revenue recognition tools turn contracts and billing data into ASC 606 schedules and journal entries. Check whether the schedule logic is fixed and reviewable before entries post. More on revenue recognition automation.

AI accounting tools compared on eight criteria, December 2026 edition: AI revenue recognition software
ToolAudit trail and step logsHuman approval gatesExecution modelNamed ERP integrationsSOC 2 Type II statedWorkflow coverageDelivery modelFree trial or self-serve sign-up
RightRevRevenue recognition software that calculates revenue by rule and traces it to sourceYesEach entry links to its contract, rule and change historySource, checked YesStates nothing posts until your team approvesSource, checked Not documentedRevenue is calculated by rule; agent step model not statedSource, checked NetSuite, SAP, Oracle, WorkdayListed under ERP systems, plus "and more"Source, checked Not documentedNo trust or security page found; homepage does not state SOC 2Source, checked Close, Reconciliation, Rev recASC 606 revenue recognition, faster close, system reconciliationSource, checked Not documentedSite does not state software or managed serviceSource, checked NoSite routes to Request a demo; no sign-up foundSource, checked

AI-native ledgers

AI-native ledgers are general ledgers built with automated categorization and posting from the start. Because the product is the ledger, the audit trail column matters more here than ERP integrations. More on journal entry automation.

AI accounting tools compared on eight criteria, December 2026 edition: AI-native ledgers
ToolAudit trail and step logsHuman approval gatesExecution modelNamed ERP integrationsSOC 2 Type II statedWorkflow coverageDelivery modelFree trial or self-serve sign-up
DigitsAI-native general ledger for business owners and accountantsPartialActivity history on bills and ledger transactions; no full audit logSource, checked PartialBill approval by assigned approver; journal entries post on saveSource, checked Not documentedNo statement on fixed vs runtime stepsSource, checked Not documentedDigits is itself the ledger; integrations are banks, cards, payrollSource, checked YesSecurity page states SOC 2 Type II compliantSource, checked AR, AP, Close, ReconciliationInvoicing, bill pay, month-end close, reconciliationsSource, checked Self-serve softwareBusinesses sign up and can invite their own accountantSource, checked YesFree 30-day trial with self-serve sign-upSource, checked
RilletAI-native ERP and general ledger for accounting teamsYesEvery entry, change and AI proposal, approval or rejection is loggedSource, checked YesTiered approvals by amount; agent drafts do not post without approvalSource, checked Not documentedNo statement on fixed vs runtime agent stepsSource, checked Not documentedRillet is itself the ledger; no external ERP named on integrations pageSource, checked YesProduct page states a SOC 2 Type II report, available under NDASource, checked AR, AP, Close, Reconciliation, Rev recInvoicing, expense recognition, close, bank matching, revenue recognitionSource, checked Not documentedSite does not state software or managed serviceSource, checked NoSite routes to Request a demo; no sign-up foundSource, checked

AI FP&A software

FP&A tools pull actuals from the ledger into budgets, forecasts and reports. They read accounting data rather than post it, so check the ERP integrations and how changes to the model are logged.

AI accounting tools compared on eight criteria, December 2026 edition: AI FP&A software
ToolAudit trail and step logsHuman approval gatesExecution modelNamed ERP integrationsSOC 2 Type II statedWorkflow coverageDelivery modelFree trial or self-serve sign-up
AbacumBusiness planning platform for finance teams with governed AI agentsYesDetailed history of every edit to models, spaces and mappingsSource, checked PartialPlan changes are reviewed and approved before they saveSource, checked Not documentedNo statement on fixed vs runtime agent stepsSource, checked NetSuite, QuickBooks, Xero, Sage Intacct, Microsoft Dynamics 365, SAP, +6 moreAlso Acumatica, Campfire, Exact Online, Light, Odoo, RilletSource, checked YesSecurity page states SOC 2 Type II compliantSource, checked Not documentedPlanning product; none of AR, AP, close, recs, rev rec documentedSource, checked Self-serve softwareStates self-service by design, with onboarding support includedSource, checked NoSite routes to Book a Demo; no sign-up foundSource, checked
CubeFP&A platform with agents for planning, reporting and data managementYesEvery fetch, publish and permission change is logged and reviewableSource, checked Not documentedNo approval workflow described on product or security pagesSource, checked Not documentedNo statement on fixed vs runtime agent stepsSource, checked NetSuite, QuickBooks Online, Xero, Sage Intacct, Dynamics 365 Business Central, SAP, +3 moreAlso Rillet, Campfire, EpicorSource, checked YesSecurity page states SOC 2 Type IISource, checked CloseLists a financial close offering; other areas are planningSource, checked Not documentedSite does not state software or managed serviceSource, checked YesFree trial offered alongside demo requestSource, checked
PigmentBusiness planning platform for FP&A, consolidation and workforce and sales planningYesAudit trail features, Audit Trail API, histories down to data block levelSource, checked Not documentedNo built-in approval gate described on product or security pagesSource, checked Not documentedNo statement on fixed vs runtime agent stepsSource, checked NetSuite, SAP, QuickBooks, Sage Intacct, XeroListed under ERP and Accounting integrationsSource, checked YesSecurity page states SOC 2 Type 2 certificationSource, checked Not documentedPlanning and consolidation; none of AR, AP, close, recs, rev rec namedSource, checked Not documentedSite does not state software or managed serviceSource, checked YesStart free trial sign-up offered alongside Book a demoSource, checked

How we built this comparison

  • Sources. Every cell comes from the vendor’s own public pages: product pages, documentation, help centers and trust pages. No review sites, press or paid data.
  • Dated cells. Every cell links to its source and shows the date we checked it.
  • Inclusion rule. A tool is included if it sells live software for at least one of AR, AP, close, reconciliation or revenue recognition, or if it is an AI-native ledger or FP&A tool used by finance teams.
  • No paid inclusion. Vendors cannot pay to be listed or to change an entry.
  • Quarterly re-check. Every cell is re-checked each quarter. Corrections between editions are logged in the changelog below.
  • Why these criteria. Audit trail, approvals and fixed steps are what an auditor asks to see when software touches the ledger. See how we think about AI governance in finance.
  • Editorial standards. This page follows our editorial policy.

These criteria reflect what a finance team should check before automating a controlled process. They also line up with how Loopfour is built. Loopfour offers both delivery models: self-serve sign-up, and workflows built and maintained by its finance engineers. The self-serve sign-up means it meets criterion 8. Criterion 4 is one where Loopfour does not lead: it names five native ERP integrations, fewer than several tools in this table, and SAP, Oracle and Microsoft Dynamics are not among them.

FAQ

Frequently asked questions

The best AI tools for a CFO are the ones that keep control evidence: a log of every step, human approval before posting or write-back, and support for the ERP already in place. Start with the workflow that takes your team the most time, then compare the tools in that category.

AI accounting software is built for a defined finance task, such as matching payments or sending dunning emails. A general-purpose AI agent generates its next step at runtime. A Loopfour agent runs only the steps you approved. The execution model column shows what each vendor states about its own product.

A single score hides the judgement behind it. Each cell here is a fact with a source and a date, so your team can weigh the criteria that matter for its own controls.

Every quarter. The next full re-check is in Q1 2027. Vendor corrections are applied as they arrive and logged in the changelog at the bottom of this page.

Email support@loopfour.ai with the entry and a link to a public page that supports the change. We reply the same business day. Within 2 business days we either correct the cell, with a changelog note, or reply with our reason.

No. A tool is included only if it meets the published inclusion rule, and no vendor can pay to be listed or to change an entry.

Still evaluating a workflow? Contact sales and we will map the first automation path with you.

Changelog

  • : Corrected the Loopfour row. Delivery model changed from Self-serve software to Both: the Loopfour pricing page states that its finance engineers build and maintain the workflows, and Loopfour also has self-serve sign-up at studio.loopfour.ai/signup.
  • : Corrected the Loopfour row. Free trial or self-serve sign-up changed from No to Yes: Loopfour now has self-serve sign-up at studio.loopfour.ai/signup. Delivery model changed from Managed service to Self-serve software, which was wrong and was corrected to Both on 2026-12-03.
  • : First edition (v1.0), 24 tools, 8 criteria.

Tell us the one workflow your team dreads. We will show it running.

Build a workflow