Skip to content

Come creare il proprio bot Telegram

You can create your own Telegram bot than you can then link to Planfix. Messages sent to this bot by your clients or colleagues will become tasks in Planfix. Comments added to the task that notifies an outside party will be sent to them in Telegram from the bot. This lets you arrange several aspects of your work, from how client messages from mobile devices are processed, to how your support team works, and more.

Creare un bot Telegram

Per creare il tuo bot Telegram:

  • tap this link (Telegram must be launched on this device)
  • in the welcome window, tap the "Start" button.

Nkgo6W.jpg

  • in the chat window with @BotFather, enter the /newbot command
  • enter the name of the new bot when prompted. The name must end with "bot" or "_bot." It's advisable to choose a name that's somehow associated with your company or line of work. For example, the company BrainStorm could choose the name BrainstormAgencyBot or BrainstormAgency_bot. Once you've entered a name, tap Enter.

Dhdg0H.jpg

  • then BotFather will ask you to enter a username for the bot. Unlike the bot's name, the username must be unique, which could cause issues for more common names. No two Telegram bots can have the same username. BotFather will tell you if the username you chose is already in use and will prompt you to enter another name until you find one that is unique and unused. Once you have entered your username, the bot creation process is complete, and you will see the following message:

zQxfhL.jpg

Collegare il bot Telegram a Planfix

Per collegare il bot creato a Planfix, vai alla sezione Gestione account / Integrazioni / Messaggistica / Telegram e tocca Aggiungi bot:

XlrMa6.jpg

  • Nella finestra popup, inserisci il nome del bot e la chiave indicata al momento della creazione (evidenziata in rosso nell'ultima schermata della dialog con BotFather). Seleziona il modello per i compiti che verranno creati in base ai messaggi ricevuti dal bot, definisci il modello per un nuovo contatto che invierà un messaggio al bot, e indica gli additional employees da collegare come Assegnati oltre a quelli specificati nel modello del compito.

e9A9lg.jpg

Importante: Quando configuri un'integrazione puoi fare in modo che venga creato un nuovo compito se non esiste un active task (con qualsiasi Stato attivo) per la comunicazione da parte di un cliente che invia un messaggio al bot:

Yxqb0c.jpg

Per impostazione predefinita, questa casella è selezionata. Quando la casella è selezionata, verrà creato un nuovo compito se il compito precedente con questo cliente è stato eliminato o completato, oppure è inattivo. La cronologia della conversazione verrà automaticamente aggiunta alla descrizione del compito creato:

OpexVR.jpg

Quando la casella non è selezionata, tutti i messaggi del cliente verranno inviati al compito originale con questo cliente, indipendentemente dal suo Stato attuale.

Campo di sistema "Telegram"

Quando un cliente invia un messaggio al tuo bot, il suo username Telegram viene aggiunto automaticamente al campo di sistema "Telegram" in Planfix. Questo username diventa un link cliccabile che porta direttamente alla conversazione con il cliente nella versione desktop del messenger.

iZ4yHZ.jpg

Importante: Il campo "Telegram" verrà popolato solo se il cliente ha uno username Telegram e le sue impostazioni di privacy consentono a Planfix di accedere a queste informazioni. Per maggiore comodità, cliccando sul link si aprirà la chat con il contatto nella versione desktop del Messenger.

Importante

Non è possibile avviare una conversazione in Telegram da Planfix. La creazione di un bot è disponibile solo nei pacchetti a pagamento di Planfix.


Vai a