Overview
This use case monitors a user’s Gmail inbox for emails with attachments, saves them to Google Drive, and logs metadata to a Google Sheet. It runs automatically whenever a matching email arrives.
Folder structure
config.ts highlights
Trigger definition (service event)
inputSchema — service events do not accept user input per execution.
Deployment parameters
Users configure these at install time:Integration requirements
Output schema
Workflow pattern
Codika Init (service event mode)
Because this is a service event trigger (not HTTP), Codika Init creates the execution by calling the platform API:INSTPARM usage in Code nodes
USERCRED credentials
Key patterns demonstrated
- Service event trigger — automatic execution on external events
- USERCRED — per-user OAuth credentials (each user’s own Gmail/Drive/Sheets)
- INSTPARM — deployment parameters configured at install time
- Codika Init API mode — creates execution record for non-HTTP triggers
- Multiple Google integrations — coordinating Gmail, Drive, and Sheets