# Creare un bot personalizzato

**URL:** https://meta.discourse.org/t/building-a-custom-bot/154824
**Category:** Support
**Created:** [14 Giugno 2020, 7:55pm UTC](https://meta.discourse.org/t/building-a-custom-bot/154824 "2020-06-14T19:55:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![j127](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j127/32/79093_2.png) [@j127](https://meta.discourse.org/u/j127)
#### Post date: [14 Giugno 2020, 7:55pm UTC](https://meta.discourse.org/t/building-a-custom-bot/154824/1 "2020-06-14T19:55:34Z")

</div>

Stavo cercando un modo per creare un bot personalizzato con cui gli utenti possano interagire negli argomenti pubblici. Potrebbero digitare qualcosa come

```plaintext
@botname comando arg1 arg2

```

e il bot risponderebbe nell’argomento con l’output richiesto.

Sembra che non sia possibile farlo con discobot, quindi intendevo scrivere un ricevitore webhook in una funzione cloud esterna per ascoltare le menzioni del nome del bot personalizzato. Il bot pubblicherà quindi una risposta tramite l’API.

Qualcuno ha già fatto qualcosa di simile in un plugin? O c’è un modo migliore per implementare questo tipo di funzionalità?

Ho pensato di chiedere qui, perché a volte pongo una domanda e risulta che esiste già una soluzione.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [14 Giugno 2020, 8:23pm UTC](https://meta.discourse.org/t/building-a-custom-bot/154824/2 "2020-06-14T20:23:59Z")

</div>

Forse dai un’occhiata a questo?

> [@Discourse Frotz mage](https://meta.discourse.org/t/discourse-frotz-an-interactive-fiction-game-bot/140617):
>
> Wooah, a new plugin! tada This one is a little less serious, though. video_gameDiscourse Frotz [[image] ](https://global.discourse-cdn.com/meta/original/3X/4/7/477f2c8c14006fa019eea94d4ba9bd95b7259412.png) It’s no longer necessary to @ mention the bot every step of the way. Once in play, just reply to it. Git repo: [GitHub - merefield/discourse-frotz: A plugin that uses Frotz to give you an interactive fiction experience on your Discourse forum](https://github.com/merefield/discourse-frotz)What is it It’s a ‘bot’ with which to play interactive fiction aka classic text adventure games on …

---

<div class="post-metadata">

### Author: ![j127](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j127/32/79093_2.png) [@j127](https://meta.discourse.org/u/j127)
#### Post date: [14 Giugno 2020, 9:58pm UTC](https://meta.discourse.org/t/building-a-custom-bot/154824/3 "2020-06-14T21:58:40Z")

</div>

Grazie, mi hai dato qualche idea. Per iniziare, vorrei solo alcuni comandi predefiniti semplici che caricano attività in un argomento, ma alla fine spero di creare un bot più intelligente utilizzando un framework come [Rasa](https://rasa.com/product/features/).

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [14 Luglio 2020, 10:09pm UTC](https://meta.discourse.org/t/building-a-custom-bot/154824/4 "2020-07-14T22:09:59Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
