🤖 Chatbot's diary: Webhooks on localhost

There was one thing that always annoyed me when developing chatbots. It was webhooks. Messengers like Facebook, Viber or us (Amio) intent to push messages to your endpoint. However, the messengers can't reach your app when you specify the webhook URL as localhost. Of course, you can test your code…

🤖 Chatbot's diary: Enter the State pattern

Encapsulating states in objects will reduce your chatbot's complexity and will improve testability. I would like to demonstrate how to introduce more maintainability to your chatbots in case you decided to implement your chatbot as a state machine. We will work with a very small example - 3 states only.…

🚀New feature: node.js SDK

The server-side javascript SDK implements all common endpoints, webhooks, and an HTTP client so that you can focus more on business logic. We ourselves use Amio API on projects where messaging is necessary. We always ended up writing lots of boilerplate code for every new project that got copy pasted…

API providers, let’s report errors

How API providers should save our time. too long;didn’t read Properly implemented API error reporting speeds up the development and prevents potential bugs appearance. True story — time wasted Several months ago, we were integrating a 3rd party API to Amio.io. It was a regular connector. We picked…

🚀 New feature: event logs

Event logs show what happened to your webhooks and messages. You can find them in your channels. Until recently, our users had to reach support whenever the webhooks didn’t reach their servers. We were happy to help and searched through our logs to give them answers. You can imagine…

Setup Postman for Amio API

This tutorial will guide you through the setup of Postman to help you evaluate Amio API. Postman is a developer tool which makes it easy to invoke REST API requests and receive their responses. You can even use environment variables and quickly switch between different requests (which is kind of…