Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2020-04-01 13:02:35

fredmonac
Member
Registered: 2020-04-01
Posts: 5

check for wildcard word in each conversation

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

#2 2020-04-01 14:39:37

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: check for wildcard word in each conversation

Can you give a little bit more info as to hard to understand your workflow and where you want this check?

Offline

#3 2020-04-01 14:44:26

fredmonac
Member
Registered: 2020-04-01
Posts: 5

Re: check for wildcard word in each conversation

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

#4 2020-04-01 15:24:28

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: check for wildcard word in each conversation

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

#5 2020-04-01 15:54:33

fredmonac
Member
Registered: 2020-04-01
Posts: 5

Re: check for wildcard word in each conversation

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

#6 2020-04-01 19:58:15

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: check for wildcard word in each conversation

Offline

#7 2020-04-02 16:26:53

fredmonac
Member
Registered: 2020-04-01
Posts: 5

Re: check for wildcard word in each conversation

Hello,

I will check it

Thanks a lot

I'll came back to you soon

Offline

Board footer