ChatbotX
ChatbotX copied to clipboard
[broadcast] CRUD broadcast
DoD
Implement feature to CRUD broadcast base URL: https://chatrace.com/en/broadcast.php?acc=1629607
Choose inbox type
- list of inbox: filter inbox.chatbotId = current chatbot
- omnichannel: to send all inbox
Do not handle remain inbox
Database
model Broadcast
id cuid2
chatbotId string
broadcastType: whatsapp.xxx, whatsapp.yyy, omnichannel...
schedulesAt: datetime
contacts Contacts https://www.prisma.io/docs/orm/prisma-schema/data-model/relations/many-to-many-relations#implicit-many-to-many-relations
Notes
use <FlowSelect ... component for 👇