Hello I am implementing the live chat in React Native. However I found WebView a very complete solution, my question is Is it possible to add the user and email to the link we sent in the webview? That to user is able to start chating instead to fill the email and name?
In case that you would like to use the React Native as the implementation, updating customerâs data is not yet supported in a regular implementation but it can be done via alternative React Native installation method.
To attach other info to the link, like visitorâs name or email and the group in which the chat will start, the URL should look like this:
https://secure.livechatinc.com/licence/<LICENSE_ID>/open_chat.cgi?groups=XX&name=JohnDoe&email=test@test.test
You will need to load the name and email parameters from their db/app and add them to the link but it is possible
Awesome! Thank you for your detailed answer.
Hello
How do I create a custom field like name and email and send it as a URL param
Hello!
If you want to create a direct chat link, the random example would look like that:
https://secure.livechatinc.com/licence/<LICENSE_ID>/v2/open_chat.cgi?name=visitor&email=email@example.org
With this kind of link, you donât even have to use pre-chat survey
But if you have our standard widget implemented on your site in regular manner, youâd have to use those:
moreover, if you want to create custom fields, you can set it in the LiveChat settings.
Let me know if you have more questions!
How can I send group when Iâm using WebView on React Native?
Using like this does not work:
https://secure.livechatinc.com/licence/<LICENSE_ID>/open_chat.cgi?groups=XX&name=JohnDoe&email=test@test.test
I have to pass the name of group?
For example, if my group is called âBug problemâ what I have to write on the parameters?
Hi Matheus!
A link like this:
https://secure.livechatinc.com/licence/<license_id>/v2/open_chat.cgi?groups=2
leads to the group with ID â2â (I have tested that and can confirm)
Please make sure to use this exact format - as long as the link you implement in the webview loads the group you want,
it should be exactly the same in a webview.
If you find that the link you created does not lead to the specified group - please reach the support on our website, theyâll help you figure out what needs to be changed in your link so that it works perfectly for your use case.
Kind regards
And how to send a phoneNumber? I wanna pass throw this a name and Phone number as a question.
Hi!
The link currently only takes name and email as standard setters,
you can however pass a phone number as a custom variable like on the example from article below:
and the agent will be able to see this parameter during the chat.
Kind regards