Guides and Examples

Inbox backup to GCS bucket

You can schedule to receive daily dumps of conversations in the Inbox from us. This is useful if you e.g. want to routinely analyze your message data, or feed it to your own logging systems.

For this you will need Google Cloud, a GCS Bucket, and a user for Kindly to use.

Setup user for Kindly with S3 permissions

Step 1: Create a GCS bucket (skippable if you already have one)

Go to the GCS dashboard and click Create, go with default settings. Make sure public access is OFF.

Step 2: Create an Service Account

Go to the IAM dashboard, and click Create a policy.

On Grant this service account access to project step, give the service account the Storage Object Creator

You can skip giving access to users.

Step 3: Create key for the Service Account

Right after creating the Service Account, go to details of the service account. You can use the search function to help with finding the account.

After going into details page you should go to Keys tab and click on Add Key and Create new key. Select JSON as the key format. Now your browser should download a file.

Step 4: Setup GCS in Kindly

Navigate to Workspace -> Settings -> Inbox Backup app.kindly.ai/workspace/[ID]/settings/message-backups

Fill out the Bucket Name and Path fields. The Google Application Credential is the content of the file you downloaded at Step 3.

Schedule

If enabled in Kindly, the job will execute every night. It will upload a file for each language in the bot to a path structure like e.g. YYYY-MM-DD/INBOX-(BOTID)_BOTNAME-LOCALE-FILEPART. This file will include norwegian conversations for BOTNAME from 12am to 12pm, 31st of aug.



Data payload example

Payload