botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
66 stars 81 forks source link

How to send the user input text to the API #836

Closed ThiliSew closed 4 years ago

ThiliSew commented 4 years ago

I'm new to the botpress and I want to search for details according to the user input. In my scenario user has to enter the product name which he wants to know, my chat has to grab that input and pass it through skill API call to API and match this input with data in the JSON file. If there is matching data, chat has to display it into the user. If not, chat has to send a contact number to the user.

I'll be thankful if anyone can helps me to solve this issue. Thank you

allardy commented 4 years ago

Hello @ThiliSew, inside an action you can use either event.preview or event.payload.text to get what was typed by the user.

You can also use the NLU to extract the informations using slots and entities and with the slot filling skill .

ThiliSew commented 4 years ago

BotService Cannot mount bot

Sir can you help me to solve this issue. I have created expo (bot1) and the next day it shows BotService Cannot mount bot "expo". Make sure it exists on the filesytem or the database. [Error, connect ECONNREFUSED 127.0.0.1:80] After I cannot solve this, I created expo 2( 2nd bot) and today I receive the same issue. [BotService Cannot mount bot "expo-2". Make sure it exists on the filesytem or the database. [Error, connect ECONNREFUSED 127.0.0.1:80]

I'll be thankful you can give me an answer to this issue.

Thank you

On Mon, Oct 21, 2019 at 12:58 PM Yann Allard notifications@github.com wrote:

Hello @ThiliSew https://github.com/ThiliSew, inside an action you can use either event.preview or event.payload.text to get what was typed by the user.

You can also use the NLU to extract the informations using slots and entities https://botpress.io/docs/next/main/nlu#slots and with the slot filling https://botpress.io/docs/next/tutorials/skill-slot#docsNav skill .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/botpress/v12/issues/836?email_source=notifications&email_token=ANPMHO3ZNPVYFLZABQEPMFDQPYCURA5CNFSM4JCCIHYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB3S3EA#issuecomment-544681360, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANPMHOYBOWCPZJJYTFBMRTDQPYCURANCNFSM4JCCIHYA .

crixx commented 4 years ago

@allardy | @slvnperron I think this issue can be closed since both topics are adressed in the forum:

https://help.botpress.io/t/how-to-send-the-user-input-text-to-the-api/2426?u=crixx https://help.botpress.io/t/cannot-mount-the-bot/2486?u=crixx

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

epaminond commented 4 years ago

Tried to reproduce this issue earlier but wasn't able to. So closing this.