{
    "version" : "https://jsonfeed.org/version/1",
    "content" : "news",
    "type" : "single",
    "title" : "The Data Briefing: How to Build a Chatbot in a Weekend |Digital.gov",
    "description": "The Data Briefing: How to Build a Chatbot in a Weekend",
    "home_page_url" : "/preview/gsa/digitalgov.gov/bc-archive-content-3/","feed_url" : "/preview/gsa/digitalgov.gov/bc-archive-content-3/2017/09/27/data-briefing-how-build-a-chatbot-in-a-weekend/index.json","item" : [
    {"title" :"The Data Briefing: How to Build a Chatbot in a Weekend","summary" : "As chatbots have become more popular, some online sites will let you create a chatbot with little or no programming.","date" : "2017-09-27T15:40:00-04:00","date_modified" : "2025-01-27T19:42:55-05:00","authors" : {"bbrantley" : "Bill Brantley"},"topics" : {
        
            "artificial-intelligence" : "Artificial intelligence",
            "communication" : "Communication",
            "content-strategy" : "Content strategy",
            "emerging-tech" : "Emerging tech",
            "research" : "Research",
            "robotic-process-automation" : "Robotic process automation",
            "social-media" : "Social media",
            "software-engineering" : "Software engineering"
            },"featured_image" : { "uid" :
  "Cropped-chatbot-technology-concept-on-electric-circuit-background-surrounded-by-related-ai-and-chat-icons-zapp2photo-istock-thinkstock-676338286", "alt" :
  "Chatbot technology concept on electric circuit background surrounded by related AI and chat icons" },"branch" : "bc-archive-content-3",
      "filename" :"2017-09-27-data-briefing-how-build-a-chatbot-in-a-weekend.md",
      
      "filepath" :"news/2017/09/2017-09-27-data-briefing-how-build-a-chatbot-in-a-weekend.md",
      "filepathURL" :"https://github.com/GSA/digitalgov.gov/blob/bc-archive-content-3/content/news/2017/09/2017-09-27-data-briefing-how-build-a-chatbot-in-a-weekend.md",
      "editpathURL" :"https://github.com/GSA/digitalgov.gov/edit/bc-archive-content-3/content/news/2017/09/2017-09-27-data-briefing-how-build-a-chatbot-in-a-weekend.md","slug" : "data-briefing-how-build-a-chatbot-in-a-weekend","url" : "/preview/gsa/digitalgov.gov/bc-archive-content-3/2017/09/27/data-briefing-how-build-a-chatbot-in-a-weekend/","content" :"\u003cp\u003eThe best way to learn a new technical skill is to just play around with the technology. Learning through playing with technology goes for building websites, mobile apps, and now, chatbots. As chatbots have become more popular, some online sites will let you create a chatbot with little or no programming. Now, realize that the easier it is to create the chatbot, the less sophisticated the chatbot will be. However, you may not need a sophisticated chatbot that can handle almost any situation.\u003c/p\u003e\n\n\n\n\n\n\n\n\u003cdiv class=\"image\"\u003e\n  \u003cimg\n        src=\"https://s3.amazonaws.com/digitalgov/cropped-chatbot-technology-concept-on-electric-circuit-background-surrounded-by-related-ai-and-chat-icons-zapp2photo-istock-thinkstock-676338286.jpg\"alt=\"Chatbot technology concept on electric circuit background surrounded by related AI and chat icons\"/\u003e\u003c/div\u003e\n\n\n\u003cp\u003eTechnically, you can build a \u003ca href=\"https://www.youtube.com/watch?v=mD6I1dXgzvA\"\u003ebasic chatbot in about 10 to 15 minutes\u003c/a\u003e. I used \u003ca href=\"https://chatfuel.com\"\u003eChatFuel\u003c/a\u003e to build a Facebook chatbot. ChatFuel is free and has a drag-and-drop builder platform. You create text blocks of responses you can link to respond to user messages. ChatFuel provides an \u003ca href=\"/preview/gsa/digitalgov.gov/bc-archive-content-3/topics/artificial-intelligence/\"\u003eartificial intelligence\u003c/a\u003e (AI) service you can add to your chatbot so it will respond to key terms or phrases. So, if it takes only 15 minutes to build a chatbot, why spend the weekend?\u003c/p\u003e\n\u003cp\u003eYou spend most of the weekend creating the conversational routines for the chatbot. Creating conversational routines starts with determining what the purpose of the chatbot is regarding the conversational flow and user journey. For my test chatbot, I decided that the goal of the chatbot is to educate users on leadership development concepts and techniques. I visually mapped out the most common leadership development concepts, questions, and expected conversation paths. You do this in ChatFuel by creating blocks. In other chatbot programming languages, you can set up a database or use an AI service like IBM’s \u003ca href=\"https://www.ibm.com/watson/\"\u003eWatson\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eFor your first chatbot, you will want to keep it simple. So, you will want to build a chatbot that is “\u003ca href=\"https://chatbotslife.com/seven-things-i-learned-making-a-chatbot-b744d54b65c9\"\u003eon the rails\u003c/a\u003e”—conversations that guide the user down pre-defined queries. The alternative is a more responsive chatbot that uses heavy-duty AI to handle more spontaneous user conversations. For our weekend project, stay on the rails. That means focusing on one task for the chatbot and prevent conversational dead ends. Building good chatbot conversations requires careful scripting (like the scripting you see in movies; not programming).\u003c/p\u003e\n\n\n\n\n\n\n\n\u003cdiv class=\"image\"\u003e\n  \u003cimg\n        src=\"https://s3.amazonaws.com/digitalgov/chat-bot-and-human-message-conversation-concept-screen-zapp2photo-istock-thinkstock-680288346.jpg\"alt=\"Chatbot and human conversation messages.\"/\u003e\u003c/div\u003e\n\n\n\u003cp\u003eAs another chatbot developer explains, “\u003ca href=\"https://chatbotsmagazine.com/how-to-write-winning-dialogue-for-conversational-ui-26744031dd65\"\u003e[e]very sentence has to drive the conversation forward and bring the user closer to his goal\u003c/a\u003e.” You want to create a persona for your chatbot that uses dialogue to advance the customer journey while understanding the context of the user’s requests. Think of scenarios and flowchart the conversations from the \u003cem\u003equery-response-second query-second response\u003c/em\u003e and so on.\u003c/p\u003e\n\u003cp\u003eFor example, let’s consider my leadership development chatbot. An obvious question would be, “what is leadership development.” I would prepare a response that can then branch off to “why is leadership development important” or “how are leaders developed” or “how do I develop myself as a leader” questions. Each of the previous questions will break off into their conversational paths. Where you stop depends on how many topics seem a natural fit for your users. As your chatbot interacts with users, you will create more topics and conversation paths based on user feedback.\u003c/p\u003e\n\u003cp\u003eThe final part to scripting is handling user queries you do not expect. Chatbots should have a repertoire of responses that tells users when the chatbot does not know the answer or doesn’t understand the question. ChatFuel has a default response block built for these occasions.\u003c/p\u003e\n\u003cp\u003eSo, here is a fun weekend project that can teach you more about the exciting technology of chatbots while giving you some experience in building \u003ca href=\"https://medium.com/cbc-digital-labs/5-must-read-articles-about-conversational-user-interface-d32799051b7c\"\u003eConversational User Interfaces\u003c/a\u003e. Even if you do not build another chatbot, I hope this project gives you greater insight into how chatbots work and the importance of scripting the user journey. As the federal government adopts more chatbots to serve the American public better, you might have to help craft the customer’s journeys for the chatbots. Building your chatbot will help you better understand how to script effective customer journeys.\u003c/p\u003e\n\u003cp\u003eTo connect with other federal employees experimenting with or successfully working with chatbots, check out and join our some of our \u003ca href=\"/preview/gsa/digitalgov.gov/bc-archive-content-3/communities/\"\u003eCommunities of Practice\u003c/a\u003e, such as the Web Content Managers Forum, MobileGov, SocialGov, User Experience (UX), or Artificial Intelligence for Citizen Services.\u003c/p\u003e\n\u003chr\u003e\n\u003cp\u003e\u003cstrong\u003eDisclaimer\u003c/strong\u003e: All references to specific products, brands, and/or companies are used only for illustrative purposes and do not imply endorsement by the U.S. federal government or any federal government agency.\u003c/p\u003e\n\u003cp\u003e\u003cem\u003eEach week, \u003ca href=\"/preview/gsa/digitalgov.gov/bc-archive-content-3/topics/emerging-tech/\"\u003eThe Data Briefing\u003c/a\u003e showcases the latest federal data news and trends. Visit this blog every week to learn how data is transforming government and improving government services for the American people. If you have ideas for a topic or have questions about government data, please \u003ca href=\"mailto:William.Brantley@uspto.gov?subject=The%20Data%20Briefing\"\u003econtact me via email\u003c/a\u003e.\u003c/em\u003e\u003c/p\u003e\n\u003cp\u003e\u003cem\u003e\u003ca href=\"/preview/gsa/digitalgov.gov/bc-archive-content-3/authors/bbrantley/\"\u003eDr. William Brantley\u003c/a\u003e is the Training Administrator for the U.S. Patent and Trademark Office’s Global Intellectual Property Academy. All opinions are his own and do not reflect the opinions of the USPTO or GSA.\u003c/em\u003e\u003c/p\u003e\n"}
  ]
}
