Skip to main content

Overview

This use case runs daily at 9 AM (configurable) to pull pipeline data from Folk CRM and post a formatted report to a Slack channel. It also has a manual trigger for on-demand reports.

Folder structure

config.ts highlights

Dual triggers

Manual trigger input

The HTTP trigger accepts optional parameters:

Rich deployment parameters

Organization-level credentials

Folk CRM and Slack are shared across the organization:

Workflow pattern

Dual trigger convergence

Both triggers feed into the same Codika Init node. The CLI validates this via the CK-SCHEDULE-CONVERGENCE rule.

Codika Init handles both modes:

  • HTTP trigger: Extracts execution metadata from webhook
  • Schedule trigger: Creates execution via API call
A Code node after Init detects which trigger fired and normalizes the input:

Output schema

Key patterns demonstrated

  1. Dual triggers — schedule for automation + HTTP for manual override
  2. ORGCRED — organization-level credentials (shared Folk CRM and Slack)
  3. Select deployment parameter — dropdown for report frequency
  4. Trigger detection — Code node determines which trigger fired
  5. External API calls — HTTP requests to Folk CRM API
  6. Slack posting — Send formatted messages with Block Kit