Block · Collaboration
Comments
Adds a comment table attached to one of your tables (tasks, posts, lessons, listings) and a CommentThread component: replies nest under the comment they answer, typing @ suggests people to mention, authors can edit and delete their own comments, and new comments appear for everyone without a refresh. People are told in-app when they are mentioned or someone replies to them. Staff get a moderation list.
use_template { slug: "comments" } adds
- Tables
- comment
- Components
- CommentThread
- Pages
- /discussion, /comments-admin
- Workflows
- comment-notify
- Rules
- 4 on comment
What it adds to your app
Table comment: subject, parent, author, body, mentions. CommentThread component (threads, @mentions, edit, delete, live). A Discussion page and a staff moderation list. One workflow: notify mentions and replies.
Tables
commentsubject_id, parent_id, author_id, body, mentions, edited_at, organisation_id
Pages
/discussionDiscussion (‹author_role›)/comments-adminComments (@staff)
Workflows
comment-notifyTell people they were mentioned or replied to. On comment created
Components
CommentThreadThreaded comments on one ‹attach_to› with replies, @mentions, edit and delete, updating live
Rules on every write
commentWrite something before you post.commentA reply belongs to the same thread as the comment it answers.commentA comment keeps its author.commentA comment belongs to the organisation of what it's about.
Where it attaches
Params point the template at your own tables and roles. Leave out the ones with defaults; a wrong one is refused with the options your app has.
| Param | What it is | Example |
|---|---|---|
attach_to | The table whose records people comment on. | task |
author_role | The role whose people write comments (their own table is the author). Optional. | member |
org_field | Optional: the ref on that table naming its organisation (from organisations-and-teams). Comments then belong to that organisation and only its members read them. Optional. | organisation_id |
Use with your coding agent
- Connect the Appbricx MCP server to Claude Code, Cursor or any MCP client (quickstart).
- Paste the prompt. The agent reads the template, previews the merge with dry_run and shows you the diff.
- It applies to dev. Check it, then deploy when you are happy.
Add the Comments template (slug "comments") to my Appbricx project. Read it with get_template, run use_template with dry_run first and show me the diff, then apply it. Ask me where it attaches if you can't tell from my contract (attach_to: comment on; author_role: who comments; org_field: organisation (optional)).{
"tool": "use_template",
"arguments": {
"slug": "comments",
"project_id": "<your project id>",
"params": {
"attach_to": "task",
"author_role": "member",
"org_field": "organisation_id"
},
"dry_run": true
}
}appbricx templates use comments --param attach_to=task --param author_role=member --param org_field=organisation_id --dry-runGoes well with
Organisations and teams
Block. Let people create organisations, form teams, invite colleagues by email and give them owner, admin or member roles.
organisationteammembershipinvitation‹attach_to›.organisation_idBooking calendar
Block. Bookable time slots with capacity, a day picker, my bookings with cancel, and rules that stop double-booking.
slotreservationSlotPickerMyReservationsreservation-countStripe subscriptions
Block. Monthly or yearly plans paid through Stripe Checkout, with a billing page and Stripe's own billing settings.
plansubscriptionBillingPanelsubscription-checkoutstripe-subscription-events