Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(crisp): add crisp chatbox for connected agents #2561

Draft
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

Holist
Copy link
Collaborator

@Holist Holist commented Jan 10, 2025

close #2542

On initialise Crisp pour permettre aux agents de chatter directement avec le support.

Techniquement

https://docs.crisp.chat/guides/chatbox-sdks/web-sdk/dollar-crisp/
https://docs.crisp.chat/guides/chatbox-sdks/web-sdk/session-continuity/

J'ajoute un contrôleur stimulus qui va initialiser le script Crisp avec les données de l'agent (prénom+nom, email et token de la conversation).
On créé un token unique pour l'agent (en se basant sur son email) qui permettra de récupérer la conversation correspondante quand il se reconnectera. Dans le cas ou un autre agent se connecte sur la même machine il initialisera Crisp avec ses informations d'agent et passera sur sa propre conversation.
On change bien de conversation quand on change d'agent connecté (ou en impersonate).

@Holist Holist self-assigned this Jan 10, 2025
@Holist Holist marked this pull request as draft January 10, 2025 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Support] Installation chatbox Crisp
1 participant