Infrastructure and platform prerequisites.
smtp_host, smtp_port, smtp_user, smtp_password, smtp_fromsms_provider, sms_account_sid, sms_auth_token, sms_fromYOUR_API_KEY)Three-tier architecture built entirely within FlowClick.
/pub/FlowClick/Test/public/*FlowClick database and table definitions with semantic column types.
// Application: Test // Database: TestDB Database: TestDB ├── Users ├── Projects ├── Tasks ├── Integrations ├── AuditTrail └── Settings
Core user management with semantic validation and authentication.
| Column | Semantic Type | Data Type | Notes |
|---|---|---|---|
| id | Record ID | auto | Auto-generated UUID primary key |
| string | Auto-validated (format + MX + disposable check) | ||
| password | Password | password | SHA-256 hashed, never exposed on read. Auth via filter match. |
| full_name | Full Name | string | Display name |
| phone | Phone | string | Auto-normalized to E.164 format |
| role | Category | string | Enum: admin, manager, developer, viewer |
| status | Status | string | Active / Inactive / Suspended |
| last_login | Timestamp | datetime | Updated via table trigger on login flow |
| created_at | Created At | datetime | Auto-set on creation |
Project tracking with owner references and status management.
| Column | Semantic Type | Data Type | Notes |
|---|---|---|---|
| id | Record ID | auto | Auto-generated UUID |
| name | Name | string | Project name, indexed |
| description | Rich Text | text | Markdown/HTML project description |
| owner | Reference | reference | → Users.full_name (onDelete: restrict) |
| status | Status | string | Planning / Active / On Hold / Completed / Archived |
| priority | Category | string | Critical / High / Medium / Low |
| start_date | Date | date | Project start |
| target_date | Date | date | Target completion |
| budget | Currency | decimal | Allocated budget |
| created_at | Created At | datetime | Auto-set |
Task management with project references, assignment tracking, and priority.
| Column | Semantic Type | Data Type | Notes |
|---|---|---|---|
| id | Record ID | auto | Auto-generated UUID |
| title | Name | string | Task title |
| project | Reference | reference | → Projects.name (onDelete: cascade) |
| assignee | Reference | reference | → Users.full_name (onDelete: nullify) |
| status | Status | string | Backlog / To Do / In Progress / Review / Done |
| priority | Category | string | Critical / High / Medium / Low |
| due_date | Date | date | Task deadline |
| estimate_hours | Number | decimal | Estimated effort |
| actual_hours | Number | decimal | Actual effort logged |
| created_at | Created At | datetime | Auto-set |
| Column | Semantic Type | Data Type | Notes |
|---|---|---|---|
| id | Record ID | auto | Auto-generated |
| name | Name | string | Integration name (e.g. 'GitHub', 'Jira') |
| type | Category | string | webhook / api / email / sms |
| endpoint_url | URL | string | External system endpoint |
| api_key | Password | password | passwordMode: encrypt — AES-encrypted, readable by flows |
| status | Status | string | Active / Inactive / Error |
| last_sync | Timestamp | datetime | Last successful sync time |
| error_count | Counter | integer | Consecutive error count |
| Column | Semantic Type | Data Type | Notes |
|---|---|---|---|
| id | Record ID | auto | Auto-generated |
| actor | Reference | reference | → Users.full_name |
| action | Category | string | create / update / delete / login / export |
| entity_type | Category | string | project / task / user / integration |
| entity_id | Short Text | string | Record ID of affected entity |
| details | JSON | text | JSON payload of change details |
| ip_address | IP Address | string | Source IP |
| created_at | Created At | datetime | Auto-set, WORM retention enabled |
Core automation workflows with step-by-step configurations.
Session-based authentication flow invoked via SSI from the login page.
is_empty({{input.email}}) and is_empty({{input.password}}). If either blank, abort with error.list on Users table. Filter: email eq '{{input.email}}' and password eq '{{input.password}}'. Password auto-hashes for comparison. iterate=false, top=1.is_empty on {{steps.AuthQuery.result.rows}}. If empty → invalid credentials.update on Users. Set last_login to {{steps.Now.result}}. Record ID from AuthQuery result.{"success":true,"user":"{{steps.AuthQuery.result.rows[0].full_name}}","role":"{{steps.AuthQuery.result.rows[0].role}}"}Task creation with validation, notification, and audit logging.
read on Projects. Verify project exists and is Active.{{steps.ValidateProject.result.status}} != 'Active'. If true → abort with "Project is not active".create on Tasks. Fields mapped from input: title, project, assignee, priority, due_date, estimate_hours. Status defaults to "Backlog".create on AuditTrail. Action: "create", entity_type: "task", entity_id: {{steps.CreateRecord.result.id}}.Scheduled flow (runs every 15 min) to poll external systems and sync data.
list on Integrations. Filter: status eq 'Active'. iterate=true — subsequent steps execute per integration.{{steps.ListActive.item.endpoint_url}}/api/sync. Headers include API key from encrypted column. Timeout: 30s.{{steps.CallExternal.result.statusCode}} == 200. True branch: update last_sync, reset error_count. False branch: increment error_count.update on Integrations. Fields vary based on if_block branch.*/15 * * * * — every 15 minutes.Aggregation flow powering the project dashboard via SSI.
{%raw%}{% for status in taskData %}...{% endfor %}{%endraw%}. Data bound from previous analyze steps.AI-powered chatbot for natural-language queries against project data.
list on chat session messages table. Filter by session ID. iterate=false, orderby: created_at asc.{{steps.LoadHistory.result.rows}}, prompt: {{input.userMessage}}.create. Save assistant response to messages table for conversation continuity.{{steps.AskAgent.result}} — returns AI response for SSI injection.External system connectivity architecture.
signatureType: 'hmac-sha256'YOUR_JIRA_API_TOKENsend step: task assignments, deadline reminders, weekly digestsimap_receive flow to process inbound support emails → auto-create taskssend_sms step (Twilio) for P0/P1 incidentsServer-rendered web application using FlowClick public folders and Server-Side Includes.
Application: Test └── Folder: public (isPublic: true, defaultDocument: index.html) ├── index.html // Dashboard — SSI includes DashboardAnalytics flow ├── login.html // Login form → UserLogin flow ├── projects.html // Project list — SSI + Pebble loop rendering ├── project-detail.html // Single project view with tasks ├── tasks.html // Task board — Kanban-style SSI rendering ├── chat.html // AI assistant — fetch() to AIAssistant flow ├── settings.html // Admin settings page └── Folder: assets ├── style.css // Shared stylesheet (File node) └── app.js // Client-side JavaScript (File node)
<!-- Dashboard: Server-rendered analytics cards --> <div class="dashboard"> <!--#include flow="DashboardAnalytics" --> </div> <!-- Login form: method=get for SSI parameter passing --> <form method="get"> <input name="email" type="email"> <input name="password" type="password"> <button>Sign In</button> </form> <!--#include flow="UserLogin" input='{"email":"","password":""}' --> <!-- Task list with pagination --> <!--#include flow="ListTasks" input='{"project":""}' page="1" page-size="20" --> <!-- AI Chat: Client-side fetch for JSON API --> <script> async function askAI(msg) { const res = await fetch( '/pub/FlowClick/Test/public/api/chat?msg=' + encodeURIComponent(msg) + '&raw=true' ); return res.text(); } </script> <!--#include flow="AIAssistant" input='{"userMessage":""}' response="json" -->
| URL Path | Content Node | Description |
|---|---|---|
/pub/FlowClick/Test/public/ | index.html | Dashboard (defaultDocument) |
/pub/FlowClick/Test/public/login.html | login.html | Authentication page |
/pub/FlowClick/Test/public/projects.html | projects.html | Project listing |
/pub/FlowClick/Test/public/tasks.html?project=X | tasks.html | Task board filtered by project |
/pub/FlowClick/Test/public/chat.html | chat.html | AI assistant interface |
Defense-in-depth security architecture.
crud_record filterpasswordMode: 'encrypt'signatureType: 'hmac-sha256' with a secret stored in YOUR_WEBHOOK_SECRET.Step-by-step deployment using FlowClick's blueprint import system.
// Single blueprint_import call creates the entire application: blueprint_import({ applicationName: "Test", databases: [{ name: "TestDB", tables: [ { name: "Users", columns: [...], sampleData: [...] }, { name: "Projects", columns: [...], sampleData: [...] }, { name: "Tasks", columns: [...], sampleData: [...] }, { name: "Integrations", columns: [...] }, { name: "AuditTrail", columns: [...] } ] }], flows: [ { name: "UserLogin", steps: [...] }, { name: "CreateTask", steps: [...] }, { name: "SyncIntegrations", steps: [...], schedules: [...] }, { name: "DashboardAnalytics", steps: [...] }, { name: "AIAssistant", steps: [...] } ], folders: [{ name: "public", isPublic: true, defaultDocument: "index.html", contents: [ { name: "index.html", contentType: "html", body: "..." }, { name: "login.html", contentType: "html", body: "..." }, // ... all pages ] }] })
Variables (Application-scoped): smtp_host = "smtp.provider.com" smtp_port = "587" smtp_user = "noreply@test.com" smtp_password = "***" // encrypted smtp_from = "noreply@test.com" JIRA_API_TOKEN = "***" // encrypted SLACK_WEBHOOK = "https://hooks.slack.com/..." WEBHOOK_SECRET = "***" // for HMAC verification
Groups: TestAdmins → full access (resource: "*", action: "*", effect: "allow") TestManagers → read/write projects, tasks, users TestDevelopers → read/write tasks, read projects TestViewers → read-only all tables Table Triggers: Users.onCreate → flow: AuditLog (action: "create", entity: "user") Tasks.onUpdate → flow: NotifyStatusChange (condition: status changed) Tasks.onCreate → flow: NotifyAssignee
execute_flowbundle_export for backup