🇬🇧 English🇩🇪 Deutsch
← Back to Gmail Setup

⚙️ Set Up Automatic Trigger

So KIWacht runs automatically every 5 minutes — no manual execution needed

1

1. Click “Add Trigger”

In the left sidebar, click the Triggers icon, then click the blue “Add Trigger” button.

Add Trigger Button
2

2. Choose function to run

Click the dropdown menu labeled “Select function to run”.

Select function dropdown
3

3. Select classifyAndLabel

From the list, choose the function classifyAndLabel.

Select classifyAndLabel
classifyAndLabel
4

4. Configure time interval

Set up the trigger as follows:

  • Arrow 1: Select “Minutes timer”
  • Arrow 2: Choose “Every 5 minutes”
  • Arrow 3: Click “Save”
Configure time interval

⚠️ Without this step, the script will not run automatically!

🔐Confirm permissions (one-time only)

When you first save the trigger, Google shows a warning because the script isn’t verified. This is normal for all custom scripts — just follow these steps:

1

Click “Review permissions”.

Review permissions
2

Click the small “Advanced” link at the bottom.

Advanced link
3

Click “Go to KIWacht (unsafe)”. (If you renamed your project, it will say “KIWacht” instead of “untitled project”.)

Go to KIWacht unsafe
4

Select **only** “Read email” — KIWacht doesn’t need any other permissions!

KIWacht wants access to your account

💡 Note: KIWacht only accesses emails with the kiwacht-ticket label — never your other messages.