@duvandroid/react-blind-agents 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +86 -11
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -475,7 +475,14 @@ app.post('/webhooks/blind-agents', async (req, res) => {
475
475
  'ticket.created': `🎫 *New ticket:* <${data.page_url}|${data.title}> — ${data.priority} priority`,
476
476
  'ticket.status_changed': `🔄 *Ticket updated:* ${data.title} → ${data.status}`,
477
477
  'ticket.resolved': `✅ *Ticket resolved:* ${data.title}`,
478
+ 'ticket.closed': `🔒 *Ticket closed:* ${data.title}`,
478
479
  'contact.created': `👤 *New contact:* ${data.name} (${data.email})`,
480
+ 'contact.updated': `✏️ *Contact updated:* ${data.name}`,
481
+ 'contact.assigned': `📋 *Contact assigned:* ${data.name}`,
482
+ 'contact.tag_added': `🏷️ *Tag added:* ${data.tag} → ${data.contact_id}`,
483
+ 'contact.comment_added': `💬 *New comment on contact:* ${data.content}`,
484
+ 'conversation.created': `💬 *New conversation started*`,
485
+ 'conversation.closed': `🔒 *Conversation closed*`,
479
486
  };
480
487
 
481
488
  await fetch(SLACK_URL!, {
@@ -573,8 +580,11 @@ Add a **Respond to Webhook** node at the end — Response Code `200`. Without it
573
580
  | `ticket.created` | Create Jira / Linear issue |
574
581
  | `ticket.created` (high priority) | Send Gmail alert to on-call |
575
582
  | `ticket.resolved` | Append row to Google Sheet |
576
- | `contact.created` | Sync contact to HubSpot / Mailchimp |
577
583
  | `ticket.status_changed` | Update Notion database row |
584
+ | `contact.created` | Sync contact to HubSpot / Mailchimp |
585
+ | `contact.tag_added` | Enroll contact in an email sequence |
586
+ | `contact.comment_added` | Log internal notes to Notion |
587
+ | `conversation.closed` | Trigger a CSAT survey email |
578
588
  | Any event | POST to Zapier catch hook for further routing |
579
589
 
580
590
  ### Self-hosting n8n with Docker
@@ -603,15 +613,74 @@ Every event sends this JSON body:
603
613
  "id": "evt_01HXYZ...",
604
614
  "event": "ticket.created",
605
615
  "created_at": "2026-04-09T03:00:00Z",
606
- "data": {
607
- "id": "tkt_01HXYZ...",
608
- "title": "Button not working on checkout",
609
- "status": "open",
610
- "priority": "high",
611
- "type": "bug",
612
- "contact": { "name": "Jane Doe", "email": "jane@example.com" },
613
- "page_url": "https://yoursite.com/checkout"
614
- }
616
+ "data": { ... }
617
+ }
618
+ ```
619
+
620
+ The `data` shape depends on the event type:
621
+
622
+ **Ticket events** (`ticket.created`, `ticket.status_changed`, `ticket.resolved`, `ticket.closed`)
623
+
624
+ ```json
625
+ {
626
+ "id": "uuid",
627
+ "org_id": "uuid",
628
+ "contact_id": "uuid or null",
629
+ "title": "Button not working on checkout",
630
+ "description": "Steps to reproduce...",
631
+ "status": "open",
632
+ "priority": "high",
633
+ "type": "bug",
634
+ "page_url": "https://yoursite.com/checkout",
635
+ "created_at": "2026-04-09T03:00:00+00:00",
636
+ "updated_at": "2026-04-09T03:00:00+00:00"
637
+ }
638
+ ```
639
+
640
+ For `ticket.status_changed`, `ticket.resolved`, and `ticket.closed`, the payload also includes:
641
+
642
+ ```json
643
+ {
644
+ "previous_status": "open",
645
+ "changed_by_id": "uuid or null"
646
+ }
647
+ ```
648
+
649
+ **Contact events** (`contact.created`, `contact.updated`, `contact.assigned`)
650
+
651
+ ```json
652
+ {
653
+ "contact_id": "uuid",
654
+ "email": "jane@example.com",
655
+ "name": "Jane Doe",
656
+ "phone": "1234567890"
657
+ }
658
+ ```
659
+
660
+ For `contact.assigned`, the payload also includes:
661
+ ```json
662
+ {
663
+ "assigned_to_id": "uuid or null"
664
+ }
665
+ ```
666
+
667
+ **Contact tag events** (`contact.tag_added`, `contact.tag_removed`)
668
+
669
+ ```json
670
+ {
671
+ "contact_id": "uuid",
672
+ "tag": "vip"
673
+ }
674
+ ```
675
+
676
+ **Contact comment event** (`contact.comment_added`)
677
+
678
+ ```json
679
+ {
680
+ "contact_id": "uuid",
681
+ "comment_id": "uuid",
682
+ "author_id": "uuid",
683
+ "content": "Followed up via email."
615
684
  }
616
685
  ```
617
686
 
@@ -620,11 +689,17 @@ Every event sends this JSON body:
620
689
  | Event | Fired when |
621
690
  |---|---|
622
691
  | `ticket.created` | A new ticket is submitted |
623
- | `ticket.status_changed` | Ticket status is updated |
692
+ | `ticket.status_changed` | Ticket status is updated (any change) |
624
693
  | `ticket.resolved` | Ticket is marked resolved |
625
694
  | `ticket.closed` | Ticket is closed |
626
695
  | `contact.created` | A new contact is registered |
696
+ | `contact.updated` | Contact profile fields are edited |
697
+ | `contact.assigned` | Contact is assigned to a team member |
698
+ | `contact.tag_added` | A tag is added to a contact |
699
+ | `contact.tag_removed` | A tag is removed from a contact |
700
+ | `contact.comment_added` | An internal comment is posted on a contact |
627
701
  | `conversation.created` | A new chat conversation starts |
702
+ | `conversation.closed` | A conversation is closed |
628
703
 
629
704
  ---
630
705
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duvandroid/react-blind-agents",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "React component for the Blind Agents pixel widget — bug reporter, webchat, and product guides.",
5
5
  "author": "Blind Agents <hola@blindagents.com>",
6
6
  "license": "MIT",
@@ -57,4 +57,4 @@
57
57
  "tsup": "^8.5.0",
58
58
  "typescript": "^5.0.0"
59
59
  }
60
- }
60
+ }