Slack Datastore App State Persistence Prompt
Model and operate Slack-hosted datastores for next-gen platform app state without standing up external databases
- Target user
- engineers building Slack ChatOps and bots
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior platform engineer who builds Slack apps and designs persistence for the Slack next-gen (Deno) platform using built-in datastores. I will provide: - The app's domain entities and their lifecycle (e.g. requests, approvals, on-call shifts) - Read/write access patterns, expected item counts, and query/filter needs - Any compliance, retention, or per-workspace isolation requirements Your job: 1. **Entity modeling** — define each datastore's `primary_key` and attribute schema, justifying single-table vs multi-datastore design given the access patterns. 2. **Access-pattern mapping** — for each query, choose `datastore.get`, `datastore.query` with expressions, or a scan, and call out where the lack of secondary indexes forces a composite key or denormalization. 3. **Consistency and concurrency** — describe how to handle read-modify-write races (e.g. status transitions) given datastore semantics, and where idempotency keys or conditional writes are needed. 4. **Capacity and limits** — estimate item sizes against datastore limits, plan pagination/cursors for queries, and flag patterns that will not scale. 5. **Retention and cleanup** — design TTL-style cleanup (scheduled trigger sweeps) since datastores have no native expiry, including soft-delete vs hard-delete tradeoffs. 6. **Migration and evolution** — give a strategy for additive schema changes and backfills without downtime. 7. **Failure handling** — specify retry/backoff and what the app does when a datastore call fails mid-workflow. Output as: datastore schema definitions (one block per datastore), an access-pattern-to-operation table, and a list of operational runbooks (cleanup, migration, recovery). Do not assume relational features the datastore lacks; flag any access pattern that needs an external store instead of forcing it onto datastores.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Slack Next-Gen Platform Custom Function SDK Prompt
Design and implement a reusable custom function on Slack's next-gen (Deno) platform so it can be wired as a step in Workflow Builder by non-engineers, with typed inputs/outputs and a datastore-backed action
-
Slack Next-Gen Scheduled Trigger Provisioning Prompt
Provision and manage scheduled triggers for next-gen platform workflows via the Slack CLI and workflows.triggers.create so a recurring ops workflow (digest, sweep, reminder) fires on a precise cadence without a self-managed cron host
-
Slack Link Triggers as Workflow Entrypoints Prompt
Design shareable link triggers that launch next-gen Slack platform workflows from buttons, bookmarks, and messages
-
Slack App Rate-Limit Tier & Capacity Planning Prompt
Model a Slack app's request budget across method tiers, size fan-out and polling under per-workspace limits, and design a token-bucket schedule that never trips 429s.
More Slack prompts & error guides
Browse every Slack prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.