SnatchBot Support

Welcome to the SnatchBot Support. You'll find comprehensive guides and documentation to help you start working with SnatchBot as quickly as possible, as well as support if you get stuck. Let's jump right in!

The community forum is not a helpdesk
Let’s put this in the front - the vast majority of people here do not work for SnatchBot.

Get Started    SNATCHBOT API
Ask A Question

Questions

2
ANSWERED

Comment at a bot statement

Hy, is there a way to comment at a bot statement? It is important because I need to make spaces between lines to understand the code, but this way the spaces are seen in conversation... :/ For example one of my bot statement: Kedves [showVar=keresztnev], a következő adatok alapján szeretnél velünk kapcsolatba kerülni. Tárgy: [IF([showVar=visszahivasmenu]=1){Visszahívás kérése}][IF([showVar=idopontegyeztetesmenu]=1){Időpont-egyeztetés}][IF([showVar=kerdesmenu]=1){Kérdés intézése}][IF([showVar=nemtudigeny]=1){Szakértővel történő közös probléma meghatározás}] [IF([showVar=leiromaproblemat]=1){Leírt probléma/kérdés}] Kapcsolatfelvételi forma: [extractedData interaction=573055 fallback= ] [customVar kapcsforma=[extractedData interaction=573055 fallback= ]] [IF([showVar=emailkapcsolat]=emailkapcsolat){Email cím: }][extractedData interaction=575665 fallback= ] [customVar emailcim=[extractedData interaction=575665 fallback= ]] [IF([showVar=telefonkapcsolat]=telefonkapcsolat){Telefonszam: }][IF([showVar=telefonszam]=sima){[extractedData interaction=573058 fallback= ]}][IF([showVar=telefonszam]=vege){[extractedData interaction=573093 fallback= ]}][IF([showVar=telefonszam]=csere){[extractedData interaction=573070 fallback= ]}] [IF([showVar=telefonszam]=sima){[customVar telefonszam=[extractedData interaction=573058 fallback=TEXT]]}][IF([showVar=telefonszam]=vege){[customVar telefonszam=[extractedData interaction=573093 fallback=TEXT]]}][IF([showVar=telefonszam]=csere){[customVar telefonszam=[extractedData interaction=573070 fallback=TEXT]]}] Kontakt - Keresztnév: [showVar=keresztnev] Kontakt - Vezetéknév: [showVar=vezeteknev] Szerviz-igény: [IF([showVar=kisszerviz]=kisszerviz){| Kisszerviz }][IF([showVar=nagyszerviz]=nagyszerviz){| Nagyszerviz }][IF([showVar=klimakarbantartas]=klimakarbantartas){| Klímakarbantartás }][IF([showVar=akkumulatorkarbantartas]=akkumulatorkarbantartas){| Akkumulátor karbantartás }][IF([showVar=fekrendszerkarbantartas]=fekrendszerkarbantartas){| Fékrendszer karbantartás }][IF([showVar=kipufogorendszerkarbantartas]=kipufogorendszerkarbantartas){| Kipufogórendszer karbantartás }][setAttribute szerviz=[showVar=kisszerviz] [showVar=nagyszerviz] [showVar=klimakarbantartas] [showVar=akkumulatorkarbantartas] [showVar=fekrendszerkarbantartas] [showVar=kipufogorendszerkarbantartas]] Gépjármű - Gyártmány: [showVar=gyartmany] Gépjármű - Modell: [showVar=modell] Gépjármű - Évjárat: [showVar=evjarat] Kérdés: [showVar=kerdes] Üzenet: [showVar=uzenet] [customVar szervizlista=1] [customVar adatokelkerve=Mehet]

Posted by Kristian Komjati 7 months ago

2
ANSWERED

We Need Mulitple Expression Conditions

Custom vars and logic operations are, of course, a necessary part of implementing a bot. And the current implementation affords us that. But we need the ability to have multiple expressions in a condition. Otherwise, we have to nest conditional statements, which is ungainly. For instance, in the following example, we want to display the text only if variable KILLBOT_SEEN is 1 AND variable KILLBOT_HAS_LEFT is 0: `[IF([showVar=KILLBOT_SEEN]=1){[IF([showVar=KILLBOT_HAS_LEFT]=0){Killbot 9000 is still standing there. Its various sharp and pointy bits whir and glint in the muted light.}]}]` It would be preferable to write: `[IF([showVar=KILLBOT_SEEN]=1&[showVar=KILLBOT_HAS_LEFT]=0){Killbot 9000 is still standing there. Its various sharp and pointy bits whir and glint in the muted light.}]` That doesn't seem like much difference, but if you have multiple levels of nesting, it gets ugly quick. You can't space them out visually like code, because the returns are included in the chatbot output. ``` [IF([showVar=KILLBOTSEEN]=0){In the hallway outside your door stands a silvery mechanical beast with ten or more arms, each sporting a fairly dangerous looking pincer, blade, saw or other implement of apparent mayhem. Its glowing red eyes regard you with steely indifference.}] [IF([showVar=KILLBOTSEEN]=1){[IF([showVar=KILLBOTLEFT]=0){Killbot 9000 is still standing there. Its various sharp and pointy bits whir and glint in the muted light.}]}] [IF([showVar=FREAKOUT]=2){Two powerful clamps that could easily snap you in half clack open and shut, slowly at first, then more rapidly. A deep thrum begins to emanate from the bowels of the gleaming beast.}][IF([showVar=FREAKOUT]=3){Several intense laser beams flick around your body then come to a stop just over the spot where your heart is beginning to gallop wildly in your chest.}][IF([showVar=KILLBOTSEEN]=1){[IF([showVar=KILLBOTLEFT]=1){The hallway is empty.}]}] [customVar KILLBOTSEEN=1] ```

Posted by Cliff Hall 5 months ago