{"id":1373,"date":"2021-06-07T08:16:23","date_gmt":"2021-06-07T08:16:23","guid":{"rendered":"https:\/\/www.thecodehub.ie\/news\/?p=1373"},"modified":"2021-06-07T08:16:30","modified_gmt":"2021-06-07T08:16:30","slug":"build-your-own-questionbot","status":"publish","type":"post","link":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/07\/build-your-own-questionbot\/","title":{"rendered":"Build your own QuestionBot"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"alignleft size-medium is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1368\" data-permalink=\"https:\/\/www.thecodehub.ie\/news\/2021\/06\/03\/the-code-hub-adventures-new-swift-playgrounds\/matticon21\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/MattIcon21.png?fit=421%2C421&amp;ssl=1\" data-orig-size=\"421,421\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"MattIcon21\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/MattIcon21.png?fit=421%2C421&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/MattIcon21.png?resize=225%2C225&#038;ssl=1\" alt=\"\" class=\"wp-image-1368\" width=\"225\" height=\"225\" srcset=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/MattIcon21.png?resize=300%2C300&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/MattIcon21.png?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/MattIcon21.png?w=421&amp;ssl=1 421w\" sizes=\"auto, (max-width: 225px) 85vw, 225px\" \/><\/figure><\/div>\n\n\n\n<p>Happy <a href=\"http:\/\/developer.apple.com\/wwdc21\/\">WWDC<\/a>! It&#8217;s that magical time of year when developers working on Apple platforms have all their dreams come true!<\/p>\n\n\n\n<p>Well, okay, maybe not, but we get a very fun week of new tech and demos and excitement about the platform.<\/p>\n\n\n\n<p>If you&#8217;re watching all of this (or watching the people watching it and wondering what the heck is all the fuss about), we&#8217;ll probably have some words about it this week. But before that all kicks off, I threw a little playground up for you to experiment with, especially if you&#8217;re new to Swift, Apple&#8217;s programming language for iPhone, iPad, Mac, Apple Watch, and AppleTV apps.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">QuestionBot<\/h2>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright size-medium is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1220\" data-permalink=\"https:\/\/www.thecodehub.ie\/news\/2021\/02\/19\/teaching-develop-in-swift-march-2021-edition\/image-7-8\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/02\/image-7.png?fit=530%2C590&amp;ssl=1\" data-orig-size=\"530,590\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-7\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/02\/image-7.png?fit=530%2C590&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/02\/image-7.png?resize=135%2C150&#038;ssl=1\" alt=\"\" class=\"wp-image-1220\" width=\"135\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/02\/image-7.png?resize=269%2C300&amp;ssl=1 269w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/02\/image-7.png?w=530&amp;ssl=1 530w\" sizes=\"auto, (max-width: 135px) 85vw, 135px\" \/><\/figure><\/div>\n\n\n\n<p>There&#8217;s a really fun exercise in <a href=\"https:\/\/apple.co\/developinswiftexplorations\">Develop in Swift Explorations<\/a> called QuestionBot. In it, you build the brains of an app to answer whatever question a person might type in. You can make it super complicated, or very, very simple.<\/p>\n\n\n\n<p>We use this exercise during our <a href=\"https:\/\/www.thecodehub.ie\/news\/2021\/05\/19\/teaching-develop-in-swift-online-june-edition\/\">Teaching Develop in Swift online class<\/a>, and it&#8217;s usually impressive how different the apps can be.<\/p>\n\n\n\n<p>Well, now, even if you don&#8217;t have a Mac, you can play around with QuestionBot. I created a REPL on replit.com with some simple instructions so that you, too, can create a functioning QuestionBot. Try it out:<\/p>\n\n\n\n<p><a href=\"http:\/\/replit.com\/@mhanlon9\/questionbot\">http:\/\/replit.com\/@mhanlon9\/questionbot<\/a><\/p>\n\n\n\n<p>There are two files, just tap on the Code tab and you&#8217;ll see <code>main.swift<\/code> and <code>QuestionBot.swift<\/code>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1374\" data-permalink=\"https:\/\/www.thecodehub.ie\/news\/2021\/06\/07\/build-your-own-questionbot\/questionbotreplit\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/QuestionBotREPLIT.png?fit=1824%2C1120&amp;ssl=1\" data-orig-size=\"1824,1120\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"QuestionBotREPLIT\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/QuestionBotREPLIT.png?fit=840%2C516&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/QuestionBotREPLIT.png?resize=512%2C315&#038;ssl=1\" alt=\"\" class=\"wp-image-1374\" width=\"512\" height=\"315\" srcset=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/QuestionBotREPLIT.png?resize=1024%2C629&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/QuestionBotREPLIT.png?resize=300%2C184&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/QuestionBotREPLIT.png?resize=768%2C472&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/QuestionBotREPLIT.png?resize=1536%2C943&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/QuestionBotREPLIT.png?resize=1200%2C737&amp;ssl=1 1200w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/QuestionBotREPLIT.png?w=1824&amp;ssl=1 1824w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/QuestionBotREPLIT.png?w=1680&amp;ssl=1 1680w\" sizes=\"auto, (max-width: 512px) 85vw, 512px\" \/><\/figure><\/div>\n\n\n\n<p>Those show you the brains of our app.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignleft size-full is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1375\" data-permalink=\"https:\/\/www.thecodehub.ie\/news\/2021\/06\/07\/build-your-own-questionbot\/forkbutton\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/ForkButton.png?fit=194%2C88&amp;ssl=1\" data-orig-size=\"194,88\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ForkButton\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/ForkButton.png?fit=194%2C88&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/ForkButton.png?resize=146%2C66&#038;ssl=1\" alt=\"\" class=\"wp-image-1375\" width=\"146\" height=\"66\"\/><figcaption>The fork button<\/figcaption><\/figure><\/div>\n\n\n\n<p>If you want to edit the code, just tap on the Fork button, which will create a copy of the code. You need to create a free replit.com account or link it to your Google, Github, or Facebook account, if you have one.<\/p>\n\n\n\n<p>If you want to change QuestionBot&#8217;s behavior: how it asks questions and how it answers them, look in the QuestionBot.swift file.<\/p>\n\n\n\n<p>If you want to change something else about the program, maybe limit it to only allowing you to ask three questions, or only letting people ask it questions on a Thursday, you would edit the main.swift file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Coding for All<\/h2>\n\n\n\n<p>I really like replit.com because you can use it with any device, and it&#8217;s a great way to get an introduction to Swift before jumping in with an iPad or Mac.<\/p>\n\n\n\n<p>I&#8217;ll be recording a short video introducing the QuestionBot on replit.com in the near future, but in the meantime, good luck coding!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Happy WWDC! It&#8217;s that magical time of year when developers working on Apple platforms have all their dreams come true! Well, okay, maybe not, but we get a very fun week of new tech and demos and excitement about the platform. If you&#8217;re watching all of this (or watching the people watching it and wondering &hellip; <a href=\"https:\/\/www.thecodehub.ie\/news\/2021\/06\/07\/build-your-own-questionbot\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Build your own QuestionBot&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_price":"","_stock":"","_tribe_ticket_header":"","_tribe_default_ticket_provider":"","_tribe_ticket_capacity":"0","_ticket_start_date":"","_ticket_end_date":"","_tribe_ticket_show_description":"","_tribe_ticket_show_not_going":false,"_tribe_ticket_use_global_stock":"","_tribe_ticket_global_stock_level":"","_global_stock_mode":"","_global_stock_cap":"","_tribe_rsvp_for_event":"","_tribe_ticket_going_count":"","_tribe_ticket_not_going_count":"","_tribe_tickets_list":"[]","_tribe_ticket_has_attendee_info_fields":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Build your own QuestionBot.\nCelebrate #WWDC by trying your hand at some Swift code!","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[4,17],"tags":[],"class_list":["post-1373","post","type-post","status-publish","format-standard","hentry","category-programming","category-wwdc"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Build your own QuestionBot &#060; The Code Hub<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.thecodehub.ie\/news\/2021\/06\/07\/build-your-own-questionbot\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Build your own QuestionBot &#060; The Code Hub\" \/>\n<meta property=\"og:description\" content=\"Happy WWDC! It&#8217;s that magical time of year when developers working on Apple platforms have all their dreams come true! Well, okay, maybe not, but we get a very fun week of new tech and demos and excitement about the platform. If you&#8217;re watching all of this (or watching the people watching it and wondering &hellip; Continue reading &quot;Build your own QuestionBot&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.thecodehub.ie\/news\/2021\/06\/07\/build-your-own-questionbot\/\" \/>\n<meta property=\"og:site_name\" content=\"The Code Hub\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/thecodehub\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-07T08:16:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-07T08:16:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/MattIcon21-300x300.png\" \/>\n<meta name=\"author\" content=\"mhanlon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@thecodehubIE\" \/>\n<meta name=\"twitter:site\" content=\"@thecodehubIE\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"mhanlon\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/07\\\/build-your-own-questionbot\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/07\\\/build-your-own-questionbot\\\/\"},\"author\":{\"name\":\"mhanlon\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#\\\/schema\\\/person\\\/5a4e2bec3c92667356dda979a9f61fcd\"},\"headline\":\"Build your own QuestionBot\",\"datePublished\":\"2021-06-07T08:16:23+00:00\",\"dateModified\":\"2021-06-07T08:16:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/07\\\/build-your-own-questionbot\\\/\"},\"wordCount\":416,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/07\\\/build-your-own-questionbot\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/MattIcon21-300x300.png\",\"articleSection\":[\"Programming\",\"WWDC\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/07\\\/build-your-own-questionbot\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/07\\\/build-your-own-questionbot\\\/\",\"url\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/07\\\/build-your-own-questionbot\\\/\",\"name\":\"Build your own QuestionBot &#060; The Code Hub\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/07\\\/build-your-own-questionbot\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/07\\\/build-your-own-questionbot\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/MattIcon21-300x300.png\",\"datePublished\":\"2021-06-07T08:16:23+00:00\",\"dateModified\":\"2021-06-07T08:16:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/07\\\/build-your-own-questionbot\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/07\\\/build-your-own-questionbot\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/07\\\/build-your-own-questionbot\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/MattIcon21.png?fit=421%2C421&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/MattIcon21.png?fit=421%2C421&ssl=1\",\"width\":421,\"height\":421},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/07\\\/build-your-own-questionbot\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Build your own QuestionBot\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#website\",\"url\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/\",\"name\":\"The Code Hub\",\"description\":\"News from the Code Hub\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#organization\",\"name\":\"The Code Hub\",\"url\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/TheCodeHubLogo.001-copy.png?fit=226%2C264&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/TheCodeHubLogo.001-copy.png?fit=226%2C264&ssl=1\",\"width\":226,\"height\":264,\"caption\":\"The Code Hub\"},\"image\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"http:\\\/\\\/facebook.com\\\/thecodehub\",\"https:\\\/\\\/x.com\\\/thecodehubIE\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCx4bznoGDfjJRPfTa4LF9dA\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#\\\/schema\\\/person\\\/5a4e2bec3c92667356dda979a9f61fcd\",\"name\":\"mhanlon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g\",\"caption\":\"mhanlon\"},\"sameAs\":[\"https:\\\/\\\/www.thecodehub.ie\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Build your own QuestionBot &#060; The Code Hub","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/07\/build-your-own-questionbot\/","og_locale":"en_US","og_type":"article","og_title":"Build your own QuestionBot &#060; The Code Hub","og_description":"Happy WWDC! It&#8217;s that magical time of year when developers working on Apple platforms have all their dreams come true! Well, okay, maybe not, but we get a very fun week of new tech and demos and excitement about the platform. If you&#8217;re watching all of this (or watching the people watching it and wondering &hellip; Continue reading \"Build your own QuestionBot\"","og_url":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/07\/build-your-own-questionbot\/","og_site_name":"The Code Hub","article_publisher":"http:\/\/facebook.com\/thecodehub","article_published_time":"2021-06-07T08:16:23+00:00","article_modified_time":"2021-06-07T08:16:30+00:00","og_image":[{"url":"https:\/\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/MattIcon21-300x300.png","type":"","width":"","height":""}],"author":"mhanlon","twitter_card":"summary_large_image","twitter_creator":"@thecodehubIE","twitter_site":"@thecodehubIE","twitter_misc":{"Written by":"mhanlon","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/07\/build-your-own-questionbot\/#article","isPartOf":{"@id":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/07\/build-your-own-questionbot\/"},"author":{"name":"mhanlon","@id":"https:\/\/www.thecodehub.ie\/news\/#\/schema\/person\/5a4e2bec3c92667356dda979a9f61fcd"},"headline":"Build your own QuestionBot","datePublished":"2021-06-07T08:16:23+00:00","dateModified":"2021-06-07T08:16:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/07\/build-your-own-questionbot\/"},"wordCount":416,"commentCount":0,"publisher":{"@id":"https:\/\/www.thecodehub.ie\/news\/#organization"},"image":{"@id":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/07\/build-your-own-questionbot\/#primaryimage"},"thumbnailUrl":"https:\/\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/MattIcon21-300x300.png","articleSection":["Programming","WWDC"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.thecodehub.ie\/news\/2021\/06\/07\/build-your-own-questionbot\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/07\/build-your-own-questionbot\/","url":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/07\/build-your-own-questionbot\/","name":"Build your own QuestionBot &#060; The Code Hub","isPartOf":{"@id":"https:\/\/www.thecodehub.ie\/news\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/07\/build-your-own-questionbot\/#primaryimage"},"image":{"@id":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/07\/build-your-own-questionbot\/#primaryimage"},"thumbnailUrl":"https:\/\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/MattIcon21-300x300.png","datePublished":"2021-06-07T08:16:23+00:00","dateModified":"2021-06-07T08:16:30+00:00","breadcrumb":{"@id":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/07\/build-your-own-questionbot\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.thecodehub.ie\/news\/2021\/06\/07\/build-your-own-questionbot\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/07\/build-your-own-questionbot\/#primaryimage","url":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/MattIcon21.png?fit=421%2C421&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/MattIcon21.png?fit=421%2C421&ssl=1","width":421,"height":421},{"@type":"BreadcrumbList","@id":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/07\/build-your-own-questionbot\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.thecodehub.ie\/news\/"},{"@type":"ListItem","position":2,"name":"Build your own QuestionBot"}]},{"@type":"WebSite","@id":"https:\/\/www.thecodehub.ie\/news\/#website","url":"https:\/\/www.thecodehub.ie\/news\/","name":"The Code Hub","description":"News from the Code Hub","publisher":{"@id":"https:\/\/www.thecodehub.ie\/news\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.thecodehub.ie\/news\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.thecodehub.ie\/news\/#organization","name":"The Code Hub","url":"https:\/\/www.thecodehub.ie\/news\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.thecodehub.ie\/news\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2018\/02\/TheCodeHubLogo.001-copy.png?fit=226%2C264&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2018\/02\/TheCodeHubLogo.001-copy.png?fit=226%2C264&ssl=1","width":226,"height":264,"caption":"The Code Hub"},"image":{"@id":"https:\/\/www.thecodehub.ie\/news\/#\/schema\/logo\/image\/"},"sameAs":["http:\/\/facebook.com\/thecodehub","https:\/\/x.com\/thecodehubIE","https:\/\/www.youtube.com\/channel\/UCx4bznoGDfjJRPfTa4LF9dA"]},{"@type":"Person","@id":"https:\/\/www.thecodehub.ie\/news\/#\/schema\/person\/5a4e2bec3c92667356dda979a9f61fcd","name":"mhanlon","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g","caption":"mhanlon"},"sameAs":["https:\/\/www.thecodehub.ie"]}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9ABLU-m9","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts\/1373","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/comments?post=1373"}],"version-history":[{"count":1,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts\/1373\/revisions"}],"predecessor-version":[{"id":1376,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts\/1373\/revisions\/1376"}],"wp:attachment":[{"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/media?parent=1373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/categories?post=1373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/tags?post=1373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}