<?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>DEV Community: Sergio Gragera</title>
    <description>The latest articles on DEV Community by Sergio Gragera (@sergiogragera).</description>
    <link>https://dev.to/sergiogragera</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%2F29132%2F2233a85d-818c-4654-9094-3b8b088de45a.jpg</url>
      <title>DEV Community: Sergio Gragera</title>
      <link>https://dev.to/sergiogragera</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sergiogragera"/>
    <language>en</language>
    <item>
      <title>Coding a WhatsApp AI assistant</title>
      <dc:creator>Sergio Gragera</dc:creator>
      <pubDate>Sun, 08 Jan 2023 15:45:18 +0000</pubDate>
      <link>https://dev.to/sergiogragera/coding-a-whatsapp-ai-assistant-3djn</link>
      <guid>https://dev.to/sergiogragera/coding-a-whatsapp-ai-assistant-3djn</guid>
      <description>&lt;p&gt;Have you also forgotten to congratulate a friend on WhatsApp? I do, and I'm not proud of it, but I am capable of solving it.&lt;/p&gt;

&lt;p&gt;As a result of this problem I had the idea of schedule in my Google calendar all the birthdays of my friends and thus receiving a notification on the appointed day. However, when the day comes, I am able to read the notification but postpone sending that message or call and forget for the rest of the day that this task was pending.&lt;/p&gt;

&lt;p&gt;I usually use WhatsApp to congratulate my contacts, so one day I decided to integrate all this so that when the time comes it is sent automatically. Well, that project had a problem and it was that I had to write the different messages, each and every one of them, if I didn't want all my friends to receive the same congratulations. But artificial intelligence knows how to generate messages, so it had a solution to everything: remember the day, generate a personalized greeting and send it automatically.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6HSQXklq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u67chf4ya0h34a5mclvx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6HSQXklq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u67chf4ya0h34a5mclvx.png" alt="schedule a event in google calendar" width="880" height="532"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--LhMqJjy2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x47yh0afxqlaxo3iz9xs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--LhMqJjy2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x47yh0afxqlaxo3iz9xs.png" alt="delivered automatic message" width="826" height="958"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is how I created &lt;a href="https://github.com/sergiogragera/whatsapp-calendar-gpt-bot"&gt;this open source project&lt;/a&gt; where given an event with the subject "Write a birthday message for my friend Peter" and when the day of the event arrives, it is processed by an artificial intelligence that composes a message like "Happy birthday Peter! I wish you a day full of joy, love and laughter..." and is sent by WhatsApp to the contact or list of contacts assigned to the event. If one day I want to send a specific message, I just have to write it in the description and nothing will be generated automatically. That message will just be sent.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--l-X0M9sj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o1j2humf831lyl3gwpgp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--l-X0M9sj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o1j2humf831lyl3gwpgp.png" alt="start script command" width="880" height="605"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We have an assistant on WhatsApp scheduled from a calendar! Next steps? Well, in the roadmap I have to process the messages that arrive in my personal chat (the one that I keep with myself) and respond with the generated message, thus creating a personal assistant. I think with a few more lines I could transcribe the audio message to text to create a more natural user interface and even output the response as audio so I can speak and listen directly to the assistant. I hope you like it!&lt;/p&gt;

</description>
      <category>bot</category>
      <category>calendar</category>
      <category>whatsapp</category>
      <category>gpt</category>
    </item>
  </channel>
</rss>
