# CleverBot: Let's Talk

**URL:** <https://community.thunkable.com/t/cleverbot-lets-talk/1827>\
**Category:** Promote your App\
**Tags:** script\
**Created:** [March 4, 2017, 3:14pm UTC](https://community.thunkable.com/t/cleverbot-lets-talk/1827 "2017-03-04T15:14:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barreeeiroo](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/barreeeiroo/32/17867_2.png) [@Barreeeiroo](https://community.thunkable.com/u/Barreeeiroo)\
**Post date:** [March 4, 2017, 3:14pm UTC](https://community.thunkable.com/t/cleverbot-lets-talk/1827/1 "2017-03-04T15:14:17Z")

</div>

Hey there 👋

* * *

#Introduction

**I’ve created for Telegram a bot that allows you to talk with him like a human:**

 ![](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/2X/0/0ba27a705b6adf55a42f08e3594378173e6dd3db.png)

Well, it’s a bit _silly_, but it uses one of the bests public bots: [CleverBot](http://cleverbot.com)

So, I thought that it could be a great option to create an app for CleverBot using AppInventor, because it sould be very simple: just a WebComponent, an Input and a Label and you have somebody to talk if you are bored!

* * *

#How to build an app

To build an app, just need a TextBox to work like an Input, a Button to submit the Input, a Label to set the Output and a WebComponent to make the interaction:

 ![](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/2X/3/3bab93450bd73d67a6f31ecb7201597698b10676.png)  
  
  
In the blocks, part, it’s quite simple:  
 ![](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/2X/4/4a28ad996b4b7d91868f857b32e7301ec615b0e1.png)

Setup your key requesting one here: [Cleverbot API – The official Cleverbot API](https://www.cleverbot.com/api/#abovetitle)  
The app will function like this: when the user submits the input, it will send to my server in [https://scripts.thunkable.ga](https://scripts.thunkable.ga), and the script `cleverbot/index.php` will interacti with CleverBot API sending a quite simple answer that can be holded by GetResponseText

* * *

#Resources:

- Compiled APK: [CleverBot.apk](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/2X/e/e4aa862f7c653e26003c67f17313d90224146d75.apk) (2.2 MB)

- Source Code (AIA): [CleverBot.aia](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/2X/5/59ad62bdb9eaf5fcdf4bb9149e39878879922bf0.aia) (2.1 KB)

- Source Code (PHP): [https://gist.github.com/barreeeiroo/e890479d35f4021410831595e5b3fd69](https://gist.github.com/barreeeiroo/e890479d35f4021410831595e5b3fd69)

- Source Code (Telegram Bot Plugin): [https://github.com/barreeeiroo/GroupButler/blob/master/plugins/talk.lua](https://github.com/barreeeiroo/GroupButler/blob/master/plugins/talk.lua)

* * *

* * *

#Alternative  
An alternative to CleverBot is [SimSimi](http://developer.simsimi.com), which (for me) is much better than CleverBot, but it’s a paid service  
Some time ago, it was a free service (as you can see in this commit: [GitHub](https://github.com/dot-apps/M4STER_Bot/commit/ad80e9ffdc02642dbd30f1594110527229f2b923)). I’ve worked with it for a Telegram Bot months ago, but when they became a paid service, I stopped to use them

So, if anyone wants to pay for SimSimi, ask me and I will send them an .AIA where they can use SimSimi API 😊

---

<div class="post-metadata">

**Author:** ![amrita](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/amrita/32/31_2.png) [@amrita](https://community.thunkable.com/u/amrita)\
**Post date:** [March 4, 2017, 7:05pm UTC](https://community.thunkable.com/t/cleverbot-lets-talk/1827/2 "2017-03-04T19:05:40Z")

</div>

Thanks for sharing @barreeeiroo!

---

<div class="post-metadata">

**Author:** ![Bruger](https://avatars.discourse-cdn.com/v4/letter/b/839c29/32.png) [@Bruger](https://community.thunkable.com/u/Bruger)\
**Post date:** [March 4, 2017, 8:15pm UTC](https://community.thunkable.com/t/cleverbot-lets-talk/1827/3 "2017-03-04T20:15:56Z")

</div>

Great job, I like the idea of having something to talk to when you are bored. 😌

---

<div class="post-metadata">

**Author:** ![Barreeeiroo](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/barreeeiroo/32/17867_2.png) [@Barreeeiroo](https://community.thunkable.com/u/Barreeeiroo)\
**Post date:** [March 4, 2017, 11:54pm UTC](https://community.thunkable.com/t/cleverbot-lets-talk/1827/4 "2017-03-04T23:54:37Z")

</div>

It seems like I’ve made an error while trying to submit the input in the app, because my responseContent is always `No Input` 😞

I will fix it tomorrow

* * *

EDT: Fixed. It was a problem while uploading the input, that it doesn’t recognize the spaces:

 ![](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/2X/2/2bca0d1ea2536d431e7c5990dc65645eb496a248.png)

It has been fixed adding a `replace.text` block

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:07pm UTC](https://community.thunkable.com/t/cleverbot-lets-talk/1827/5 "2024-11-08T12:07:17Z")

</div>


