<?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: jessicakuijer</title>
    <description>The latest articles on Forem by jessicakuijer (@jessicakuijer).</description>
    <link>https://forem.com/jessicakuijer</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%2F1043818%2F7b63d425-ce2c-4bc8-ac26-730bdc0b8764.jpeg</url>
      <title>Forem: jessicakuijer</title>
      <link>https://forem.com/jessicakuijer</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/jessicakuijer"/>
    <language>en</language>
    <item>
      <title>Symfony Chatbot with Chat-GPT (and other APIs...)</title>
      <dc:creator>jessicakuijer</dc:creator>
      <pubDate>Sun, 12 Mar 2023 18:46:42 +0000</pubDate>
      <link>https://forem.com/jessicakuijer/symfony-chatbot-with-chat-gpt-and-other-apis-2ce3</link>
      <guid>https://forem.com/jessicakuijer/symfony-chatbot-with-chat-gpt-and-other-apis-2ce3</guid>
      <description>&lt;h3&gt;A symfony 6 Chatbot Demo using ChatGPT-3, Youtube, Giphy, WeatherStack apis...🇫🇷 🇺🇸&lt;/h3&gt;
&lt;br&gt;
  &lt;p&gt;This is a symfony 6 Chatbot Demo by using &lt;a href="https://botman.io" rel="noopener noreferrer"&gt;Botman&lt;/a&gt;. &lt;br&gt;&lt;br&gt;
  It can be used as Chatbot symfony 6 starter.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5zaqe12wjgwrl4d0lx3n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5zaqe12wjgwrl4d0lx3n.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  GITHUB code
&lt;/h2&gt;

&lt;p&gt;The project is here: &lt;a href="https://github.com/jessicakuijer/ai-chatbot-ChatGPT" rel="noopener noreferrer"&gt;https://github.com/jessicakuijer/ai-chatbot-ChatGPT&lt;/a&gt;. &lt;/p&gt;

&lt;h2&gt;
  
  
  DEMO live
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://ai-chatbot.herokuapp.com" rel="noopener noreferrer"&gt;Demo deployed on Heroku&lt;/a&gt; &lt;br&gt;
There's also a youtube video in french about it here: &lt;a href="https://www.youtube.com/watch?v=VhspfcfUTfM&amp;amp;t=473s" rel="noopener noreferrer"&gt;Symfony Chat-GPT chatBot&lt;/a&gt; &amp;lt;&amp;lt; &lt;/p&gt;

&lt;p&gt;This demo is password protected. Send me a request so I can create your credentials.&lt;br&gt;&lt;br&gt;
&lt;a href="https://www.linkedin.com/in/jessicakuijer/?locale=en_US" rel="noopener noreferrer"&gt;@jessica kuijer&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Install
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;composer &lt;span class="nb"&gt;install&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  Start
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;symfony serve &lt;span class="nt"&gt;-d&lt;/span&gt;
&lt;span class="c"&gt;# open https://127.0.0.1:8000&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;On local (dev) environment, use mysql for your own use and then you can create admins with the command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;bin/console app:create:admin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;An invite in your terminal will ask for your credentials and password is hashed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Routes
&lt;/h2&gt;

&lt;p&gt;You can access the main website and /login page only. (&amp;amp; /logout)&lt;br&gt;&lt;br&gt;
Admins can access /chat page for using AI-chatbot.&lt;/p&gt;

&lt;h2&gt;
  
  
  ChatBot Commands to test
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;"hi" &lt;/li&gt;
&lt;li&gt;"weather in london"&lt;/li&gt;
&lt;li&gt;"give me a gif mr bean"
&lt;/li&gt;
&lt;li&gt;"my name is john"&lt;/li&gt;
&lt;li&gt;"say my name"
&lt;/li&gt;
&lt;li&gt;"what's my name?" or "name"
&lt;/li&gt;
&lt;li&gt;"give me a youtube movie back to the future"&lt;/li&gt;
&lt;li&gt;"news trump"&lt;/li&gt;
&lt;li&gt;"weather in new york"&lt;/li&gt;
&lt;li&gt;THEN... ask for everything you want, AI chatGPT will give you answers.  🤖&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  API used in POC (you have to get your own api keys as environnement variables)
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://developers.google.com/youtube/registering_an_application" rel="noopener noreferrer"&gt;API Youtube data V3&lt;/a&gt;&lt;br&gt;&lt;br&gt;
&lt;a href="https://support.giphy.com/hc/en-us/articles/360020283431-Request-A-GIPHY-API-Key" rel="noopener noreferrer"&gt;API Giphy&lt;/a&gt;&lt;br&gt;&lt;br&gt;
&lt;a href="https://platform.openai.com" rel="noopener noreferrer"&gt;API OpenAI for ChatGPT-3&lt;/a&gt;&lt;br&gt;&lt;br&gt;
&lt;a href="https://weatherstack.com/" rel="noopener noreferrer"&gt;API WeatherStack&lt;/a&gt;&lt;br&gt;&lt;br&gt;
&lt;a href="https://gnews.io/" rel="noopener noreferrer"&gt;API GNews&lt;/a&gt;  &lt;/p&gt;

&lt;p&gt;Configure your environnement variables that you can find in services.yaml parameters and .env.local&lt;/p&gt;

</description>
      <category>chatgpt</category>
      <category>botman</category>
      <category>symfony</category>
      <category>php</category>
    </item>
  </channel>
</rss>
