Skip to main content

Snapshot Module

Introduction

Use the camera in the chat and ask customers to take a picture. Also use image recognition AI to identify what’s in the picture. We offer hundreds of categories, e. g. for receipts.

How to Use the Module

Tell your customer to upload an image or take a photo with the camera. When enabling image recognition, you can use categories to customize your response to different image categories.

Pick an answer to the scan:

  • this can be a text response with an animation (if you want)
  • or a video response
  • or an automatic or decision jump to an other module

Useful tips

The following variables are created here: ${snapshot_image}, ${snapshot_image_url}

Snapshot variables

When an image is uploaded, 4 variables are created

  • snapshot_image: ID of the storage item that was created
  • snapshot_image_url: URL that can be used to download the image (if the storage is turned on in the settings)
  • snapshot_image_content_type: Content type of the uploaded image
  • snapshot_image_filename: Filename of the uploaded image

Website settings

danger

For this module to work you content security policy (CSP) has to allow blob: as img-src. Here is an example CSP header:

default-src https: 'unsafe-inline' 'unsafe-eval'; worker-src blob:; img-src 'self' blob: data: https:; font-src 'self' data: https:

Please refer to this page for more details on content security policy.