{"id":1429,"date":"2016-10-13T10:38:42","date_gmt":"2016-10-13T08:38:42","guid":{"rendered":"https:\/\/wordlift.io\/?p=1429"},"modified":"2024-09-05T16:40:52","modified_gmt":"2024-09-05T14:40:52","slug":"build-your-first-bot-wordpress","status":"publish","type":"post","link":"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/","title":{"rendered":"Build Your first Bot powered by WordPress"},"content":{"rendered":"<p class=\"p1\"><span class=\"s1\">Few weeks ago I did a very basic experiment to create, for one of our test websites, a <b><a class=\"wl-entity-page-link\" title=\"Internet bot\" href=\"https:\/\/wordlift.io\/blog\/en\/entity\/internet-bot\/\" data-id=\"http:\/\/data.wordlift.io\/wl0216\/entity\/internet_bot;http:\/\/rdf.freebase.com\/ns\/m.05c5js;http:\/\/yago-knowledge.org\/resource\/Internet_bot;http:\/\/dbpedia.org\/resource\/Internet_bot;http:\/\/de.dbpedia.org\/resource\/Bot;http:\/\/ru.dbpedia.org\/resource\/\u0420\u043e\u0431\u043e\u0442_(\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430);http:\/\/fi.dbpedia.org\/resource\/Botti;http:\/\/pt.dbpedia.org\/resource\/Bot;http:\/\/bg.dbpedia.org\/resource\/\u0411\u043e\u0442;http:\/\/lt.dbpedia.org\/resource\/Botas_(programa);http:\/\/hr.dbpedia.org\/resource\/Bot;http:\/\/fr.dbpedia.org\/resource\/Bot_informatique;http:\/\/uk.dbpedia.org\/resource\/\u0420\u043e\u0431\u043e\u0442_(\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0430);http:\/\/sk.dbpedia.org\/resource\/Internetov\u00fd_robot;http:\/\/sr.dbpedia.org\/resource\/\u0411\u043e\u0442;http:\/\/sv.dbpedia.org\/resource\/Bot_(program);http:\/\/en.dbpedia.org\/resource\/Internet_bot;http:\/\/it.dbpedia.org\/resource\/Bot;http:\/\/es.dbpedia.org\/resource\/Bot;http:\/\/cs.dbpedia.org\/resource\/Internetov\u00fd_bot;http:\/\/pl.dbpedia.org\/resource\/Bot_(program);http:\/\/da.dbpedia.org\/resource\/Bot;http:\/\/nl.dbpedia.org\/resource\/Bot_(computerprogramma);http:\/\/tr.dbpedia.org\/resource\/Bot_(robot)\" >bot<\/a> on <a class=\"wl-entity-page-link\"  href=\"https:\/\/wordlift.io\/blog\/en\/entity\/telegram\/\" data-id=\"http:\/\/data.wordlift.io\/wl0216\/entity\/telegram;http:\/\/pl.dbpedia.org\/resource\/Telegram;http:\/\/fr.dbpedia.org\/resource\/Telegram_(application)\" >Telegram<\/a><\/b><\/span> and to <i>feed it with data coming from their WordPress website<\/i>.<\/p>\n<p class=\"p1\"><span class=\"s1\"><a href=\"http:\/\/camminandocon.org\/\">Camminando Con<\/a> is a trekking organization,&nbsp;offering&nbsp;hiking tours in a small valley one hour from Rome and the content structure of their website reflects their simple business model. They use WordLift to structure this content in a way that allows them to exploit it in several ways.&nbsp;<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">WordLift helps digital editors organizing and structuring the content of a website. WordLift creates open <a class=\"wl-entity-page-link\" title=\"dataset\" href=\"https:\/\/wordlift.io\/blog\/en\/entity\/dataset\/\" data-id=\"http:\/\/data.wordlift.io\/wl0216\/entity\/dataset;http:\/\/rdf.freebase.com\/ns\/m.02cck;http:\/\/yago-knowledge.org\/resource\/Data_set;http:\/\/dbpedia.org\/resource\/Data_set;http:\/\/de.dbpedia.org\/resource\/Dataset;http:\/\/pt.dbpedia.org\/resource\/Conjunto_de_dados;http:\/\/en.dbpedia.org\/resource\/Data_set;http:\/\/it.dbpedia.org\/resource\/Dataset;http:\/\/es.dbpedia.org\/resource\/Conjunto_de_datos;http:\/\/cs.dbpedia.org\/resource\/Dataset;http:\/\/pl.dbpedia.org\/resource\/Zbi\u00f3r_danych;http:\/\/nl.dbpedia.org\/resource\/Dataset\" >datasets<\/a> of all the <i>things <\/i>that matter and publishes them as <i>open data<\/i><\/span>.<\/p>\n<p class=\"p1\"><span class=\"s1\"><img decoding=\"async\" class=\"alignleft wp-image-4066\" src=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/website-content-structure-768x684.png\" alt=\"Website Content Structure | WordLift\" width=\"366\" height=\"326\" srcset=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/website-content-structure-768x684.png 768w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/website-content-structure-768x684-300x267.png 300w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/website-content-structure-768x684-150x134.png 150w\" sizes=\"(max-width: 366px) 100vw, 366px\" \/>Presenting&nbsp;their excursions &#8211;&nbsp;structured by WordLift&nbsp;as <i>events <\/i>using the schema.org vocabulary &#8211; they describe all the sites&nbsp;they visit on their tours &#8211; represented as <i>places <\/i>in <span class=\"s2\"><a href=\"http:\/\/schema.org\">schema.org<\/a><\/span>&nbsp;&#8211;&nbsp;so that anyone, by reading their site, can get a good understanding of the upcoming events and the territory they will explore.<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">This structured data is then connected&nbsp;through WordLift&#8217;s interactive map and discovery&nbsp;widgets that allow<\/span>&nbsp;their users to explore related content.<\/p>\n<p class=\"p1\"><span class=\"s1\">Once the content work is done, they promote it via&nbsp;their website and an active Facebook page. I thought I could add a new interaction channel to their communication plan, leveraging the knowledge graph they create&nbsp;event after event.&nbsp;<\/span><\/p>\n<h4 class=\"p1\">Let&#8217;s build the Bot<\/h4>\n<p class=\"p1\"><span class=\"s1\">Telegram is a messaging platform similar to WhatsApp, WeChat or Facebook Messenger that lets users communicate in groups or one-to-one. I\u2019ve chosen Telegram because&nbsp;chat-bots can be easily created: you simply chat with another Bot called the \u2018BothFather\u2019 (just look for it and add it to your contact list) and your automata will be ready to go in a second. Here are the steps you need to follow: <\/span><\/p>\n<p><span class=\"s1\">BotFather supports several commands; to create a new Bot open a chat with him and send the <em>\/newbot<\/em> command.<\/span><\/p>\n<p style=\"text-align: center\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4068\" src=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/botfather-1.png\" alt=\"Bot Father\" width=\"728\" height=\"177\" srcset=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/botfather-1.png 728w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/botfather-1-300x73.png 300w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/botfather-1-150x36.png 150w\" sizes=\"(max-width: 728px) 100vw, 728px\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-4069 aligncenter\" src=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/botfather.png\" alt=\"Bot Father\" width=\"773\" height=\"169\" srcset=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/botfather.png 773w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/botfather-300x66.png 300w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/botfather-768x168.png 768w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/botfather-150x33.png 150w\" sizes=\"(max-width: 773px) 100vw, 773px\" \/><\/p>\n<p class=\"p1\"><span class=\"s1\">Take note of the API key (token) and remember&nbsp;that a bot always uses a user name ending in <\/span><span class=\"s4\">bot <\/span><span class=\"s1\">(i.e. WordLift<i>Bot<\/i>).<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\"><img decoding=\"async\" class=\"size-full wp-image-4070 alignleft\" src=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/Telegram-300x256.png\" alt=\"Telegram Camminando Con | WordLift\" width=\"300\" height=\"256\" srcset=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/Telegram-300x256.png 300w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/Telegram-300x256-150x128.png 150w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/>Now&nbsp;create a new public (or private)<span class=\"Apple-converted-space\">&nbsp;<\/span>channel and add the bot as administrator of the channel (the bot does\u2019t appear in the list of friend so you will need to remember its name and type it &#8211; WordLift<i>Bot <\/i>in our case).<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">Your&nbsp;Bot is now the admin of the chat channel. Not bad in just few minutes, right? What\u2019s next? <\/span><\/p>\n<p class=\"p1\">Next we need to get an update every time a new event is published on the CamminandoCon website. In the CamminandoCon website, as seen earlier, events are constantly updated to promote the upcoming hiking tours and every event focuses on 3 or 4 locations at the time (villages or point of interests that will be seen while walking).<\/p>\n<p class=\"p1\"><span class=\"s1\">To recall their events&nbsp;we are going to use an HTTP end-point that WordLift adds to every website:&nbsp;<\/span><em><span class=\"s4\">http:\/\/&lt;yourwebsite&gt;\/wl_entity_type\/event<\/span><\/em><span class=\"s1\"><\/span>; through this end-point we can get an ordered list of all the events published on the site; adding&nbsp;<em><span class=\"s4\">\/feed\/<\/span><\/em><span class=\"s1\"> to this URL (<\/span><span class=\"s4\"><em>http:\/\/&lt;yourwebsite&gt;\/wl_entity_type\/event\/feed<\/em>)&nbsp;<\/span><span class=\"s1\">the list is automatically converted by WordPress into an <a class=\"wl-entity-page-link\" title=\"Web feed\" href=\"https:\/\/wordlift.io\/blog\/en\/entity\/web-feed\/\" data-id=\"http:\/\/data.wordlift.io\/wl0216\/entity\/web_feed;http:\/\/rdf.freebase.com\/ns\/m.035c93;http:\/\/yago-knowledge.org\/resource\/Web_feed;http:\/\/dbpedia.org\/resource\/Web_feed;http:\/\/dbpedia.org\/resource\/RSS\" >RSS feed<\/a> that we can use with our Bot.&nbsp;<\/span><\/p>\n<p><span class=\"s1\"><span class=\"s1\"><img decoding=\"async\" class=\"size-full wp-image-4071 alignright\" src=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/ifttt.png\" alt=\"IFTTT Command\" width=\"210\" height=\"48\" srcset=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/ifttt.png 210w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/ifttt-150x34.png 150w\" sizes=\"(max-width: 210px) 100vw, 210px\" \/>To glue our Telegram Bot with the RSS feed coming from WordLift &#8211; <i>without writing a single line of code<\/i><\/span><\/span> &#8211; I used <a class=\"wl-entity-page-link\" title=\"IFTTT Inc\" href=\"https:\/\/wordlift.io\/blog\/en\/entity\/ifttt\/\" data-id=\"http:\/\/data.wordlift.io\/wl0216\/entity\/ifttt;http:\/\/rdf.freebase.com\/ns\/m.0kg0763;http:\/\/dbpedia.org\/resource\/IFTTT\" >IFTTT<\/a>. Get a login there (if you don&#8217;t have one already) and create a new recipe IF &gt; Feed adding the RSS feed generated by WordLift.<\/p>\n<p>The THEN part is a Maker (a simple app that lets you send web requests to publicly available APIs) and here is how to configure it:<br \/>\n<img decoding=\"async\" class=\"size-full wp-image-4072 aligncenter\" src=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/ifttt-2.png\" alt=\"IFTTT Recipe | WordLift\" width=\"447\" height=\"407\" srcset=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/ifttt-2.png 447w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/ifttt-2-300x273.png 300w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/ifttt-2-150x137.png 150w\" sizes=\"(max-width: 447px) 100vw, 447px\" \/><\/p>\n<p class=\"p2\"><span class=\"s1\">Last, y<\/span><span class=\"s1\">ou have to use the API key received by the Bot Father and add it before the <\/span><em><span class=\"s4\">\/sendMessage<\/span><\/em><span class=\"s1\"> as shown above (<\/span><span class=\"s4\"><em>https:\/\/api.telegram.org\/&lt;your-api-key&gt;\/sendMessage<\/em>). <\/span><span class=\"s1\">The method is set to <\/span><span class=\"s4\">POST <\/span><span class=\"s1\">and the Content Type is <\/span><span class=\"s4\"><em>application\/x-www-form-urlencoded<\/em>. T<\/span><span class=\"s1\">he Body contains the actual message that the Bot shall send. Here we can see we\u2019re asking to send the update in the <em>@<\/em><\/span><em><span class=\"s4\">CamminandoCon <\/span><\/em><span class=\"s1\">channel and the text is a combination of elements derived from the RSS feed such as the<em> Title<\/em>, the <em>URL<\/em><\/span> and the <em>Image<\/em>.<\/p>\n<p class=\"p2\"><span class=\"s1\">Here is the result as seen on the Telegram desktop client.<\/span><\/p>\n<p class=\"p2\"><img decoding=\"async\" class=\"size-full wp-image-4073 aligncenter\" src=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/telegram-3.png\" alt=\"Telegram | WordLift\" width=\"591\" height=\"240\" srcset=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/telegram-3.png 591w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/telegram-3-300x122.png 300w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/telegram-3-150x61.png 150w\" sizes=\"(max-width: 591px) 100vw, 591px\" \/><\/p>\n<p class=\"p2\">Happy Bot development!<\/p>\n<p class=\"p2\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Few weeks ago I did a very basic experiment to create, for one of our test websites, a bot on Telegram and to feed it with data coming from their WordPress website. Camminando Con is a trekking organization,&nbsp;offering&nbsp;hiking tours in a small valley one hour from Rome and the content structure of their website reflects &hellip; <a href=\"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/\">Continued<\/a><\/p>\n","protected":false},"author":6,"featured_media":18511,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"wl_entities_gutenberg":"","_wlpage_enable":"","footnotes":""},"categories":[3],"tags":[],"wl_entity_type":[30],"coauthors":[],"class_list":["post-1429","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordlift","wl_entity_type-article"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Build Your first Bot by WordPress -<\/title>\n<meta name=\"description\" content=\"Let\u2019s build the Bot, here is a a very basic experiment to create, for one of our test websites, a bot on Telegram\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Build Your first Bot by WordPress -\" \/>\n<meta property=\"og:description\" content=\"Let\u2019s build the Bot, here is a a very basic experiment to create, for one of our test websites, a bot on Telegram\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"WordLift Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-10-13T08:38:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-05T14:40:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/82.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Andrea Volpini\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Andrea Volpini\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/\"},\"author\":{\"name\":\"Andrea Volpini\",\"@id\":\"https:\/\/wordlift.io\/blog\/en\/#\/schema\/person\/574352082cc71dab8d164410f1cabe0a\"},\"headline\":\"Build Your first Bot powered by WordPress\",\"datePublished\":\"2016-10-13T08:38:42+00:00\",\"dateModified\":\"2024-09-05T14:40:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/\"},\"wordCount\":751,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/wordlift.io\/blog\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/82.jpg\",\"articleSection\":[\"wordlift\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/\",\"url\":\"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/\",\"name\":\"Build Your first Bot by WordPress -\",\"isPartOf\":{\"@id\":\"https:\/\/wordlift.io\/blog\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/82.jpg\",\"datePublished\":\"2016-10-13T08:38:42+00:00\",\"dateModified\":\"2024-09-05T14:40:52+00:00\",\"description\":\"Let\u2019s build the Bot, here is a a very basic experiment to create, for one of our test websites, a bot on Telegram\",\"breadcrumb\":{\"@id\":\"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/#primaryimage\",\"url\":\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/82.jpg\",\"contentUrl\":\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/82.jpg\",\"width\":1200,\"height\":675,\"caption\":\"Bot powered by WordPress\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/wordlift.io\/blog\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Build Your first Bot powered by WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wordlift.io\/blog\/en\/#website\",\"url\":\"https:\/\/wordlift.io\/blog\/en\/\",\"name\":\"WordLift Blog\",\"description\":\"AI-Powered SEO\",\"publisher\":{\"@id\":\"https:\/\/wordlift.io\/blog\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wordlift.io\/blog\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/wordlift.io\/blog\/en\/#organization\",\"name\":\"WordLift\",\"url\":\"https:\/\/wordlift.io\/blog\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wordlift.io\/blog\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/mk0wordliftblog7j5te.kinstacdn.com\/wp-content\/uploads\/sites\/3\/2017\/04\/logo-1.png\",\"contentUrl\":\"https:\/\/mk0wordliftblog7j5te.kinstacdn.com\/wp-content\/uploads\/sites\/3\/2017\/04\/logo-1.png\",\"width\":152,\"height\":40,\"caption\":\"WordLift\"},\"image\":{\"@id\":\"https:\/\/wordlift.io\/blog\/en\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/wordlift.io\/blog\/en\/#\/schema\/person\/574352082cc71dab8d164410f1cabe0a\",\"name\":\"Andrea Volpini\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wordlift.io\/blog\/en\/#\/schema\/person\/image\/466a1652833e48ca11c81b363eba7c25\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6b9d3d311b50a8749201fe4b318907a8?s=96&d=mm&r=pg\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6b9d3d311b50a8749201fe4b318907a8?s=96&d=mm&r=pg\",\"caption\":\"Andrea Volpini\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Build Your first Bot by WordPress -","description":"Let\u2019s build the Bot, here is a a very basic experiment to create, for one of our test websites, a bot on Telegram","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:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"Build Your first Bot by WordPress -","og_description":"Let\u2019s build the Bot, here is a a very basic experiment to create, for one of our test websites, a bot on Telegram","og_url":"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/","og_site_name":"WordLift Blog","article_published_time":"2016-10-13T08:38:42+00:00","article_modified_time":"2024-09-05T14:40:52+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/82.jpg","type":"image\/jpeg"}],"author":"Andrea Volpini","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Andrea Volpini","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/#article","isPartOf":{"@id":"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/"},"author":{"name":"Andrea Volpini","@id":"https:\/\/wordlift.io\/blog\/en\/#\/schema\/person\/574352082cc71dab8d164410f1cabe0a"},"headline":"Build Your first Bot powered by WordPress","datePublished":"2016-10-13T08:38:42+00:00","dateModified":"2024-09-05T14:40:52+00:00","mainEntityOfPage":{"@id":"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/"},"wordCount":751,"commentCount":0,"publisher":{"@id":"https:\/\/wordlift.io\/blog\/en\/#organization"},"image":{"@id":"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/82.jpg","articleSection":["wordlift"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/","url":"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/","name":"Build Your first Bot by WordPress -","isPartOf":{"@id":"https:\/\/wordlift.io\/blog\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/82.jpg","datePublished":"2016-10-13T08:38:42+00:00","dateModified":"2024-09-05T14:40:52+00:00","description":"Let\u2019s build the Bot, here is a a very basic experiment to create, for one of our test websites, a bot on Telegram","breadcrumb":{"@id":"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/#primaryimage","url":"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/82.jpg","contentUrl":"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2016\/10\/82.jpg","width":1200,"height":675,"caption":"Bot powered by WordPress"},{"@type":"BreadcrumbList","@id":"https:\/\/wordlift.io\/blog\/en\/build-your-first-bot-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/wordlift.io\/blog\/en\/"},{"@type":"ListItem","position":2,"name":"Build Your first Bot powered by WordPress"}]},{"@type":"WebSite","@id":"https:\/\/wordlift.io\/blog\/en\/#website","url":"https:\/\/wordlift.io\/blog\/en\/","name":"WordLift Blog","description":"AI-Powered SEO","publisher":{"@id":"https:\/\/wordlift.io\/blog\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wordlift.io\/blog\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wordlift.io\/blog\/en\/#organization","name":"WordLift","url":"https:\/\/wordlift.io\/blog\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wordlift.io\/blog\/en\/#\/schema\/logo\/image\/","url":"https:\/\/mk0wordliftblog7j5te.kinstacdn.com\/wp-content\/uploads\/sites\/3\/2017\/04\/logo-1.png","contentUrl":"https:\/\/mk0wordliftblog7j5te.kinstacdn.com\/wp-content\/uploads\/sites\/3\/2017\/04\/logo-1.png","width":152,"height":40,"caption":"WordLift"},"image":{"@id":"https:\/\/wordlift.io\/blog\/en\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/wordlift.io\/blog\/en\/#\/schema\/person\/574352082cc71dab8d164410f1cabe0a","name":"Andrea Volpini","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wordlift.io\/blog\/en\/#\/schema\/person\/image\/466a1652833e48ca11c81b363eba7c25","url":"https:\/\/secure.gravatar.com\/avatar\/6b9d3d311b50a8749201fe4b318907a8?s=96&d=mm&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6b9d3d311b50a8749201fe4b318907a8?s=96&d=mm&r=pg","caption":"Andrea Volpini"}}]}},"_wl_alt_label":[],"wl:entity_url":"http:\/\/data.wordlift.io\/wl0216\/post\/build_your_first_bot_powered_by_wordpress","_links":{"self":[{"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/posts\/1429"}],"collection":[{"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/comments?post=1429"}],"version-history":[{"count":1,"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/posts\/1429\/revisions"}],"predecessor-version":[{"id":27741,"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/posts\/1429\/revisions\/27741"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/media\/18511"}],"wp:attachment":[{"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/media?parent=1429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/categories?post=1429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/tags?post=1429"},{"taxonomy":"wl_entity_type","embeddable":true,"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/wl_entity_type?post=1429"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/coauthors?post=1429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}