Skip to main content

Snapshot Module

Introduction

The Snapshot module allows customers to take a picture using their device's camera or upload an image. This module also supports image recognition AI to identify the content of the picture, with hundreds of categories available (e.g., for receipt uploads).

How to Use the Module

Guiding the Customer

  1. Instructions: Tell your customer to either upload an image or take a photo using their device's camera.
  2. Camera Icon: When the customer clicks on the camera icon in the chat, they are provided with a native upload option, allowing them to choose between taking a new photo or uploading an existing one.
  3. Image Recognition: You can use categories to customize responses based on different image categories.

Customizing Responses

  1. Categories: Use categories to differentiate responses based on the content identified in the image.
  2. Response Types: For each category, set up one of the following response types:
  • Text response with an animation
  • Video response
  • Automatic or decision jump to another module

Optional Settings

You can allow customers to skip this step if they prefer.

Useful tips

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

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.

Process-Specific Variables

This module generates variables that are accessible throughout the current process. They are only valid for this specific process and may evolve with platform updates. For a detailed list, check the process-specific variables list.