Posts

Showing posts from 2020

Create and deploy a Discord Bot

Image
Are you interested to make a custom bot for your discord server? Don't worry!! This post will walk you through the basic steps of designing a simple bot using Node.Js. Note: Your machine should have a NodeJs of version like 12.x.x. I recommend Visual Studio editor due to the inbuilt powershell feature which makes designing and testing quite easy. Let's start by creating a discord application  as shown in the picture. Consider a discord developer application as a project. After creating the application, discord gives access to use the resources for our project/application. After this a box will be prompted on the screen as below. Type a name which suits your motive of designing the discord bot. I will just name it "Test". Now in the left panel select Bot. Create a bot by clicking Add Bot > Yes, do it! Let's switch to the editor now to design our custom bot. Open a blank directory where you want to design the bot. Open Visual Studio Code in this directory. Open a

Understanding and building Dialogflow agents to handle custom intents

Image
The  reason why we need Dialogflow is to build a conversational experience do some arbitrary actions like calling an external API and fetching the result. Google assistant is an artificially intelligent virtual assistant and so it is responsible for understanding natural language. First, google assistant matches an agent according to the information it receives from a user(action intent). For example, if someone says "fix an appointment for eye checkup" matches to some agent then that agent will be invoked in the following conversation. The following figure shows a very clear picture of what happens under the hood when we try to invoke an action. After being associated with the action the respective agent will be responsible to provide a conversational experience to the user. Having understood the basic process behind google assistant and dialogflow integrations, its time to turn the attention towards building an action. First, create a new agent for your