Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions
You are not logged in.
Hello,
I try to cacht up any sentence starting by 250 followed by 12 digits
Then catch that number into a variable to call a webservice with it and display the result in the chatbox
Is it possible ?
Offline
Can you give a little bit more info as to hard to understand your workflow and where you want this check?
Offline
OK
My user will say "Where is my parcel" then I need to tirgger him to a new step wich will ask him "What is your parcel number ?"
Then he must answer by something like "250006123456789, or 250-006-12345679" so I need to check if 250 is there and then get the full number to send it to a webservice.
I woud like to display the webservice answer.
Offline
It should be something similar to this.
https://github.com/LiveHelperChat/lhcgooglesuggest
If you can wait i would prepare boilerplate for this scenario on friday.
Offline
Hello
I will check this, and wait until friday.
I try with intent detection but it is not working, nothing happend.
Here is the code of the trigger
[
{
"_id": "Vw3ilW8Ra",
"type": "text",
"content": {
"text": "Bienvenue sur le support en ligne de DPD France, \n\nComment puis-je vous aider ?\n"
}
},
{
"_id": "lDTdl4P07",
"type": "intent",
"content": {
"text": "",
"intents": [
{
"_id": "wSgxwZla8",
"type": "intent",
"content": {
"words": "Colis, colis",
"trigger_id": "16",
"exec_insta": false
}
}
]
}
}
]
Offline
Sample extension.
https://github.com/LiveHelperChat/lhcparcel
Offline
Hello,
I will check it
Thanks a lot
I'll came back to you soon
Offline