Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions
You are not logged in.
Hello i am triying to use a custom atributte in the chat and after that use it to call a REST api, I can get the attributte perfectly because I am seyying it on the operators chat, But I dond way I can use it like a REST parameter?
Is this possible?
Thanks in advance.
Offline
By reading documentation...
https://doc.livehelperchat.com/docs/bot … -variables
https://doc.livehelperchat.com/docs/bot … identifier
E.g
{{lhc.add.order_number}}
Offline
Can Is use for example {{lhc.add.order_number}} in Rest Api trigeer method?
Offline
I’m not sure about what part you are talking exactly. Paste a screenshot.
Offline
Hello FEX1980, did you solve the problem?
I am also not able to use custom variables.
If so how did you do it?
Thank you.
Offline
Yes, It's pretty easy you only need to change how to call the variable you only need to change your variable name for exampe if your varibale name is number you has tu us it in the rest api call {{lhc.add.number}}, that is all
Offline
I created a simple REST AP that returns the headers. When trying to pass a variable in the header my return was like this
{"key": "meyKey", "value": "{{lhc.add.order_number}}"} did not get the variable's value. Where can my mistake be? Can you pass an example?
Thank you very much.
Offline
Look, what variables to extract from rest api you define in your rest api calls. Later these are available as {content_1} {content_2 and so on. So you use these in triggers themself.
And just watch youtube videos i have prepared...
Offline
I've watched the videos, tried in many ways but I really don't know the point I'm missing. Whenever I try to get the value of the variable it never brings the value always returns "{{lhc.add.variablename}}".
Thank you very much for your help.
Offline
1. Is this variable set in lhc itself it's additional variable. Do you see it in the chat?
2. Where are you trying to bring it rest api call? trigger or where?
Offline
I didn't use the variable in the header i am using it on the address like a new param
Offline