You just need to think of interesting ways to combine them. I was wondering if anyone else had this issue or fixed it. If I send them or if someone else sends them, I only see a still of the gif and nothing is moving. Thanks to our predefined Slack, React, Rest and Giphy platform support, all the complexity of calling and interacting with those platforms is on us. Gif not working on slack Mac Hi Im running MacOS Catalina and have been having issues with giphy gifs not working correctly. 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. The bot has some other states (for helping the visitor and greeting him), you can see them all in the GitHub repo. 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. Giphy will now show you one result at a time. The intent CanYou will be matched any time we write a sentence similar to those listed in the training inputs. This is where you’ll find all those perfect GIFs type a word or phrase in the text field, and then click Search. 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. When you use GIPHY in Slack, you'll type in a command and a. And we hope this will push you to start exploring ASAP our open-source chatbot platform! You can use GIPHY in Slack to send GIFs to your coworkers, though it will need to be enabled by your workspace administrators. 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. |