Apify Integration: Actions and Triggers in Workflows

What Are Apify Actions and Triggers in Workflows?

The Apify integration connects your CRM workflows with the Apify platform, enabling you to automate data scraping, execute actors, and incorporate structured external data directly into your automations. This eliminates the need for additional webhooks or third-party connectors, streamlining your processes and enhancing efficiency.

Key Benefits

Using Apify actions and triggers offers several advantages:

  • Automated Data Collection: Launch Apify jobs from within workflows to gather external data without manual intervention.
  • Enhanced Contact Enrichment: Utilize scraped data from websites or business directories to improve contact records and segmentation.
  • Responsive Automations: Initiate workflows based on Apify job completions, allowing timely actions on fresh data.
  • Simplified Setup: Maintain a seamless connection between Apify activities and CRM workflow logic in a single automation flow.
  • Increased Flexibility: Trigger scraping from CRM events or start CRM actions upon Apify completion.

Prerequisites and Permissions

Before setting up, ensure you have:

  • Access to Automation → Workflows in your CRM sub-account.
  • An active Apify account with a valid API key.
  • Permissions to access Settings → Integrations if connecting outside the workflow builder.
  • Note that premium workflow usage may apply based on your CRM billing plan.

Connecting Your Apify Account

To enable Apify actions and triggers, connect your Apify account using your API key:

  1. Navigate to Automation → Workflows and add an Apify action or trigger step.
  2. If not connected, click Connect Now and sign in to Apify to authorize access.
  3. If already connected, the configuration fields will appear automatically.
  4. Alternatively, go to Sub-Account settings → Integrations → Apify → Connect.

Available Triggers (Apify → CRM)

Apify triggers initiate CRM workflows based on Apify activity:

  • Finished Actor Run: Starts the workflow when an Apify actor run completes.
  • Finished Task Run: Starts the workflow when an Apify task run finishes.

Available Actions (CRM → Apify)

Apify actions allow CRM workflows to interact with Apify:

  • Run A Task: Executes a predefined Apify task.
  • Run An Actor: Starts an Apify actor using input from the workflow.
  • Scrape Single URL: Extracts structured data from a specified webpage.
  • Fetch Dataset Items: Retrieves output data from a completed Apify run.
  • Find Last Task Run: Returns details of the most recent task execution.
  • Find Last Actor Run: Returns details of the most recent actor execution.

How to Set Up Apify Actions and Triggers

Follow these steps to configure Apify in your workflows:

  1. Open a Workflow: Go to Automation → Workflows and create or edit a workflow.
  2. Connect Apify: Add an Apify step and connect your account using your API key, or connect via Settings → Integrations first.
  3. Choose Direction: Decide whether to use an Apify trigger (workflow starts after Apify run) or action (workflow triggers Apify job).
  4. Configure Step: Select the specific trigger or action (e.g., Finished Actor Run, Run A Task) and set required parameters.
  5. Add Wait Step: If fetching results, insert a Wait step before using Fetch Dataset Items or Find Last Run actions to ensure data is ready.
  6. Test and Publish: Run a test to verify data accuracy, then publish the workflow once confirmed.

Common Use Cases

Apify integration is ideal for scenarios like:

  • Local Business Lead Generation: Scrape Google Maps for business contacts and automatically enrich CRM records.
  • Research Automation: Gather data from websites to trigger follow-up workflows based on new information.
  • Data Enrichment: Enhance contact details with external sources for improved segmentation and engagement.