Post gif in slack7/8/2023 ![]() See how we use our API REST platform to simplify the interaction with the Giphy API (though of course, you could use other REST libraries, like Unirest, if you prefer this is the beauty of using an internal DSL!). Then, in the main bot state, we will recover this parameter and ask Giphy to return an image tagged with it. The keyword will take the concept/action/whatever we want to visualize and store it as part of the request parameter information. The intent CanYou will be matched any time we write a sentence similar to those listed in the training inputs. Let’s see the core of the bot.įor this bot, we just have one main intent: asking the chatbot to find an image for us Like all Xatkit bots, it uses our Java Fluent API so you can read and modify the code with any Java editor. You can download the full code of the Giphy chatbot. And we hope this will push you to start exploring ASAP our open-source chatbot platform! The goal of this post is to show you easily you can build a bot like this. Right now the bot just takes the first gif returned by the Giphy API but of course, you could easily implement more complex prioritization strategies. ![]() Feel free to play with the bot in this same page!. As seen in the image below, you can ask the bot whatever you feel like seeing and our Giphy bot will automatically find a gif in Giphy tagged with that word and post the animated gif in the Slack channel or a chatbot widget in your webpage. Add it to your website, your Slack channel,… to have some fun with your visitors and collaborators. Do you want make your Slack channels more exciting and funny? What about a bot that reads your “feelings” and renders them by automatically posting animated funny gifs from Giphy? ![]()
0 Comments
Leave a Reply. |