chatbot

Facebook status update through php

不问归期 提交于 2019-11-29 13:59:40
问题 I want to develop a bot which will update the status of a facebook account using php. Please guide me on this 回答1: @Porkchop is correct, you will probably need the Facebook Connect API. To update a users status on Facebook, you should look at the Status.set API call. For coding a googletalk bot in php there are some articles that should get you started: Twitter PHP Jabber Bot Tutorial Jabber Simple - A PHP library But also consider using IMified, which does a lot of the work of creating and

How do I integrate AWS Lex chatbot to my website?

拥有回忆 提交于 2019-11-29 10:03:52
My website is doing customer service & support ticket system. But the way of integrating AWS lex seems not as easy as FB is. The thing I wanna do is letting Lex Bot reply tickets for the customer on my website. Do I need to learn AWS Lambda and API Gateway first for integrating Lex? I want to know how to call the lex bot API in PHP curl. As API Docs said. But I am not sure why the POST url is like a relative path. Anyway, thanks for the help. To integrate lex bot to website, you need to know about AWS Lex runtime API, AWS IAM and Cognito configuration. This is the most secure way to integrate

How can I use the same bot on multiple facebook pages using bot framework

可紊 提交于 2019-11-29 02:45:32
I have several facebook pages and I would like to run the same bot on each page. I am using the bot framework and everything works perfectly for one page now. How do I associate with multiple pages? Sorry if my answer is late You can very well handle all your page traffic through just one bot backend Create an fb app and select product as messenger Add webook config pointing to your bot Select all the pages you want to associate one by one And keep the page access token handy. Go and search page id in your fb page and keep it handy Either in constant or dB maintain page access token against

How to create a smart chat-bot? [closed]

▼魔方 西西 提交于 2019-11-28 15:39:13
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . I know that it's still an open problem so I don't expect to see complete answers here. I just want to find some approaches to solve the next problem: I have a model (assume that is's bot's memory), and different words are associated with different objects in the model. Speaking

How to troubleshoot this AWS lambda error - An error has occurred: Received error response from Lambda: Unhandled?

江枫思渺然 提交于 2019-11-28 13:59:46
I'm new to AWS. I'm build chatbot using aws lex and aws lambda c#. I'm using sample aws lambda C# program namespace AWSLambda4 { public class Function { /// <summary> /// A simple function that takes a string and does a ToUpper /// </summary> /// <param name="input"></param> /// <param name="context"></param> /// <returns></returns> public string FunctionHandler(string input, ILambdaContext context) { try { return input?.ToUpper(); } catch (Exception e) { return "sorry i could not process your request due to " + e.Message; } } } } I created a slot in aws lex to map first parameter input . But

Any tutorials for developing chatbots? [closed]

*爱你&永不变心* 提交于 2019-11-28 13:08:49
问题 As a engineering student, I would like to make a chat bot using python. So, I searched a lot but couldn't really find stuff that would teach me or give me some concrete information to build a intelligent chat bot. I would like to make a chatbot that gives human-like responses (Simply like a friend chatting with you). I am currently expecting it to be as just a software on my laptop (would like to implement in IM, IRC or websites later). So, I am looking for a tutorial/ any other information

Microsoft Bot (webchat channel): 500 Internal Server error: failed to send message

纵然是瞬间 提交于 2019-11-28 12:28:30
问题 We have embedded a Bot on a web page through the web chat channel, if the Bot is idle for 10 minutes or so and then a question is asked, the Bot does not respond to it, however when the same question is asked again immediately it responds as expected. On investigating the network capture, we observed the response received when the question was asked for the first time was 500: Internal Server Error with message as "failed to send message" 回答1: Are you running the bot in Azure? If so, make

How to fix issue related to 500 error code in web chat channel after clicking submit in Adaptive card in chatbot developed using V4 C#?

China☆狼群 提交于 2019-11-28 11:38:19
问题 How to fix the issue related to 500 error occurring in web chat channel after clicking submit button in Adaptive card in chat bot developed through V4 C#? Creating this new issue as suggested by @mdrichardson-msft as the issue is specific/other issues in below stack overflow question: Is there a way to enable calendar option as an input in V4 chat bot C# other than using Adaptive cards? Coming to my issue: I have a water fall dialog class where I am using Adaptive card to select date time

How to get the Facebook email of a user for a bot using bot framework?

风流意气都作罢 提交于 2019-11-28 10:21:27
问题 I have a bot that I am building with the help of the Microsoft Bot Framework. I can see that session.message.user.id gives us the user id and session.message.user.name gives us the user name but if I am to connect it with Facebook, how do I get the user's email? Thanks for your help in advance 回答1: The only way is to specifically ask the user for their email and then for example save it in user data in the bot. Facebook (luckily) doesn't give out users' emails to bots. A normal Facebook app,

set parameters in EventInput in Dialogflow V2 API

爷,独闯天下 提交于 2019-11-28 08:38:24
问题 I desperatly try to set parameters in a dialogflow.types.EventInput in python. This doc says the parameters need to be of type Struct . I read here that the parameters needs to be a google.protobuf.Struct. But it does not work for me. Is there another Struct type equivalent in python? If i send the EventInput without parameters, the intent is detected correctly. I tried this so far: import dialogflow_v2 as dialogflow session_client = dialogflow.SessionsClient() session = session_client