Start a Botstar chat after a Drive share
A new share can be the moment to clarify access or next steps. Have Notis open Botstar live chat when Drive permissions are added.
Trigger
File Shared (Permissions Added)
Triggers when new sharing permissions are granted to a file or folder. Uses Drive's `changes.list` endpoint with inline `permissions` in the `fields` mask so each change carries the file's current permission set provider-atomically. We diff that against `seen_permission_keys` to identify newly added grants. Drive page tokens are the primary cursor; if Drive rejects a stored token, the trigger raises `PollingTriggerError` without clearing state rather than silently re-baselining and dropping events. Limitation: truly ephemeral permissions (added and revoked between two polls without any other file modification in between) are not detected. Drive Activity API would catch those but requires an additional OAuth scope and a different payload contract.
Action
Livechat open
Tool to show the live chat window. use after the widget has been bootstrapped with botstarapi('boot') to programmatically open the chat window (mode must be 'livechat' or 'popup').
Why this helps
A shared file may need a quick explanation, but the follow-up is easy to forget amid other work.
- Prompt a timely conversation when a file or folder is shared.
- Reduce the chance of missing a follow-up after granting access.
- Keep the trigger tied to an actual Drive permission change.
Setup
Build it in a few focused steps.
- 1Connect Google Drive and Botstar once in the Notis portal.
- 2Create an automation in the portal or tell Notis from any channel.
- 3In one instruction, ask Notis to open the Botstar live chat widget when a new Drive share needs follow-up.
- 4Pick the File Shared trigger and choose where run reports should go.
- 5Test with one real permission change while the Botstar widget is bootstrapped in livechat or popup mode.
Questions about this workflow
Will this open the chat in every Botstar mode?
The Livechat open action is for a widget configured in livechat or popup mode and bootstrapped with botstarapi('boot').
Can Notis decide whether a share needs a follow-up?
You can describe the decision in your instruction. The trigger provides Drive permission-change context; any extra criteria or history must be available to Notis.
When this happens · Trigger
Do this · Action
Supported Triggers and Actions
Notis builds workflows that link Google Drive to Botstar. A trigger fires from one place; an action lands in another.
Google Drive triggers
Botstar actions
Recurring trigger
Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.
BotStar LiveChat onClose Callback
Tool to register a callback when the chat window is closed. use after the widget is initialized. example prompt: "register an onclose handler that logs 'goodbye!' to the console."
Webhook trigger
Notis starts this workflow when an external tool or custom backend sends an HTTP request.
Get BotStar Application IDs
Tool to retrieve the botstar application id (`appid`). use when initializing or reinitializing the live chat widget.
Comment Added (Docs/Sheets/Slides)
Triggers when a new comment is added to Google Docs, Sheets, or Slides.
Livechat boot
Tool to reinitialize the live chat widget with provided data. use after initial load to reset or update widget configuration.
File Created
Triggers when a new file is created in Google Drive.
Close BotStar Livechat Widget
Tool to hide the live chat window. use when the chat widget is configured in livechat or popup mode.
File Deleted or Trashed
Triggers when a file is moved to trash or permanently deleted in Drive.
Livechat on open
Tool to register a callback when the chat window is opened. use after widget initialization.
File Shared (Permissions Added)
Triggers when new sharing permissions are granted to a file or folder. Uses Drive's `changes.list` endpoint with inline `permissions` in the `fields` mask so each change carries the file's current permission set provider-atomically. We diff that against `seen_permission_keys` to identify newly added grants. Drive page tokens are the primary cursor; if Drive rejects a stored token, the trigger raises `PollingTriggerError` without clearing state rather than silently re-baselining and dropping events. Limitation: truly ephemeral permissions (added and revoked between two polls without any other file modification in between) are not detected. Drive Activity API would catch those but requires an additional OAuth scope and a different payload contract.
Livechat open
Tool to show the live chat window. use after the widget has been bootstrapped with botstarapi('boot') to programmatically open the chat window (mode must be 'livechat' or 'popup').
File Updated
Triggers when a file's metadata or content changes in Google Drive.
Livechat update
Tool to update user details on the current live chat session. use when you need to modify user profile attributes during an active conversation.
Google Drive Changes
Triggers when changes are detected in a Google Drive.
Get BotStar Webview Parameter
Tool to retrieve a parameter value passed from the botstar chatbot to the webview. use inside onchatbotready after your page loads in modal mode with bs:input meta tags.
Connect any two apps with Notis in the middle.
Google Drive and Botstar, or any other combination from 1,000+ integrations.
When this happens · Trigger
Do this · Action
Save your first hour today.
7-day trial of any paid plan, with 20$ of usage included.
No card. Works with personal or business Botstar.