Per bot di assistenza e chat aziendali
Risposte arricchite nelle chat che non eseguono script
Le chat aziendali e i widget di assistenza spesso mostrano solo testo e immagini. Chiedi a WebKnox un'immagine della scheda e pubblicala accanto alla risposta testuale.
15° and partly cloudy in Dresden right now. Light rain starts around 8 pm and gets heavier after 10 pm.
15° and partly cloudy in Dresden right now. Light rain starts around 8 pm and gets heavier after 10 pm; it eases off by about 7 am, and Thursday stays mostly dry with a high of 12°.
Solo testo, o testo con la scheda
A medium banana (118 g) has about 105 kcal, mostly from carbohydrates: 27 g, including 14 g of sugars. It also gives you 3.1 g of fiber and 422 mg of potassium.
Dove si inserisce in un bot
Il tuo bot riceve già il messaggio. Una sola chiamata restituisce il testo e un link all'immagine.
- Qualcuno chiedein un canale o in una chat di assistenza
- Il tuo botchiede a WebKnox anche un'immagine
- matched: truepubblica il testo con l'immagine allegata
- matched: falseil tuo bot risponde come sempre
// Ask for a hosted image along with the answer body: JSON.stringify({ messages, render: { formats: ['image'] } }) if (answer.matched) { // Post the text, with the card as an image await chat.postMessage({ text: answer.text, attachments: [{ image_url: answer.render.image_url }], }); } else { await chat.postMessage({ text: await myBot.reply(messages) }); }
Da sapere per i bot
I link alle immagini scadono
Il link a un'immagine funziona fino a render.expires_at. Carica l'immagine sulla piattaforma se un messaggio deve conservarla più a lungo.
La risposta resta il testo
Pubblica sempre anche text: si può cercare e gli screen reader lo leggono.
Con Pro e Scale
Le immagini ospitate sono incluse in Pro e Scale e costano un token in più ciascuna.