Why it's not responding to everyone?įacebook has a review process for chat bots. My Facebook messenger bot responds to my messages only.
Check this guide to see how to write integration tests and run automated tests locally. Integration tests can be a bit more complex if you have some integrations with external or AWS services. The most important thing is to design testable Lambda functions, this guide will help you to do that. Your chat bot is just a Lambda function, which means it is just a simple JavaScript function and you should be able to, at least in theory, run everything locally as simple automated tests.
Deploy it with -version test to create a separate test environment directly in AWS Lambda. Claudia Bot Builder doesn't have a stand-alone http server in the background (such as Express, Hapi, etc.), instead it uses API Gateway and it's not trivial to simulate similar environment locally. See the Chat-Bots section of the Claudia.js example projects list Frequently asked questions
This code is enough to operate bots for all supported platforms. exports = botBuilder ( function ( message ) ) Const botBuilder = require ( 'claudia-bot-builder' ) const excuse = require ( 'huh' ) module.