# A CRM board (kanban)

Customers or tickets as cards in columns, moved by people and kept in step with Rabt.

## Goal

Customers or tickets as cards in columns, moved by people and kept in step with Rabt.

## The prompt

```text
Build me a kanban board of my tickets with the columns Open, In progress and Closed. When a card moves between columns, change the ticket’s status in Rabt. Refresh the board by reading only the changes since the last refresh. Try it with a test key.
```

## What your agent does

- Contacts: `search_contacts`, `get_contact`, `update_contact` and `add_contact_note`; segments: `list_segments` and `list_segment_contacts`.
- Tickets as cards: `search_tickets` (by status, assignee, space, channel and `updated_since`). A move between columns is `change_ticket_status` (a ticket’s status changes only by this action), and `assign_ticket` serves an owner column.
- Columns from Rabt: statuses, spaces, tags and classification options.

## Recommendations

1. First load: `search_tickets` with the filters, then follow `next_cursor` until it is empty.
2. Keep the newest `updated_at` you saw. On every refresh read `search_tickets` with `updated_since` set to it, and redraw only those cards.
3. A write (move, assign, note) answers the new state: update the card from it without a re-read.

## Pitfalls

- No webhook reaches a page or artifact: read with `updated_since`. A server of yours can take `ticket.*` events instead.
- Field selection is only `detail` set to `brief` (the default) or `full`.

> **Recommendation:** Build and check everything with a test key (`rbk_test_…`): sends are simulated, nothing is charged and nothing reaches a customer.

> **Limits:** Rabt has no board object: you keep the columns and the card order, and Rabt stores the status, assignee, tag or option.
