chatwoot-flutter-sdk
chatwoot-flutter-sdk copied to clipboard
Document existing architecture
Todo:
- [x] Document the existing API calls in the SDK and the overall flow.
- [x] Create a flow chart of the existing flow
- [x] Update the flow based on missing pieces
Document the existing API calls in the SDK and the overall flow.
- ChatwootChatDialog.show() opens the widget and will create a new contact.
- Sending a messsage will call action createMessage().
- Message received will call getContact() and getConversations().
- Opennig SDK with previous conversation will call getAllMessages() and getContact().
- updateContact() and updateMessage() actions is there but i think it is not used.
Create a flow chart of the existing flow
New conversation
Previous conversation
Update the flow based on missing pieces
After merging this https://github.com/chatwoot/chatwoot-flutter-sdk/pull/20 PR, the flow LGTM.