8/18/2023 0 Comments Do gifs in slackYou just need to think of interesting ways to combine them. Use our AI-powered tool to create a transcript of your video. Thanks to our predefined Slack, React, Rest and Giphy platform support, all the complexity of calling and interacting with those platforms is on us. Generate and customizable captions that automatically sync to your video. I’m sure you’ll agree that the actual code of the bot is rather simple. But the few lines of code shown in the two gists above are basically all you need to create your own Giphy chatbot. But the continuous loop of a party parrot emoji or a GIF can be distracting. A randomly generated GIF should appear (only you can see it) and if you like it, you can hit send If not, use the shuffle button to find another one. The bot has some other states (for helping the visitor and greeting him), you can see them all in the GitHub repo. Apr 6, 2021, 9:30 am EDT 1 min read Emoji and GIF integration are two of the standout and well-loved features of Slack. Type /giphy into the chatbox, followed by the word you want your GIF to relate to, like /Giphy Applause, then click enter. In this sample code, the image is printed in the chatbot widget but you could send it to a Slack channel or whatever you want it to show up. 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. Search for a GIF of choice on the web using Google or a GIF search engine such as Tenor or Giphy. 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |