<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Nahu</title>
    <description>The latest articles on Forem by Nahu (@nahu).</description>
    <link>https://forem.com/nahu</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F20280%2F0a88c89a-1d53-4c08-8331-e3b858d09c83.jpg</url>
      <title>Forem: Nahu</title>
      <link>https://forem.com/nahu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/nahu"/>
    <language>en</language>
    <item>
      <title>Dev.to/Twilio Hackathon: Rocket Launch bot (RELEASE!)</title>
      <dc:creator>Nahu</dc:creator>
      <pubDate>Sun, 26 Apr 2020 19:45:10 +0000</pubDate>
      <link>https://forem.com/nahu/dev-to-twilio-hackathon-rocket-launch-bot-release-3149</link>
      <guid>https://forem.com/nahu/dev-to-twilio-hackathon-rocket-launch-bot-release-3149</guid>
      <description>&lt;p&gt;Special thanks to Dev.to and Twilio for my first hackathon! This was a fun experience and a great excuse to be productive in these trying times!&lt;br&gt;
I'm looking forward for more!&lt;/p&gt;

&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;I built a rocket launch bot that you can contact via SMS! The scope of the project was to find an implementation for the Java wrapper I built a while ago.&lt;/p&gt;

&lt;p&gt;With Twilio's Autopilot this was not super difficult to implement!&lt;br&gt;
So much for my first entry onto a Dev.to hackathon (apart from Hacktoberfest).&lt;/p&gt;

&lt;h4&gt;
  
  
  Category Submission:
&lt;/h4&gt;

&lt;p&gt;Well, my project would fall into the &lt;em&gt;Interesting Integrations&lt;/em&gt; category.&lt;br&gt;
This project was an excuse to implement my wrapper onto something!&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo Link
&lt;/h2&gt;

&lt;p&gt;Messaging &lt;strong&gt;+1 863 869 3995&lt;/strong&gt; should trigger the collect task to demo the project, unless my credits run out this should work!&lt;/p&gt;

&lt;h2&gt;
  
  
  Link to Code
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/NahuLD/launch-twilio-bot"&gt;Project&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How I built it (what's the stack? did I run into issues or discover something new along the way?)
&lt;/h2&gt;

&lt;p&gt;I used Twilio's Java SDK. SparkJava for the web-hooks and my Java wrapper for LaunchLibrary.net (thanks a lot!).&lt;/p&gt;

&lt;p&gt;At the beginning I was thinking about directly parsing the data myself by triggering the web-hook as soon as a message was received (using a Messaging Service that would directly link to my endpoint). But after looking into Twilio's resources I found Autopilot, a great feature that uses a sort of ChatBot to parse the messages and detect intent!&lt;/p&gt;

&lt;p&gt;This made my project 10 times easier! Big thanks to Twilio!&lt;/p&gt;

&lt;h2&gt;
  
  
  Additional Resources/Info
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/NahuLD/java-launch-library"&gt;Launch Library Wrapper&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.twilio.com/autopilot"&gt;Twilio's Autopilot&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>twiliohackathon</category>
      <category>java</category>
      <category>bot</category>
    </item>
    <item>
      <title>Dev.to/Twilio Hackathon: Rocket Launch bot (Part TWO)</title>
      <dc:creator>Nahu</dc:creator>
      <pubDate>Sun, 26 Apr 2020 02:02:04 +0000</pubDate>
      <link>https://forem.com/nahu/dev-to-twilio-hackathon-rocket-launch-bot-part-two-2603</link>
      <guid>https://forem.com/nahu/dev-to-twilio-hackathon-rocket-launch-bot-part-two-2603</guid>
      <description>&lt;p&gt;Oh well, this was kind of a wild ride I guess.&lt;/p&gt;

&lt;h1&gt;
  
  
  Using Twilio bots
&lt;/h1&gt;

&lt;p&gt;Twilio has a great feature called Autopilot, where you can create bots trainable AI bots that parse the messages based on the user and groups it by intent (works similarly to Dialogflow).&lt;/p&gt;

&lt;p&gt;In theory you could build fully fledged out bots by using features provided by Twilio, Functions and Autopilot. But as I wanted to implement my Java wrapper we'll be using only one of the two.&lt;/p&gt;

&lt;h1&gt;
  
  
  Collecting intent to respond with desired information
&lt;/h1&gt;

&lt;p&gt;For parsing what "type" of request the user intends we are using field types and making samples to our collect task to train it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--de0JF4JD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://this-is-a.bad-me.me/5et7usX.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--de0JF4JD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://this-is-a.bad-me.me/5et7usX.png" alt="type" width="478" height="247"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After collecting what type of request the user wants to make, we just use a web-hook to our Java application.&lt;/p&gt;

&lt;h1&gt;
  
  
  Ending
&lt;/h1&gt;

&lt;p&gt;With these, we can have our project set up with only a couple of tasks and only one field type.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KX7Xeimf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://this-is-a.bad-me.me/32qJpzw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KX7Xeimf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://this-is-a.bad-me.me/32qJpzw.png" alt="tasks" width="353" height="256"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Links
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/NahuLD/launch-twilio-bot/blob/master/src/main/resources/collect.json"&gt;Collect task&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/NahuLD/launch-twilio-bot/"&gt;Project&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>twiliohackathon</category>
      <category>java</category>
      <category>bot</category>
    </item>
    <item>
      <title>Dev.to/Twilio Hackathon: Writing a Rocket launch bot!</title>
      <dc:creator>Nahu</dc:creator>
      <pubDate>Thu, 23 Apr 2020 21:16:17 +0000</pubDate>
      <link>https://forem.com/nahu/dev-to-twilio-hackathon-writing-a-rocket-launch-bot-5609</link>
      <guid>https://forem.com/nahu/dev-to-twilio-hackathon-writing-a-rocket-launch-bot-5609</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;This is my first hackathon with Dev.to I will be participating so I'm looking forward to it!&lt;/p&gt;

&lt;p&gt;(this is not my first post but I have decided to remove the first one because it was really minimal)&lt;/p&gt;

&lt;p&gt;At the beginning I started making a bulk project, with myself parsing the messages received through the web-hook directly.&lt;/p&gt;

&lt;p&gt;After looking at Twilio's resources I came across Autopilot bots, a conversational AI stack that parses most of the data with a very convenient to use UI (which reminds me a lot of Dialogflow). With this I would just need to set up a couple endpoints to provide the responses.&lt;/p&gt;

&lt;h2&gt;
  
  
  Link to Code
&lt;/h2&gt;

&lt;p&gt;This time I have started the &lt;a href="https://github.com/NahuLD/launch-twilio-bot"&gt;GitHub repository&lt;/a&gt; for the project!&lt;/p&gt;

&lt;h2&gt;
  
  
  What's the stack?
&lt;/h2&gt;

&lt;p&gt;I have decided to stick with Java for the project.&lt;br&gt;
We'll be used Twilio's provided SDK, alongside with my Java wrapper and SparkJava for webhooks.&lt;/p&gt;

</description>
      <category>twiliohackathon</category>
      <category>java</category>
      <category>bot</category>
    </item>
  </channel>
</rss>
