6. Telegram e BOT #WMF2016
Dati ufficiali: Febbraio 2016
simplenetworks.it/wmf16
7. Telegram e BOT #WMF2016
Perché Telegram?
Cloud-based - Open - Secure - Free
FACT: “Dicembre 2015: in Brasile viene bloccato WhatsApp per 2 giorni.
Telegram acquisisce 6 milioni di utenti in quel mese”
Gruppi pubblici fino a 5000 utenti
(Update del 13 Marzo 2016)
simplenetworks.it/wmf16
8. Telegram e BOT #WMF2016
Omni-Channel Experience
“Seguire e inseguire clienti «esterni» ed «interni», Customers
ed Employees, ovunque essi siano, alla scrivania o in mobilità,
qualunque device abbiano sottomano, garantendo loro di
trovar sempre informazioni aggiornate in real-time e con
qualunque tipo di contenuto, anche il video più pesante”
simplenetworks.it/wmf16
9. Telegram e BOT #WMF2016
“There’s a BOT for that”
simplenetworks.it/wmf16
10. Telegram e BOT #WMF2016
Creazione di un BOT 3.0
Una vera rivoluzione
(https://telegram.org/blog/bot-revolution del 24/06/2015)
Interazione tramite API REST in formato JSON
Utilizzo di chat_id o username, non del numero di telefono
Alcune limitazioni sullo stato del bot: “Bot”, al posto dei precedenti
stati che simulavano un utente vero (“online” ecc.)
simplenetworks.it/wmf16
11. Telegram e BOT #WMF2016
Architettura
simplenetworks.it/wmf16
12. Telegram e BOT #WMF2016
BOT vs Human
• Bots have no online status and no last seen timestamps, the interface
shows the label ‘bot’ instead
• Bots have limited cloud storage — older messages may be removed by the
server shortly after they have been processed
• Bots can't initiate conversations with users. A user must either add them to
a group or send them a message first. People can use telegram.me/
<bot_username> links or username search to find your bot.
• Bot usernames always end in ‘bot’ (e.g. @TriviaBot, @GitHub_bot).
• When added to a group, bots do not receive all messages by default (see
Privacy mode)
• Bots never eat, sleep or complain (unless expressly programmed
otherwise)
simplenetworks.it/wmf16
13. Telegram e BOT #WMF2016
Come si crea un BOT?
simplenetworks.it/wmf16
14. Telegram e BOT #WMF2016
Come si crea un BOT?
Interagendo con un altro Bot. Il creatore di tutti i Bot è:
@BotFather (https://telegram.me/botfather).
Si contatta @BotFather e si esegue il comando /newbot
@BotFather chiederà il nome del Bot che si vuole creare e il
nome breve (quello dopo la @).
(Nota Bene: il nome breve DEVE terminare con “bot”)
simplenetworks.it/wmf16
15. Telegram e BOT #WMF2016
Al termine della creazione, il
sistema mostrerà il token riservato
per l’accesso alle API.
Attraverso il token (che dovrà
rimanere segreto) l’applicazione che
creeremo potrà agire su Telegram
eseguendo le API pubbliche.
simplenetworks.it/wmf16
16. Telegram e BOT #WMF2016
Cosa si può fare?
Leggere i messaggi rivolti al BOT
Scrivere ad utenti che hanno contattato il BOT
(salvandone l’id) inviando: testo, immagini, audio,
documenti, sticker, location (coordinate geografiche)
simplenetworks.it/wmf16
17. Telegram e BOT #WMF2016
BOT Keyboards
simplenetworks.it/wmf16
18. Telegram e BOT #WMF2016
BOT Store• Permettono di impostare
delle notifiche ad orari
predefiniti
• Mostrano le previsioni meteo
• Mostrano news (di ogni tipo)
• Ci ricordano dove abbiamo
parcheggiato l’auto
• Eseguono traduzioni
• Sono veri e propri giochi
• Simulano una intelligenza
artificiale
• Insultano e molto altro
simplenetworks.it/wmf16
19. Telegram e BOT #WMF2016
SimpleNotifierBOT
• Sistema di notifiche generico
con API Rest pubbliche
protette
• Notifiche immediate
direttamente sul telefono
per ogni conversione
programmata
• Nuovi ticket di assistenza
• Eventi legati al monitoraggio
di server, apparati ecc.
simplenetworks.it/wmf16
• Sistema generico e scalabile
• Nessun obbligo di
installazione di altre app
eccetto Telegram
• Nessuna necessità di
controllare l’email da
cellulare
• Per la registrazione al
servizio, l’utente che desidera
ricevere notifiche deve solo
avviare una chat con il BOT
20. Telegram e BOT #WMF2016
Esempi di utilizzo
simplenetworks.it/wmf16
Canale di Gianluca Diegoli
https://telegram.me/everywherecommerce
Creazione di sondaggi
https://telegram.me/PollBot
Creazione di autorisponditori per FAQ
21. Telegram e BOT #WMF2016
DIGITAL & INNOVATION AGENCY
www.simplenetworks.it
info (at) simplenetworks.it
https://telegram.me/simplenetworks
simplenetworks.it/wmf16
Nicola Calisesi CEO & Founder
Stefano Bianchini CTO & Founder