IDE Bot Builder

You may quickly develop bots on Gupshup.io using a tool called the Bot Builder. The Bot Builder, which greatly streamlines the process of creating a chatbot, contains a straightforward code editor, a publishing mechanism, and diagnostics software among other things.

Product Features

Setting up a development environment, installing libraries and packages, and creating your own server space are just a few of the typical steps involved in creating a bot. You can now concentrate on developing the logic for the bot because Gupshup has already taken care of all these time-consuming tasks. This is made possible by a few capabilities of the IDE Bot Builder. The pre-installed libraries, such as the node-wit and Javascript async libraries that are bundled with the code, come first. Additionally, it offers a terminal where you can use git commands to manage your codebase or to install new npm packages of your choosing. logging and debugging for bots. You will also see some sample code for typical procedures when creating a new bot. These include helper methods that are briefly described below and in more detail in the following guides.

Additionally, the IDE Bot Builder eliminates the requirement for your own server by enabling single-click safe server deployment for your chatbot. Automated hosting is offered by The IDE Bot Builder, which is built on top of Amazon AWS Lambda. You may test your chatbot using the Gupshup Proxy Bot after deployment. Here is a comprehensive manual on the Proxy Bot. Using the built-in chat widget provided by the IDE Bot Builder, you can also try out the conversational features of your chatbot.

Benefits

The IDE Bot Builder tool has a variety of advantages. Due to the fact that most of the tedious labor needed in building a working chatbot is automated, it is more effective and time-saving. Because it allows for quick testing and deployment, the IDE Bot Builder also cuts down on development time. Additionally, you can deploy to several messaging applications with a single click, eliminating the need to create separate API calls for the integration of every messaging app. Through the IDE Bot Builder, you can easily interface with other services such as an NLP tool. When you choose the endpoint where your bot logic is located using the 'Callback URL' option, you may control the custom hosting of your bot as an advanced user.

Methods provided by the IDE Bot Builder

There are eight methods given to a user. We'll briefly discuss what each method does.

  • MessageHandler(): This is the method that executes when your bot is communicated with. It has two parameters: 'context' and 'event'. You can parse what message was sent to your bot using 'event.message'. Your bot can then reply using the context.sendResponse property.
  • EventHandler(): This function is invoked when an event associated with a bot is triggered. Examples of events that are triggered are: someone joining a Facebook group or someone invoking a Proxy Bot. When you type in 'proxy {botName}' to map your bot to the Proxy Bot, the EventHandler function is invoked.
  • ScriptHandler(): This method is used to execute a bot-script specified in 'default.scr'.To learn about bot scripting, go here.
  • httpResponseHandler(): You can use HTTP GET and POST requests in your chatbot. The responses to any such HTTP call will be handled by the httpResponseHandler function.[optional]
  • DbGetHandler(): A method for database persistence. Use this method to query your database for any records.[optional]
  • DbPutHandler(): A method for database persistence. Use this method to insert records into your database.[optional]
  • HttpEndpointHandler(): A method to handle HTTP requests made to the public endpoint of the bot.[optional]
  • LocationHandler(): All the messages with type location can be handled by this function.[optional]

The next few guides will illustrate the process of building chatbots using the IDE Bot Builder. Next guide