# Verify images with Zapier and Peltarion

Build an automated and effective system that verifies customer photo uploads.

Put yourself in the shoes of a car insurer. They receive a lot of insurance claims from their customers, and the insurer must ensure that every customer’s car is, in fact, damaged before paying any money. This is a tedious task but luckily a task that can be automated.

In this tutorial, we’ll show you how to set up a verification system that uses the customer’s information and image and then notifies systems administrators when something is wrong.

- Target audience: Intermediate users
- Estimated time: 15 minutes

You will learn
- Build a Zapier workflow
- Connect Peltarion to a Zapier workflow

Figure 1. Zapier tutorial workflow

## Create a spreadsheet with insurance claims

Make your own copy of this spreadsheet with insurance claims that we’ve made. The spreadsheet includes information on each claim. Most importantly, it contains a link to a photo for each claim. You will use that photo in a Peltarion classification model.

### Tips on tools for survey collection

You can also create your own spreadsheet that includes a photo for each claim. This photo must have a link so the Peltarion classification model can use it.

We used Typeform to set up a form that, from a chat window, collected dummy information about insurance claims from customers. You could also try AirTable, which also worked very well and, as an added benefit, also removes the need for a spreadsheet in the step below.

## Create Zap: Peltarion ←→ Google Sheet

Now let’s set up a zap in Zapier.

Figure 2. Complete zap - a Zapier workflow.

2. In the My apps window search for and add a Peltarion connection.
If the Peltarion connection is not in the list, search for "Peltarion".

• We’ve pre-trained a demo model already that can classify different car damages.
Use the URL and Token below to access our deployed model. (You can also build and deploy a car classifier yourself in our car damage classifier tutorial.)

• URL: https://a.azure-eu-west.platform.peltarion.com/deployment/51214a73-336b-40d3-bdcb-b65980e683bf/forward

• Token: 1a3ddc3d-f17a-4a3d-aeb8-c73c4d08925f

3. In the Zaps window create a Zap.

2. Trigger event: New Spreadsheet Row

4. Select the spreadsheet with insurance claims you just copied from us.

1. App: Peltarion

2. Action event: Prediction

3. Choose account: The car damage account you set up in the My apps window.

4. Set up the action: Select the data from the photos column.

6. Click the + icon to add another step (do not turn the zap on).

To filter out the photos that are either predicted to belong to the class Unknown or where the Peltarion model isn’t confident in its prediction.

1. In Filter Setup & Testing:

• Click Only continue if… and select Predictions in Peltarion and then Class.

• Choose condition (Text) Contains.

• Enter value Unkown in the last field.
This means that you will filter out all examples with the predicted label Unkown.

2. click + or

3. In Filter Setup & Testing:

• Click Or continue if… and select Predictions in Peltarion and then Class Conviction.

• Choose condition (Number) Less than…

• Enter value 0.7 in the last field.
This means that if the two top predictions are very close, then the conviction will be low. That is, the model doesn’t give a clear prediction.
Math: Class conviction = ln (1st candidate / 2nd candidate)

8. Click the + icon to add another step.

9. Add Action: Send outbound email
To send you an email if a photo is filtered out.

1. Search for Email by Zapier and add it (will then show as Action / Send Outbound Email).

2. Action event: Send outbound email. Enter this info:

• To: <your mail>

• Subject: Unverified insurance claim

• Body: Click in the Body field

This will add a link to the unverified image to the mail.

• Then you can add some text, for example, is unverified. Please take a look.

10. Done! Turn the zap on.

## Verify zap

Time to verify that your zap works.

### Recieve a mail from the zap

Check you inbox for a mail from zapier. It might take some time since there are a couple of different tools that need to communicate with each other.

Example:

Figure 3. Example email with a link to the photo so the receiver can take a look.

## Recap

And that’s it! Your customized verification system is finished. In this tutorial, you learned to:

1. Build a workflow using apps you already use.

2. Deploy a Peltarion model in Zapier.

3. Integrate it into your processes.

## Next step

If you’re keen to try out another one of our tutorials that utilize another low-code tool, check out the Sales forecasting tutorial and its integration with Google Sheets and with Microsoft Excel.