Skip to main content

Power Automate

Power Automate is a popular automation platform. Cradl AI has a connector that you can easily integrate into your automation flows in Power Automate.

info

Prerequisites

Import documents into Cradl AI from Power Automate

Sign into Power Automate and create new Connector

Inside Power Automate:

  • Go to My flows
  • Click New flow
  • Click Instant cloud flow

You can give your flow a name and choose how to trigger the flow

  • Choose a name. I.e: "My invoice flow". The name is only for your convenience.
  • Select Manually trigger a flow
  • Click Create

Image

  • Click on the «Manually trigger a flow» box to add an input.
  • Select file from the user input options.

Image

  • Click the + icon below your «Manually trigger a flow» box.
  • Click Add an action from the menu.
  • Search for "cradl" and Select Create document from the available Connectors.

Image

Create Connection to Cradl AI

You will be prompted to Create Connection if this is your first time connecting Cradl AI to Power Automate.

  • Give you connection a name.
  • Log into your Cradl AI account in order to generate your credentials.

Image

  • Inside your Flow overview in your Cradl AI account, click Add trigger and select PowerAutomate

Image

Create document

  • Back in Power Automate, paste your credentials into the Client Credentials field and click Create new.
  • You will prompted to create a new document. Give your document a name.
  • In the Body field, click the lightning bolt icon, click See more, and select File content contentBytes .

Image

Parse document with human in the loop

  • Click the + icon below your Create document box to Add an action.
  • Search for "cradl" again, and select Parse document with human-in-the-loop

Image

  • From the Workflow dropdown, Select your workflow from the options.
  • In the Document ID box, click the lightning bolt icon and select body/documentId from the options.

Image

Test your connection

  • From the top navigation bar, Save your flow and click Test.
  • Select Manually and click Test.
  • You will be shown your log in status. Click Continue
  • Upload a file you would like to process and click Run flow.

Image

  • Head back to your Flow overview in Cradl AI.

  • Click Go to Validator

    Image

  • Inside the Validator, click Validate documents.

  • (If the validation status of your document has not updated, try clicking Refresh)

  • Click Validate documents

    Image

Congratulations, you should be seeing your first parsed document with the Power Automate integration up and running.

Image

Export documents from Cradl AI into Power Automate

Generate a webhook endpoint in Cradl AI

  • Inside your Flow overview in your Cradl AI account, click Add export destination and select Webhook

Image

Inside Power Automate, repeat the steps to create a new flow:

  • Go to My flows
  • Click New flow
  • Select When an http request is received
  • Click Create

Image

  • Click on the Manual box
  • Select Anyone from the Who can Trigger The Flow dropdown menu.

Image

  • Click the + icon under the Manual box and Add an action
  • Search for "terminate" and click it.

Image

  • Save your flow from the top navigation.
  • Click on manual and copy the HTTP URL

Image

  • Go back to Cradl AI and paste it into your Webhook endpoint uri.

Image

  • click the Save button in the top-right corner.

Test your Webhook

  • To test your Webhook export from Cradl AI, go back to the Create document with Human-in-the-loop parsing flow you created earlier in Power Automate. Trigger the import flow by clicking Run and upload a document to parse.
  • In Cradl AI, click Validator
  • Click Validate documents once the documents are processed.
  • Inspect your documents and click Validate
  • Go back to your Power Automate webhook flow. You will see your recent export in your run history.

Image

  • Click on a run job, and inspect it's output. Congratulations, you just parsed in Cradl AI and exported it as structured data into Power Automate!

Image