Complex Logic using Functions

While a no code bot builder might solve most of business requirement, however to manage complex business operations, you need functions.

Chat icon

Functions are one of the fundamental building blocks in JavaScript. A function in JavaScript is similar to a procedure—a set of statements that performs a task or calculates a value, but for a procedure to qualify as a function, it should take some input and return an output where there is some obvious relationship between the input and the output. To use a function, you must define it somewhere in the scope from which you wish to call it. 

Bot functions are also similar but we use those functions to make bot more dynamic and to connect with customers' existing APIs.

Function Builder on Konverse AI
Function Builder on Konverse AI

On our platform the initial Function is already added which has Bot’s Context & Session.

Follow these steps to add function on our platform-

  1. Go to Bot Builder present on Left Navigation Bar
  2. Then select Functions, this will take you to the Function Screen
  3. On the Left hand side you’ll find Add Function Button
  4. Click on that and add your Javascript code
  5. Name the function and Save it.
  6. You can also customize the theme of the panel to Light or Dark as per your wish.
Name the Files with reference to its Function rather than naming it randomly. Also it makes developers' jobs easier to recognize the correct file.
Info icon
Search icon

Looking for something else?

If you are looking for additional information, type your query in the search.
Email icon

Still need help?

Feel free to write to us if you've any additional queries to be be answered.
Contact support