Create a bot that shares weather info from API call.

Introduction

Right weather information can save the day. A call sharing such important details is of great help. Let’s see how to simply automate it with bots using DialSense.

Create a new bot

  1. Click on the drop-down beside Agents from the left panel. Select Bots.

    Dashboard view

  2. A list of previously created bots appears. Click on the Add button.

    Bots list page

  3. The section to add a new bot appears. Select the Campaign to which the new bot should be assigned.

    New bot creation page

  4. Enter the other required information. Set the Conversation Starter to hello_intent and click on the Save button.

    Enter bot details

Add post function

  1. A new bot is created. Click on Functions tab above and then go to the Post tab. Define the API call function and click on Save.
    Create post function

Customize the new bot

  1. Now click on Flow to manage how the bot interacts and responds.

    Bot homepage

  2. The first intent hello_intent is already created for you. Double click it to edit.

    Bot flow management page

  3. You can either change the Inputs/Outputs or simply let them remain unchanged.

    Save intent changes

  4. Click on the Save button whenever you’re done editing an intent.

    Save intent changes

  5. Now click the green + button to add more intents. You can drag the intents to a different place using the sign beside the intent.

    Add more intents

  6. Change the Intent Name, add some fresh Inputs and Outputs.

    Output for new intent

  7. Click on the Save button.

    Save button

  8. Similarly add more intents like one for replying with the weather information. Add relevant outputs, select the Post Intent Function and click on the Save button.

    Yes intent input

  9. The last intent should be named exit_intent and it is alright for an intent to have empty inputs.

    The exit intent

  10. Now that all intents are created and visibly placed, click on the yellow bar below the intent and drag to connect to the green bar above the next intent to form a graph. Click on the blue save button on the left to save the entire graph.

    Create connected graph

Deploy the new bot

  1. Click on the Publish tab above and finally click on the blue Publish button to deploy the bot.
    Deploy the new bot

Test the new bot

  1. Click on the Test button on the top right corner of the publish page. Enter your message and let the conversation flow.
    Test the new bot

Conclusion

We see how simply we can create our very first bot. More complex graphs can be formed for advanced bots. If the flow doesn’t go as intended, we can test it and adjust the graph accordingly.