Skip to main content

⚑ Automations

Docflo.ai enables powerful automations to streamline document workflows, integrate with external systems, and manage secrets and dependencies securely.

✨ Key Features:
  • Automate document processing, validation, and routing
  • Trigger actions based on document events or data
  • Integrate with external APIs and services
  • Secure secret management for credentials and tokens
  • Support for custom dependencies and injected objects

πŸš€ How it works​

  1. Go to the Automations section in the Docflo.ai platform.
  2. Create or edit an automation by defining triggers, actions, and conditions.
  3. Configure integrations with external APIs or services as needed.
  4. Manage secrets securely within the platform for use in automations.
  5. Test and activate your automation to streamline your workflow.

Automations in Docflo.ai help you eliminate manual steps, reduce errors, and ensure your document processes are efficient and reliable.

πŸ“‹ Templates​

Get started quickly by using pre-built automation templates. Click the three-dot menu and select "Select a template" to import existing working automations:

  • Email Notification - Send automated email notifications based on document events
  • Data Extraction - Extract and process data from documents automatically
  • Webhook Integration - Connect with external systems via webhooks
  • SAP SuccessFactors - Integrate with SAP SuccessFactors for HR document workflows
  • Monday - Sync documents with Monday.com project management
  • Microsoft Dynamics - Connect with Microsoft Dynamics for business process automation
  • SAP S/4HANA Cloud - Integrate with SAP S/4HANA Cloud for enterprise workflows

πŸ“¦ Dependencies​

If you need to use npm packages in your automations, such as axios for server-side HTTP requests, add them under the "Dependencies" section. This ensures all required packages are available during automation execution.

Example dependencies:

  • axios - For HTTP requests to external APIs
  • lodash - For data manipulation utilities
  • moment - For date and time handling

πŸ” Secrets​

Store sensitive information securely using the Secrets section. This is ideal for:

  • Server addresses and endpoints
  • API keys and tokens
  • Usernames and passwords
  • Database connection strings

Usage in code:

// Access secret values using ${secret.KEY} syntax
const apiKey = secrets.API_KEY;
const serverUrl = secrets.SERVER_URL;
const username = secrets.DB_USERNAME;

πŸ§ͺ Testing​

Test your automations before deploying them using the "Testing" section:

  1. Navigate to the Testing section of your automation
  2. Provide a document ID to test with
  3. View immediate execution results in the debugging console
  4. Review logs, outputs, and any errors
  5. Iterate and refine your automation logic

The debugging console provides real-time feedback on your automation's performance and helps identify issues before activation.

πŸ’‘ Tip: Please refer to Data Types for supported data structures and field types you can use within your automation.

For documentation on injected objects and advanced automation scenarios, consult your platform administrator or contact the Docflo.ai support team.