<?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: Anthony</title>
    <description>The latest articles on DEV Community by Anthony (@jaylefontaine).</description>
    <link>https://dev.to/jaylefontaine</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%2F1380143%2Fa9457cef-f4f2-4b80-9c5e-636f7e77e5e9.png</url>
      <title>DEV Community: Anthony</title>
      <link>https://dev.to/jaylefontaine</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jaylefontaine"/>
    <language>en</language>
    <item>
      <title>Troubleshooting Flask Chatbot Application</title>
      <dc:creator>Anthony</dc:creator>
      <pubDate>Sun, 24 Mar 2024 21:01:58 +0000</pubDate>
      <link>https://dev.to/jaylefontaine/troubleshooting-flask-chatbot-application-44b6</link>
      <guid>https://dev.to/jaylefontaine/troubleshooting-flask-chatbot-application-44b6</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9aw47ixwjwbtf7kezh0j.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9aw47ixwjwbtf7kezh0j.jpg" alt="Image description" width="320" height="180"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Hi folks. I am troubleshooting something and am wondering if anyone can help out. I am a bit of a noob, but eager to learn and help others in their own projects. I can return the favor if you want someone to help with your own programs. &lt;/p&gt;

&lt;h2&gt;
  
  
  Intake Chatbot for Business
&lt;/h2&gt;

&lt;p&gt;I am currently working on a &lt;strong&gt;Flask&lt;/strong&gt; application chatbot to assist a business in carrying out various administrative tasks. I used &lt;strong&gt;Python&lt;/strong&gt; for the backend** logic and &lt;strong&gt;Javascript&lt;/strong&gt; for the frontend. I also have this all integrated with the &lt;strong&gt;Google&lt;/strong&gt; ecosystem. The intention is for the chatbot to carry out a structured or unstructured interview, and then send the data to a &lt;strong&gt;Google Sheet&lt;/strong&gt;. The Google Sheet also has several functionalities using &lt;strong&gt;Google Apps Scripts&lt;/strong&gt;. Once I finish the code, I intend to embed it on a &lt;strong&gt;Wordpress&lt;/strong&gt; site. I also think I could make simple tweaks to it and sell it to individual businesses for their own needs. Below are the features of the program.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Basic Chatbot UI to be deployed as a widget on a wordpress site&lt;/li&gt;
&lt;li&gt;Carries out structured or unstructured interview&lt;/li&gt;
&lt;li&gt;Makes various &lt;strong&gt;API&lt;/strong&gt; calls specifically for Google Sheets, &lt;strong&gt;Gmail&lt;/strong&gt;, &lt;strong&gt;Open AI&lt;/strong&gt; etc&lt;/li&gt;
&lt;li&gt;Google Apps Script sends data to Open AI for Summarization, Analysis and to write personalized emails&lt;/li&gt;
&lt;li&gt;Google Apps Script also has function to automate email &lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Program Structure
&lt;/h3&gt;

&lt;p&gt;The program utilizes &lt;strong&gt;Pytorch&lt;/strong&gt; to carry out a more loose, unstructured interview, but for now I don't need this functionality and it is commented out. For now, I just have a structured interview written into the code with pre-set questions. There is a dictionary to store the question category responses and a step handler that moves on to the next step when it receives input. Then the idea is to take this information and append it to the Google Sheet&lt;/p&gt;

&lt;h4&gt;
  
  
  Troubleshooting
&lt;/h4&gt;

&lt;p&gt;The program should work fine, but there is one hiccup. For whatever reason, the data is not appending to the Google Sheet, which is the final function and should be triggered by the last step. I have tested this function separately in a simpler program with hardcoded data and there doesn't appear to be any issue with my service account or API. Something is going wrong in the last step which should trigger the append to sheet function&lt;/p&gt;

&lt;h4&gt;
  
  
  Issues
&lt;/h4&gt;

&lt;p&gt;Again, I am bit of a noob and must admit that I use &lt;strong&gt;ChatGPT&lt;/strong&gt; as a bit of a crutch, so it is very possible the code is wretched. &lt;/p&gt;

&lt;h2&gt;
  
  
  Invitation for pointers
&lt;/h2&gt;

&lt;p&gt;I have learned a lot during this project, but I am self-taught and there are a lot of gaps in my knowledge. If anyone wants to take a look at the code and give suggestions I would appreciate it and would certainly find a way to return the favor. &lt;/p&gt;

&lt;p&gt;Cheers,&lt;/p&gt;

&lt;p&gt;Tony   &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; &lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>chatbot</category>
      <category>flask</category>
      <category>python</category>
      <category>codenewbie</category>
    </item>
  </channel>
</rss>
