whatsapp-web.js
whatsapp-web.js copied to clipboard
welcome message new conversation.
Is there an existing issue for this?
- [X] I have searched the existing issues
Is your feature request related to a problem? Please describe.
Hi guys, I hope you are well.
I've been racking my brains for days on how to send a welcome message to anyone who starts a new conversation.
This message I would like to put buttons, but this is not so important.
Could anyone of you show me how I can program a welcome message for whoever initiates a conversation?
I would like this message to be triggered only 1 time every 24 hours for new conversations.
Thank you very much in advance
Describe the solution you'd like.
This message I would like to put buttons, but this is not so important.
Could anyone of you show me how I can program a welcome message for whoever initiates a conversation?
I would like this message to be triggered only 1 time every 24 hours for new conversations.
Describe an alternate solution.
No response
Additional context
No response
I suggest you close the issues, it's not a problem in the lib. This type of question you ask on discord or do a search.
I would like to add to the @khaadaj 's comment, you could implement such behavior by using some sort of local database where you can track which conversations have been started already, and for every new conversation (a conversation that doesn't exist in your local database), you could send a personalized welcome message. You could also track their timestamps for re-sending the message (welcome greeting) every 24 hour.
Plase close the issue, as it is nor an issue or enhancement. Plaese refer to discord for questions
IMO, you have 2 options :
I personally prefer the number 1.
1 - Store all your contacts in a database and distinguish if they have already talked with a business or not.
2 - Check if the current conversation has messages or not and answer accordingly.
It would be great If you could gently close the issue as this is not an enhancement nor a bug.