Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next Update Request: Match at least 2 words #340

Open
arifemreeryilmaz opened this issue Jan 10, 2023 · 1 comment
Open

Next Update Request: Match at least 2 words #340

arifemreeryilmaz opened this issue Jan 10, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@arifemreeryilmaz
Copy link

In an unread message, if 2 or more words that I have pre-determined match, I want to create an appropriate response.

Example:
1- When the word "hello" is used in a sentence, I created an answer as "hello to you too".

2- When the word "cargo" is used in a sentence, I created an answer as "you can track your cargo on our website".

In this case, when I receive a message like the one below, there is a lack of addressing my customer. If the customer writes "Hello, how can I track my shipment?, the bot will simply reply "Hello to you too" or "You can track your shipment on our website".

However, I would like the words "hello" and "cargo" to be matched, and then to respond as "Hello to you too, you can track your cargo on our website". How can I determine the answer given when 2 or more words match?

@arifemreeryilmaz arifemreeryilmaz added the enhancement New feature or request label Jan 10, 2023
@arifemreeryilmaz arifemreeryilmaz changed the title Determine the response when at least 2 or more of the added words match Next Update Request: Match at least 2 words Jan 10, 2023
@vasani-arpit
Copy link
Owner

vasani-arpit commented Nov 2, 2023

        {
            "contains": ["cargo","shipment","track"],
            "exact": [],
            "response": "check this URL.... "
        }

contains block takes multiple words any of the one word is matched then it will reply with response block.

ideally if there are multiple matches bot should reply with both possible responses. but I need to test/confirm that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants