[PUBLIC ACCESS / BETA ENDED] Make the Bot Initiate...
# 👀feature-requests
e
It would be great to have the bot initiate a conversation with all the functionalities of a node as soon as they get on the website the bot in embedded on 🙂
f
Hey @enough-fireman-69944 thanks for the request, stay posted our Botpress triggers should be out soon, we will inform the discord as soon as that is the case. The triggers will enable you to send the first message on different channels including a website.
r
@enough-fireman-69944 @fancy-kangaroo-35559 @salmon-art-82621 @cold-airport-36342 @early-train-33247 and other upvoters of this; DM me your Botpress Cloud email address and I will give you early beta access to Triggers today.
⤴️ or anyone else reading this message too!
Here's an example of using the triggers in the webchat. https://codepen.io/slvnperron/pen/ZEmYLRV In Botpress Studio, here's the workflow.
e
YOO
y’all really got the most goated customer service in the game
@rich-battery-69172 dmed!
f
@colossal-rose-54165
s
Please brief instructions on how to start the bot. I have done it as shown in the screenshot, what else do I need to do so that the bot welcomes me automatically?
f
If you now have access you would want to use the conversation started trigger.
at the beginning of your flow
s
yes, it looks like i will have to experiment a little more until the bot starts with a greeting.
@freezing-printer-49373@rich-battery-69172 Either I am using the option incorrectly, or it is a completely different function. I thought that with this triggering you can set the bot so that as soon as the website visitor arrives at the page, he or she receives a short message from the bot, such as “Hello, nice to welcome you here!” And this happens automatically without the visitor having to click on the bot button first. Is this possible with the “Trigger”? 🤔
r
@salmon-art-82621 yes, the javascript in the example is set to be firing when you click on the button but you can make it fire whenever the page loads
s
how can I do it "fire whenever the page loads"?
should I install script as shown in the example on codepen?
r
yeah. just use this script on your website (perhaps wrap this inside a setTimeout to delay it). this is just regular JS so can't really help further than that but we will surely have extended docs and examples when triggers are out of beta 👍
Copy code
window.botpressWebChat.sendPayload({
  type: "trigger",
  payload: {}
});
a
Can I get in on the beta?
a
Hi @abundant-egg-83086 DM sly your Botpress Cloud email address and he should give you early beta access to Triggers if it's still open.
n
Hi, I was wondering if this trigger function worked with webhooks? I am trying to trigger the bot conversation through SMS by using an outbound post webhook from my CRM
You guys seem on top of it with the customer support btw, glad i found yall~
s
The triggers are working great so far! The only issue im finding is that publishing bots is occasionally timing out. One good feature would be to have triggers enabled via switch in the "features" section. Im guessing most people will want a simple timeout. So maybe a UI for doing a simple trigger would be good to get people rolling.
a
Have sent you a DM
b
Awesome just sent a DM Sly 👍
m
Sounds awesome, sent DM!
c
this would be amazing , just sent you a DM
a
I sent a DM
f
Can I request for this beta as well. Thanks 🙂
l
sent you a DM
f
sent you a DM
r
just sent you a DM @rich-battery-69172!
b
dlabm1973@gmail.com
c
sent you a dm! 😄
a
anyone get access to this yet? how's it work?
s
Would love access to this too 🙂 simplygreatgamesgg.gmail.com
m
sent you a dm @rich-battery-69172 with my email : redaitoronto@gmail.com
s
hello, please access, I would like to use it too. bystron.josef@gmail.com
f
Just sent a DM @rich-battery-69172 , thanks looking forward to this feature! joey@turnkeyai.co
f
Great. I'm keen to be on the Beta program. lee@orangepahire.com.au
r
Would love to access this thanks! connor.d@s30studio.com.au
r
still waiting a response from sly
r
Hey all, sorry for the slow reply here. We gave access to ~40 users now and just iterating on the feedback thus far. Will be giving ~50 new users access tomorrow.
k
Just sent you a dm! Hopefully im part of the users who have access tomorrow 🙃
f
Been loving using botpress so far! Would love to join the beta to test this feature! My email is mikepowersofficial@gmail.com
s
that would be incredible, dmed!!
t
Would like to join to. My email is derrelwinter@gmail.com.
r
Hey i would really like to get to try the Beta!! Wessmaan@gmail.com
l
@rich-battery-69172 Would be great, if you could add me too! Mail: brushgamez@gmail.com
q
This is the feature we are missing! Cant wait please add me to the lsit michael@deboxfinancial.com
m
Please make sure to add mine: redaitoronto@gmail.com
k
DM sent this looks great
w
pm send 😄
a
kuznetsov.va@gmail.com
p
Check dm, I send my email
f
alozie2k@gmail.com
a
albertga1024@gmail.com
i
@rich-battery-69172 n.udathu@gmail.com
g
dm sent 😁
s
zsombor.palfi@gmail.com
e
⚠️ ℹ️ If you want to have access to the Trigger feature, please fill out this form: https://forms.gle/t8n7TTYnVL65Ljcn6
b
I filled out the form and I DM's Sly a week ago. https://discord.com/channels/1108396290624213082/1121833577659768893/1124052866328432700 I will provide a detailed review of my experience in addition incorporating this feature in my next botpress tutotrial (https://www.youtube.com/@langlabs)
e
⚠️ ℹ️ I have added all emails from this thread to the list, but if you just sent a DM to @rich-battery-69172, please fill out the form too!
b
I don't see it anywhere? where do I implement triggers?
e
Hey @brave-scientist-86214, I meant that I added everybody here to the list of people that want access. I shall be giving access tomorrow!
i
Is there any documentation yet on how to use triggers in the cloud studio? I'm stuck, I just want to create a trigger where I send 3 whatsapp messages to 3 people without them having chatted to the bot before, how do I get this done, what do I feed into the trigger. Card to achieve this?
p
How do I get access to this beta?
q
Cant wait fot this
s
Can I also ask for access to beta for triggers? botosaurusdoo@gmail.com
k
Sent a dm to sly a little while ago, do you think I will be getting access today? (Also submitted the form you posted yesterday)
e
Hey @kind-shampoo-88969, I shall be giving access to everybody this weekend max. Will let you know once is done!
Fill the form aboeve and we will let you know once you have been added
k
Thanks! Appreciate it.
s
@early-train-33247 Please me access too! Thank you 🙂
Ill fill out the form
c
Can I get acess too?
e
Hey @crooked-hydrogen-21193, just fill out the form, please!
c
sorry I didnt see it was up there😂 I thought you was dm'ing it to people😆
e
We were! But we got lots of requests, so we decided creating a form 😉
r
Hi ! Anyway to have a form for this too ? 😄
Oh this is probably the triggers one
l
thanks. now people can spam your email
b
Hey everyone, just sharing an experience in case others have come across this problem. The triggers are working for me, but only if the chatbot window is ALREADY opened. That kind of defeats the purpose if you want the chatbot to greet the user. So running this snippet first (perhaps with a timeout delay) before triggering any events seems to do the trick: window.botpressWebChat.sendEvent({ type: "show" });
window.addEventListener("load", function() { window.botpressWebChat.sendEvent({ type: "show" }); });
a
can this be added to the pre-configured code or does it only work on the configurable?
b
That's the website javascript to be added in addition to the other code provided in this channel above
b
hi so i tried and yes the chat is opening but is there any merthod to make the chatbot text first?
b
Use the trigger code, sample further up. Opening the chat is just a pre-requisite to executing the trigger.
b
this one?
b
Yes
b
ok i will try to figure out thank you)
r
Hey, where should i add the code that you added in botpress cloud ? anyway?
Should i add a card with an execute code ?
b
All JS code listed here so far should be embedded in the webpage html, or other client-side location if applicable.
r
oh
Ok i see
c
Hi, I have filled out the form, what's next? 🙂
f
i just filled out the form too 🙂
e
Hey guys, I will give access to you tomorrow!
s
I also filled it out a few days ago. I would love to try it out as well.
f
Hi guys kinda urgent please im making an project for someone i need the trigggers if thats possible ?
a
Can i get access? aurorachatbots@gmail.com
f
please fill out the form in the thread, @early-train-33247 we will then get you in on the next batch.
f
🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
a
Submitted the form! Thank you!
t
Submitted the form aswell, Thanks!
a
Submitted as well!
s
Can i get access? bledfort@gmail.com
f
Make sure to fill up the form: https://forms.gle/t8n7TTYnVL65Ljcn6
e
Hey folks @here. I've given access to everybody else that filled the form (30 more people). To use the feature, reload the Studio and right click on the canvas/editor to see the Trigger node option! Remember that it's still in Beta, so issues may arise. You also need integrations installed to select trigger events - documentation and tutorials coming soon! 📚 Please let us know what you think! 🦾
s
Thank you!
r
Would love a tutorial about this 😄
a
I just filled the form, can I get access?
w
Works great! Can we expect it to work in the editor soon as well, for when we testing?
h
Hi, I filled the form too, can I get access?
t
Once I add a trigger node, what do i need to edit to make it start the conversation, which i can then route to my workflow
c
@early-train-33247 will give you access! 🙂 Make sure to fill in the form in this thread.
h
Thanks, I already filled it out
b
I just filled out the form. @early-train-33247 can you please give me access? Thanks guys!
v
Just filled out the form ✌️
g
What additional code do I need to insert in the page for the trigger to work?
b
I was added to the beta group and have been having trouble with knowledge bases all day. I can't get my bots to pull information from the KB and when I view the logs it says Skipping KB agent because no KBs are enabled. This occurs even if I create a new bot using the answer questions on documents method to bootstrap the knowledge and receive the alert that the bot has digested the info. Do you happen to know if this is related to the beta launch or something else?
j
Hey is there anything that can be done to trigger a bot to appear after a certain amount of time, or if a certain action is taken on the page.?
e
No, this is because OpenAI server are unstable = https://status.openai.com/
Yes, this is possible. Documentation comming soon!
t
Once I add a trigger node, what do i need to edit to make it start the conversation, which i can then route to my workflow
b
I also just filled out the form 👍
a
I didn't understand how this feature would help me start a dialog with a user the next day, a week later, etc. Not in response to a message, but proactively send a message from the bot side. What options are there to implement this?
f
so I started testing the trigger and it is working very good with the Wecbchat triggers. 🥳 👍 The lag between the trigger (e.g. event from a control on my web page) and the reaction of the bot might confuse the user and requires some smart handling. Example szenario: the browser raises an event while the bot is already open, then the user start entering some question and then the trigger initializes the flow, resulting in some initial greeting message. I am not grasping how to use other triggers such as the web hook, as such a trigger would require some information about my user's session. but maybe that is not part of the current implementation I guess ....so I will keep playing a bit - but a very good enhancement though!
s
Hi guys, I am playing with the trigger function. I was able to open the chatbot once the page loads but I can't display a greeting message. This code here in codepen doesn't work. So i am wondering if someone managed to make this work. And how? Thanks in advance
Ok, I made it work. The problem was that I was calling the: window.botpressWebChat.sendPayload({ type: "trigger", payload: {} }); Before the chatbot was loaded. I solved by using this: window.addEventListener("load", function() { window.botpressWebChat.sendEvent({ type: "show" }); }); then using a timeout() to wait for the chatbot to load. Still I feel that it's not the best solution since the time to load vary and my timeout is fixed. Do someone was able to add like an event listener to understand when the chatbot was ready?
And this is the botpress side. Didn't use any execution code
r
Yeah you can see in my codepen the use of listening on
"LIFECYCLE.LOADED"
p
where do I put the code in?
s
Thanks! Gonna try it
In your website. If you use wordpress, just install some plugin that let you put code dynamically
p
Thank you I'll test it right now
Can you send me the full script? I don't know coding and I am not sure where to paste that block you showed
s
let me implement sly's adjustment and I'll send you the full code
cause now it's not working properly
BTW, if you plan to use botpress in the future, I extremely advice to learn - at least - the basic of javascript with some YT videos
a
also having w3schools javascript reference page open isn't a bad idea
s
@rich-battery-69172 what's the interface of the onEvent() function?
first argument -> function to execute second argument -> array of events ?
I am using this: window.botpressWebChat.onEvent( function() { window.botpressWebChat.sendPayload({ type: "trigger", payload: {} }); }, ["LIFECYCLE.LOADED"] ); and it's not working.
The code in codepen doesn't work too, I mean, within codepen doesn't work. But it's not clear to me
anyone can help? @freezing-printer-49373 @acoustic-hair-60678 @early-train-33247
s
Just filled out the form!
Well yesterday..
s
Hi, I just filled out the form, when can I get access?
p
Has anyone managed to fix this?
h
I want to know too 😩
s
I don't know if it's something I am doing wrong or it's some bug in the beta that needs to be fixed. Cause in the second case I would go all in on workarounds
s
has anyone figured out how to make to chatbot initiate the conversation first, something like" greetings, how may I help you today"? I have the trigger option installed (thanks for that btw)
Still not sure how to use though
p
Same here
w
@rough-smartphone-28502 check this
c
Just filled out the form and messaged @rich-battery-69172 as well. Thanks in advance!
s
Here's what works for me with a workaround 👇
window.botpressWebChat.init({ // bot configuration }); // executes when the page loads window.addEventListener("load", function() { // open the chatbot because the trigger doesn't work if the chatbot isn't open window.botpressWebChat.sendEvent({ type: "show" }); // workaround using 'Timeout' cause the 'onEvent(function(), ["LIFECYCLE.LOADED"])' doesn't work and we need to trigger this only after the chatbot is loaded setTimeout(function() { window.botpressWebChat.sendPayload({ type: "trigger", payload: {} }); }, 3500); // 3.5 seconds, not too short to let it load, not to long to have a message too delayed });
And this is the botpress side
p
Just filled out the form. Would appriciate access! 🙂
a
hi KDL, i bet if you made a short video regarding how you got the conversation trigger to work, it would give you a lot of views. Great work.
s
Thanks man will do!
s
Yes pleaaaase make a shot video 🙏🙏🙏@straight-musician-77995
s
editing...
p
Thank you @straight-musician-77995 ! I'll watch the video right away
s

https://youtu.be/3XgDAhYgApw

g
@early-train-33247 @freezing-printer-49373 I filled out the form
Good video! What do you think about this code (as an attempt to trigger as soon as the component loads)
Copy code
const interval = setInterval(() => {
  if (window.botpressWebChat) {
    window.botpressWebChat.sendPayload({
      type: "trigger",
      payload: {}
    });
    clearInterval(interval);
  }
}, 1000);
s
yoo that seems better than mine
not sure if window.botpressWebChat will populate only after the bot is fully loaded or it populates anyway even before
if you test it let me know so that I can change mine
g
True! I'll have to test it out when I get access to Triggers
p
Is there a way to modify it so it's only an automatic greeting when you click the button?
Join website -> click button -> chatbot greets you
@straight-musician-77995
s
Yeah
You have to run the function when the button is clicked
p
Sorry, I am completely uneducated in coding. How would the script look like with these changes?
s
sorry brother but I have some much stuff to do and today I already did my best with the time I have to help everyone. if you want I can send you an invoice and help you
otherwise I would suggest to ask the botpress team
or learn the basic of coding
read this code while you learn, can be helpful
cause it's the chatbot triggered with a button but you still have to use my workaround
p
Alright thank you I'll give it a try
s
how can i get trigger access?
@rich-battery-69172 Hey man, any way I can get access to triggers?
g
@early-train-33247 @rich-battery-69172 could one of you give me access to Triggers please? 🥺 I have been wokring on this bot all day and this is the last thing I need
s
Same. Please! Thank you!
Do i have to be paid member to get access?
b
No
p
🙏
s
Did you test it?
s
How do i know if the trigger card is activated? Do i have to log out and log in?
case (workflow.lengthofBoat >= 20 && workflow.lengthofBoat <= 35): workflow.nextMsg = "Your Full Detail + 1-2 Coats of Ceramic will include:\n"+ "-Deep Wash (Pressure Wash, Degrease, Foam Cannon)\n"+ "-All Buffing Stages (Heavy cut, medium cut, DA orbital)\n"+ "-Cockpit/Flybridge, Windows, Compartments, Gutter Tracks, Non-Skid, Stainless, Upholstery\n"+ "-Prep For Ceramic\n"+ "-1-2 Coats of Ceramic Coating"; break;
Any reason why this code is not showing as a list in chat?
it still comes out in 1 paragraph.
nevermind got it
s
Filled out the form, how long does it usually take to get?
t
how do i install integrations, to then initiate triggers? cheers
s
@straight-musician-77995 Hey man, thanks a lot for the video. Can you share the code you used please?
ah I found, you already posted it, I appreciate it!
Doesn't work infortunately 😦
@straight-musician-77995 I tried combining the embedded version on my chatbot with the code you provided: window.botpressWebChat.init({ // bot configuration }); // executes when the page loads window.addEventListener("load", function() { // open the chatbot because the trigger doesn't work if the chatbot isn't open window.botpressWebChat.sendEvent({ type: "show" }); // workaround using 'setTimeout' because the 'onEvent(function(), ["LIFECYCLE.LOADED"])' doesn't work, and we need to trigger this only after the chatbot is loaded setTimeout(function() { window.botpressWebChat.sendPayload({ type: "trigger", payload: {} }); }, 3500); // 3.5 seconds, not too short to let it load, not too long to have a message too delayed });
Any idea why it didn't work?
s
I used this exact code
Make sure that you put your chatbot data inside webchat.init
Ah I see
You put 2 times the chatbot config function
First yours pre-configured, them mine manually configured but empty
Remove mine
s
@straight-musician-77995Thanks a lot that was it. the webchat opens by itslelf now
one more question please
about the first message it sends, is it supposed to be handled by the code on inside the studio ?
s
What you mean?
s
because I wish to make the bot make a greeting message after webchat opens but I don't know where to put the message. for now it just opens the webchat
I created a trigger on the studio and linked to my main "knowledge source"
s
First thing first put the greeting message
Like I show in the video
You have no message in check knowledge. That's why there's no message
s
Yes that makes sense hhhh
it still doesn't show the opening message 🥲
in the chatbot
g
I have been using this
Copy code
<script>
      window.botpressWebChat.onEvent(
        function (ev) {
          window.botpressWebChat.sendEvent({
            type: "loadConversation",
          });
        },
        ["LIFECYCLE.LOADED"]
      );
      window.addEventListener("message", function (event) {
        // console.log(event.data.type);
        if (event.data.type == "LIFECYCLE.READY") {
          window.botpressWebChat.sendEvent({
            type: "trigger",
            channel: "web",
            payload: {
              text: "",
            },
          });
        }
      });
    </script>
Works Perfectly everytime.
Also I included this in the header, to hide the button unless the conversation has started. And after the Event is sent, use this document.getElementById("bp-web-widget-container").style.display = "block";
Copy code
<style>
      #bp-web-widget-container {
        display: none;
      }
    </style>
s
Is there a documentation on how to use "Trigger" function please?
s
no cause it's still in beta
wow, gonna try it, wasn't working for me
s
@gentle-shampoo-88367 that's great, can you please share how did you implent the code along side the pre-configured code of the chatbot?
s
@gentle-shampoo-88367 I just tried your code, it loads the message correctly but doesn't open the chatbot. I tried to add "show webchat" execute card, but nada
did you do something else?
g
@stale-helmet-36625 Just add this script tag in the head tag, after you have included the preconfigured code. and in the bot do as below
@stale-helmet-36625
@straight-musician-77995 Yes this wont show the webchat, to show the webchat just use the workflow as below:
s
did you test it?
g
I dont like the idea of slapping the chatbot in face of the user so i dont show it up
s
Yeah makes sense
Testing RN
g
@straight-musician-77995 Yeah, i just tried it again like this, and it sends the message and opens it up as well.
s
Strange... Now it doesn't load the messages, neither it opens.
Console log is clear
Copypasted your code
And config botpress like this
i forgot the conversation ID
trying again
g
let me know if it doesnt work
s
nope
still doesn't work 🤔
g
Do you have the event set in trigger?
s
Wait Magic! It's working, I just refreshed multiple times, prayed a little bit and works
Thanks
g
Well i would say always test in an incognito window
s
yeah indeed it worked there 🙏
g
if its not clear enough for everyone else, let me know I will make a wuick loom
m
Hey mate! I'm lateto the party but.. could you give access to trigger feature as well? I just filled out the form
@straight-musician-77995 I just saw your video, i am having an issue with something else and i could spot that you are being able to do what im struggling here, i's pretty simple. I dont wanna use the pre configured stuff, so im trying to use the configurable code that botpress provides, but simply copying and pasting that code into my code snippet on my wordpress website isnt working. The webchat box simply disappears. If I copy and paste the pre configured stuff the box works fine...
I saw on your video you are configuring your bot just fine through code snippets on your website
got any tips?
s
can you share: 1) a screenshot of the problem 2) the code you are using 3) BONUS: a screenshot of the console log (on chrome: F12 -> console)
m
sure hang on
1 - the code from botpress 2 - copy and pasted exactly the code into my wordpress website, saved changes 3 - the chatbox disappeared
what you think
keep in my that if i do exactly the same thing, only copying the pre configured stuff and pasting on this code snippet the chatbox works pretty well
let me check the console
s
mgg
interesting
Honestly I have no clue
m
and putting this
s
Try to change this setting to body
m
this little guy appears
right
let me see
damn
s
works?
m
thats it mate
yeah
i feel stupid
s
ok nice
m
thanks mate
s
Feeling stupid daily it's normal for a developer
m
hahaha
p
does anyone know how to make a botpress trigger to make the chatbot message first when you manually open the button
s
this is extremely frustrating, for the life of me I can't make the bot initiate the conversation lol
f
hello all, can anyone provide a simple explanation as to how to send a first message when the user clicks the chat icon? Yes im in the beta for triggers but cant remember how to initilise it
or even how to "show web chat" as i noticed that a new feature added to the trigger
me to, and ive been using botpress for a while now
this sworks great when user clicks the chat icon button, but it doesnt opne the chat automaticall when user lands on the page....
p
could you show the workflow of how you did this?
f
followed the message and yes it worked. Thank you for the time you spend helping others.
p
Guessing I must of made a mistake in the form. Re submitted 🙂
f
There is a slight problem with these triggers, if the page is refreshed it starts the conversation from the beginning and starts the trigger process again. Is there a way to trigger this event once per session or until the conversation has either ended, or deleted?
g
I have provided the solution for that as well in my messages
See this for opening up the chatbot windoe
f
yes got it working, thanks a lot!
a
Hey! I filled the beta form, please invite me when you can. I need the feature ❤️ Thanks
p
@gentle-shampoo-88367 is your solution so only when you click the button the chatbot sends the greeting message? if so, mind making a quick loom? It would be appreciated thanks
g
Nope, it would send the message as soon as botpress is complete loaded
I would make a loom till EOD
p
Oh ok
g
I don't think I have access still
@freezing-printer-49373 @rich-battery-69172 @acoustic-hair-60678 Could I please get access to Triggers 🥺
s
@gentle-shampoo-88367 Thanks for the code, it finally worked 😄
r
@gray-breakfast-23855 hey sorry, @early-train-33247 is on leave today but will give you access tomorrow 🦾
g
awesome, thanks so much!
s
@gentle-shampoo-88367 I have a little weird issue though ,don't know if it happened to you but I created chatbot from a website base and when the bot says the initial greeting, it follows it from the "fallback" node
it's like it searches for something from the knowledge base after the greeting then answers from the "fallback" node, any idea why plz
g
Well that doesn't happen on any one elses bot, so it maybe something in your workflow?
m
@freezing-printer-49373 @rich-battery-69172 @acoustic-hair-60678 Could I have access to triggers too please?? :000
s
@gentle-shampoo-88367Here is my workflow
anything obvious that make create the problem?
b
Try making a new node with hi How Are you? and Set User Language tasks, and then connect to the check-knowledge node
so Trigger 2 -> Say hello -> check knowledge
s
Ah Actually that's a great idea, I will try it thanks
g
Also place the toggle chat card at the top of the node
a
m
Thanks so much!! You guys are awesome!
a
s
@acoustic-hair-60678 Hey david! I've signed up was wondering when I can access.. pls
m
ohh good news! thanks guys
a
Guilhermy is on leave today, but will be granting access tomorrow
s
Awesome thank you!
h
Just filled out the form!
t
I think it is, I can't get the webchatReady event (but as weird as it is I can get it from the bot on the botpress homepage)
s
just filled out the form! can't wait to try
n
have also filled out form, thanks team
s
have also filled it out. Thank you!
g
@early-train-33247 please can I have access? Filled out the form a while back
a
**UPDATE**: everyone who submitted a form up to this point should now have access to the Triggers Beta! 🎉 Right click on the editor and the trigger option will show up.
e
I am tagging everybody @here, just to make sure you are aware of @acoustic-hair-60678 message!
g
Thank you @acoustic-hair-60678 @early-train-33247!
s
Thank you @acoustic-hair-60678 @early-train-33247 😄
m
hey guilhermy! thanks for your help! It looks like I havent gotten access to trigger in my account, I did submit a form days ago, just submitted again to be sure. Should I some else to get ii?
a
Thank you so much! 😄
e
Hey mate, you probably entered a wrong email address, but I will add more people tomorrow!
m
oh right thanks!
r
@everyone It's been a few weeks since we opened Triggers to the public! We're looking to productionalize the feature in the coming days... It would awesome if you could fill out this short 3 questions survey! In exchange, we will unlock the next Beta for you when it comes ⭐ Feedback Form ==> https://forms.gle/ADLNifArPkgXYHgR7 Thanks!
m
Thank you so much 🙏
r
Is this using the Beta features or is this how we could do it now, without the Beta?
r
Beta
b
Sorry didn't go through the whole thread. So this will allow the bot to chat first? do I have to sign up for beta or will it rolled out soon? Thanks heaps Botpress team!!!! 🙏
m
I sended the form
f
done
e
Same question here, will it roll out soon? I just filled out the first form to get beta access. It'd be very important for my use case.
a
Hey! Just submitted the form.
s
I’d like to sign up for the beta please!! 🙂
c
Simply fill out the form in this thread so we can grant you access!
Yes!
s
The only form I see is asking how we used the beta?
e
m
Can you create an article on how to let the bot start the conversation
s
@miniature-france-87954 you can find a tutorial here:

https://www.youtube.com/watch?v=3XgDAhYgApw

@everyone is there any way we can send information to the bot before he sends the first message so it can include that info into the first message dinamically? Ex: name -> "Hi there, i'm [name]. What can i help you with?"
r
Are any of you using this Triggers beta on production websites? Have we gotten any kind of ETA on when this will be rolled out to everyone?
e
Just submitted the form! Really interested in testing the proactive feature as it's one of the key factors of a chatbot in general + boosts the conversions
@early-train-33247
b
I've just submitted the form and really excited to test and give feedback on these beta features ✅ @early-train-33247
m
AAA QS
e
Hey guys @enough-fountain-14338, @bored-soccer-13754 and everybody else that filled the form - you have access already!
This is how you add triggers!
m
Thank you for pinning this, came here exactly to look for this answer. I've submitted the form and can't wait to implement it
d
so is this open yet?
if so how do i do it
r
still closed beta - @early-train-33247 will give you access soon! (fill out the form above)
v
I havent got access yet, just checked
b
I submitted the form again (used the wrong email 🤦‍♂️ ). Sorry dear, may you add me again please 🙏 @early-train-33247
m
Anyone that successfully been able to let the bot interact first? Have been trying a lot of things without succes. When trying out sometimes it works on the test bot, but never when embedded.
s
Yeah, there are multiple ways to do that, above there's a lot of materials. Also a video tutorial I recorded
a
Love it, thanks very much for the code 😄 I advise also everyone to add a filter in your inside the trigger in order to avoid triggers firing in case users refresh the page
d
@gentle-shampoo-88367 can you help me for a sec?
in the head tag after the botpress stuff
that should work right?
g
Yes it should,
Can you send a ss of your js console
d
hmm
sure one sec
(it is locally hosted rn idk if thats a problem)
(everything else is working fine)
the css is my bad
i have a link to a stylesheet but i just deleted it
should i add a console log in it to make sure its loading?
m
i was marked in 2 responses so far but havent been added yet to the triggers beta. Do i need to do anything more than filling out the form?
d
@gentle-shampoo-88367 made some progress
now
it still doesnt pop up
but it sends a message before the user opens
that is an error
so I think it has to do with the filter
what do I put in the filter?
@early-train-33247 did you remove my triggers or something
e
No! Don't know what happened
Everybody that filled out the form until now has access to the triggers
m
When will this feature get rolled out to everyone?
t
@straight-musician-77995 Hey man. Sorry to bother you. I have a quick question regarding how to get the chatbot to initiate the conversation first on the website. I have set up a trigger node, and connected it to my starting conversation node. The setup is correct on botpress and identical to your screenshot that you put in the discord. On my website, where I insert the html code to add the chatbot, I tried (seperate attempts) firstly putting in either the "pre-configured" code or the "configurable" code from botpress onto my website code (im using wix), and then below that chatbot code, I have pasted in the code that you put on the discord as an example as to what works for you to make the chatbot initiate the conversation. However it still isn't working. I have also watched your yt video and tried that code. Do you have any idea what I could be doing wrong? Am i supposed to re-configure the configurable code on botpress before I use it? I have no clue as to why its not working. Cheers
b
how do I do this?
e
Is the conversation initiating trigger only going to work when the bot was implemented on the website or can it be tested when using the pre-configured shareable link too?
@early-train-33247
s
so, it does work (the chatbot) but doesn't open, right?
anyway, would be helpful to have: 1) screenshots of the interface where you put the code 2) screenshot of logs (F12 on browser -> console) 3) screenshot of the botpress side 4) the code
I know you said it's the same of mine, but better sure than sorry
a
Create a variable that is filled once the initial greet is pushed in the chat. If Variable === “undefined” you are good to go. This is the theory, just work it out in Js with chatgpt 😄
e
.
@early-train-33247
e
The shareable link allows starting conversations with messages, it doesn't have access to the triggers.
It's just for testing purposes
But the Webchat integration does!
n
yeah working perfectly
m
Can you DM me?
a
mrfentr@gmail.com
m
Hey guys i need help... i filled out the form 2 times but i still dont have acces to the triggers. if i righclick in botpress it only shows standard node exit end comment execute a workflow.. Do i have to put a code somewhere or do anything else? Thank you
f
I need help with this
r
anybody has the code to put in website for the trigger to trigg when the person click on the chatbot and not when the page loads? thanks
f
I have zero expertise, where do I past this in?
a
hi mrfentr, we give access to the triggers beta after you've filled out this form: https://discord.com/channels/1108396290624213082/1121833577659768893/1128691956512464896
r
god i need help with this xD i've searched all the chat. All i can find is a youtube video explaining how to trigger when the page loads. i just want to trigger when the user clicks on the chat widget... Goddamnit its hard 😦 sadge
hard to be a newbie nowadays
f
Im really bad with coding, it would be nice for some of the Botpress team to make a video for the Bot to take the initiative conversation
g
@full-lifeguard-52310 you would add it to the head section of your html page
a
yes jwk, once triggers come out of beta documentation will follow
w
@rich-battery-69172 have filled the forms a few times but no access yet
l
Can someone send me the code to paste on the website to let the chatbot initiate the conversation?
r
need 😛
m
where do you place the code guys?
r
I want the triger to be when the user clicks on the chat widget. not the case here unfortunattly
l
Na I think this is a whole new code haha, changed my whole page
e
You definitely have access already! Reload the Studio and right-click the editor to see the Trigger node option 😉
Hey! @everyone that filled out the form until now already has access to the Triggers!
m
I am one day late then 🥲
e
Don't worry, more people shall be given access tomorrow!
s
Just filled it out, happy to wait till tmrw though
l
Can you send us the proper code for the website in here again?
Used this one and it only results in seeing this "Poractivie Trigger Example" page which is not what we want😂
g
@loud-area-39646 try this
l
Worked, thanks a lot!
g
just upvote/react on that message so others can also refer to it
m
Oh im sry 😅
l
Don´t worry
Is anyone else struggling with importing bots? 2 days ago it was no problem at all but since yesterday I am not able to import anymore?
r
In your code @gentle-shampoo-88367 does it triggers wjeb the page loads or when the user click on the chat widget ?
g
on webpage load
m
Will I be given access to triggers? I filled out the form a while ago.
c
You might already have access @most-butcher-34974. Reload the Studio and right-click the editor to see the Trigger node option. Let me know if you see anything! Tagging @early-train-33247here to make sure you do have access.
a
@early-train-33247 a bit late to the trigger party. Can you add me please. Form filled.
m
Got it! Thank you so much!
c
when will this feature be accessible outside beta? It's hard to implement the trigger without video or doc tutorials.
l
@early-train-33247 I have filled a form yesterday, any chance of getting beta? This feature is exactly what I need now
e
Hey folks, a new batch was given access right now!
Reload the Studio and right-click the editor to see the Trigger node option @late-crowd-66808, @adventurous-glass-22349
That shall happen in the next weeks, stay tuned to #1111016943370113174 We do have documentation on Triggers, check it out - https://botpress.com/docs/cloud/toolbox/events-triggers/ - Tutorials on that coming soon!
Form to request access to Triggers: https://forms.gle/t8n7TTYnVL65Ljcn6
j
Thank you! Any updates on this? 🙂
m
anyone know what i am doing wrong there ? when i test the trigger it start the conversation but if i don't activate the trigger the chat doesn'tt start by itself
g
is there anyway to simulate the visitor sending a message to the bot? so that it automatically start the conversation when the chatbox opens?
this is the script i am currently using
p
Hi, how do I get acces this feature?
g
Yeah, I'd love to get this feature too. How do I do it?
m
hello , i filled the form yesterday, how do i get access ?
a
Would love to get access to the beta with triggers as well!
g
Filled the form a couple hours ago
b
I have fillied out the form. Do i get access now?
c
Simply fill in the form and we'll give you access to it.
@early-train-33247 will give you access today.
g
Where is the form though?
c
Check the pinned messages!
p
i have filled out the form and am happy to use the feature. is there any documentation on this?
r
I got the trigger thing to work ! Its great thanks ! Is there a way that the welcome message is delayed a bit so it gets more of natural feeling? Right now, when i click on the chat widget, the chatbot pops with the messages already in. thanks
c
when can we expect access after filling out the form?
c
Usually 1-2 business days (max) after filling out the form. We do it by batches.
That's a great question that I don't have the answer to. Will get back to you later on this!
Alright so, it's currently not possible. BUT, I would suggest dropping the idea in the #1111026806254993459 !
p
@crooked-van-25152 can I use the trigger with WhatsApp?
c
Okay, thank you!
q
Thanks so much for your guidance on this. @gentle-shampoo-88367 I have the bot opening but just not populating the first message. I've been testing for about 2 hours now and have hit a wall. Can you look at the following code to see where I am misaligned? I will truly appreciate it! I have added my code and screenshots for context.
g
You are saying that chatbot is opening but there is no messge?
q
Yes, thanks so much for the response.
g
Can you show me the console log? or the site where its placed?
or you can DM me as well
q
Everyone using Safari, I found that will editing in Botpress Studio it was not saving and was in an endless Publishing loop. This caused me 2 hours of delay. Just a heads up!
Thanks for all of your help with your solution!
g
I've also filled out the form, and my Botpress email is oleg@evolva.ai Waiting to get access. The customer support and community that you've built is amazing. Wishing you all a productive day
b
can somebody send a code of how to make the chatbot pop up and start send messages?
w
Im sorry to be a hassle but is anyone able to tell me where I am going wrong with the below code? I have been banging my head trying to get this to trigger over the last day or so, yet still can't!! Im wanting to present it to a client but the trigger feature is such a big addition to the overall experience and liklihood of a customer interaction. Any help would be greatly appreciated window.botpressWebChat.init({ "composerPlaceholder": "Chat with trainer", "botConversationDescription": "test1", "botId": "82a8f020-4055-4fdb-824f-cbf283e1c055", "hostUrl": "https://cdn.botpress.cloud/webchat/v0", "messagingUrl": "https://messaging.botpress.cloud", "clientId": "82a8f020-4055-4fdb-824f-cbf283e1c055", "botName": "Sick Cunt", "stylesheet": "https://webchat-styler-css.botpress.app/prod/fdda8d92-a5b7-445b-b192-e5c8728b4fc8/v63897/style.css", "useSessionStorage": true, "enableConversationDeletion": true }); window.botpressWebChat.onEvent( function (ev) { window.botpressWebChat.sendEvent({ type: "loadConversation", }); }, ["LIFECYCLE.LOADED"] ); window.addEventListener("message", function (event) { // console.log(event.data.type); if (event.data.type == "LIFECYCLE.READY") { window.botpressWebChat.sendEvent({ type: "trigger", channel: "web", payload: { text: "", }, }); } });
b
I want to know how to that too
s
same here
oh nevermind it works
b
if somebody finds tutorial send it here
@salmon-midnight-96260 send your code plz
s
i put the script directly after the script from configurable: window.botpressWebChat.onEvent( function() { window.botpressWebChat.sendEvent({ type: "loadConversation" }); window.botpressWebChat.onEvent( function(event) { console.log('RECEIVED FROM STUDIO ==>', event); // if (event.value.type === 'navigate') { window.location.href = event.value.url } }, ["TRIGGER"] ); }, ["LIFECYCLE.LOADED"] ); window.addEventListener( "message", (event) => { console.log("message from iframe", event); }, ); function sendPayload() { var textInput = document.getElementById('textInput'); var text = textInput.value; window.botpressWebChat.sendPayload({ type: "trigger", payload: { text: text, currentUrl: window.location.href } }); textInput.value = ''; }
to open the chatbox and then have my bot message** to clarify
w
Thanks for that, I must be doing something very simple wrong! Do you add it to the wordpress snippets or?
@salmon-midnight-96260
s
my clients using webflow so I put it in the webflow "add code before the /body tag" part
with the configurable script in the line abov eit
@wooden-school-32232 any luck
w
@salmon-midnight-96260 Mm still can't get it to pop up. I'll keep playing around and go back over steps
m
hello @crooked-van-25152 , i have filled the form 2 days ago , still doesn't have the access
s
yeah sounds good
I've noticed that if I message before the initial message, it sends the first block twice. Anyone know a fix for that
e
you do now! please reload the Studio
p
@early-train-33247 can you give me access too?
e
Everybody that filled out the form until now has access! Reload the Studio and right-click the editor to see the Trigger node option
m
thank you ! i got the access
where can i find some documentation on triggers please and how to use them ?
c
Thanks Nolan! That's super nice of you 🙂 - @early-train-33247 should be able to give you access today!
n
antoine.seremet@gmail.com
a
Just submitted the form! Really interested in testing this feature
s
Hey guys do you know where I can find that form?
a
⚠️ ℹ️ If you want to have access to the Trigger feature, please fill out this form: https://forms.gle/t8n7TTYnVL65Ljcn6
s
Appreciate it! By any chance someone knows 1 how can I see all the answers stored in variables? And 2 how can I send a notification when someone answers the chat
m
hello there how can I have the conversation started without the users having to send the first message ? I am not sure how to use the triggers event I have read the docs but would appreciate a visual exemple 😉
t
@rich-battery-69172 filled out the form, could you add me to the beta programm?
a
@early-train-33247 Can I have my access please?
e
Hello @early-train-33247 , I filled out the form, could you add me to the beta program?
t
how can set the bot start the conversation only when the site loads once? Cause my bot starts showing strange behavior and i'm lowkey scared
last 2 questions started after I refresh a page. Thank you in advance 🙂
b
we need a example on how to use the triggers
c
I filled out the form a few days ago.. where should I see the trigger option?
e
I have the same question @curved-traffic-97676
t
Right click on canvas
c
Thank you for your reply, but I still do not see it, I should see it in the filter cards section, is that correct?
t
Nope. Just right click on canvas, there will be some options like Comment, Copy….
Triggers are locating there
c
Thank you, looks like I do not have that option yet
f
This is what I was looking for. Glad they're made it. You guys are awesome!
c
@early-train-33247 if you can add Jberroa0204@gmail.com I will appreciated. I submitted the form several days ago. Thanks in advance.
c
please notify me when the next batch of user access is granted as i am in the waiting que, thank you
t
Please try to add the mails asap.
I really need to finish ongoing work for a client and the feature is mandatory! @early-train-33247
f
My question is @early-train-33247 @rich-battery-69172 . Is Botpress triggers launced for the general community for now or not?
e
@early-train-33247 Do you know how much time it takes to be accepted on Botpress Beta?
g
i am using this code. and it works fine for me. just replace bot_ID with yours
Chatbot #myButton { display: none; } window.botpressWebChat.onEvent(function(event) { if (event.type === 'LIFECYCLE.LOADED') { window.botpressWebChat.sendEvent({ type: 'show' }); window.botpressWebChat.sendMessage({ type: 'text', text: 'Hello' }); window.botpressWebChat.sendEvent({ type: "loadConversation", }); } }, ['LIFECYCLE.LOADED']); window.addEventListener("message", function (event) { if (event.data.type == "LIFECYCLE.READY") { window.botpressWebChat.sendEvent({ type: "trigger", channel: "web", payload: { text: "", }, }); } });
this line in the script does not show properly, so i've added a screenshot
b
Thank you! Works perfectly. Do you know the code to pop-up the chatbot as well?
e
Not at the moment, it shall be released in the next weeks!
@everyone that filled out the form until now has access to the Triggers! Reload the Studio and right-click the editor to see the Trigger node option!
g
Send a DM!
e
Hey @gifted-thailand-51685, please fill out this form to get access: https://forms.gle/t8n7TTYnVL65Ljcn6
c
I see it now.. Thank you @early-train-33247
w
where i can know better about this trigger i just filled up the form
c
w
thanks a lot
c
np
e
Hey @gentle-shampoo-88367 , thank you for your help! It is working very well here. I just have one question, Where exacly do I need to add these " document.getElementById.." ? I am trying to hide the button just like you said
t
@early-train-33247 I filled out the form several days ago and still cant see the trigger option...
g
@elegant-psychiatrist-26453 you may add that line right after the sendMessage code, or just before the closing script tag
n
@early-train-33247 Just wondering how long it usually takes to get access after filling out the form? Dont wanna stress, would just love to know how long it takes approx.
w
Bud awesome job! I appliead it, but it loads twice instead of once. Would you know of a way to only load the chat once?
h
Awesome customer support here, thank you team! I just applied for the triggers beta @early-train-33247
g
I assume we will receive an email once the Beta request has been accepted?
Nice plague nft
e
Got it!!! And when I send a message before the trigger is activated it triggers my chatbot 2 times, how can I avoid this double trigger?
l
where do I go to apply for the triggers beta?
w
thanks -)
e
Fill out the form scroll up it’s somewhere
e
Did you reload Studio? You might have entered a wrong email address. Please fill out the form again so Ican give you access tomorrow
Couple of days!
t
done
c
I have already Filled the form but you didn't gave access to me
j
is there a way to get it faster
i applied right now
i need it for a client who wants this urgently tomorrow
is it possible to get access to it now?
im really sorry for being so urgent i dont wanna slow you guys down
c
This feature is quite important. Could we know when it would be public? Because having it beta is quite troublesome, need to fill up forms etc
e
Hey @thankful-processor-79226, @cold-postman-19472, @jolly-translator-89976 and @creamy-hair-86823 you have access now!
In the next couple of weeks! We are gathering some more user feedback before releasing it to everybody
e
@freezing-printer-49373 @rich-battery-69172 wait how do I sign up
f
you need to fill this form https://forms.gle/t8n7TTYnVL65Ljcn6
e
Anyone create a video on how to use triggers yet?
h
Guys, when do you plan to release officially triggers? We have a lot of requests from customers for this feature.
l
where will it say I have access to triggers once I have filled out the form?
b
It' won't send you any notice, you will just look at some point and see that the feature is there now
c
looking forward seeing the release of this 🙂
c
Exactly. You might need to reload the Studio and right-click the editor to see the Trigger node option!
m
Hi, i really need this for a client but signed up for it about 4 days ago, how do you check if you have been added to the list yet?
c
Did you reload the studio? You might already have access.
m
As in reload the page? if so yes, when i right click all that appears is disconnect node
n
Hey, just applied for the form. Anyone know how long it takes before it's available? Also where exactly does it appear?
s
Hi There, did the form a couple hours ago, understand you guys are busy but would really appreciate getting access, got a client I have built a bot for that is live that is on my case! Thanks so much. Email for account is: william@willbot.ai
j
thanks so much @early-train-33247, i only had one question tho. and that was that if i transfer the email for my account to my clients email will they still have the triggers or do i have to reapply
@early-pharmacist-26208
s
Did you find any solution for this
f
i filled this form a while ago, and still haven't gotten access
a
Hi, just filled the form
b
Hi can anyone provide me the code and tell about how to use it in botpress
m
Just filed in the form!
p
Filled in form too, messaged sly but no access yet. Would appreciate it if someone can allow this for me.
b
Done. After how many days, I get access to the trigger feature
Just get trigger option.
m
As in reload the page? if so yes, when i right click all that appears is disconnect node
e
What do you mean by transferring the email? Each account that needs access needs to apply
Folks @here, a new batch was given access. Please reload the studio, and right-click on the editor/canvas to see the Trigger node option
Be sure to check out the documentation: https://botpress.com/docs/cloud/toolbox/events-triggers/
b
i applied too @eager-state-25177
n
Cant wait!!
a
Waiting for my triggers feature approval!
f
Just signed up for the beta - excited to use triggers!
b
Is there an explination somewhere on the Telegram trigger?
l
How long did it take you guys to get trigger access? I signed up 2 days ago.
Is there any way I can email the botpress team/support asking for triggers? I need it very soon for some clients.
f
did you refresh your page. force refresh that is
we gave access to a new batch today
can you resubmit sometimes, one of the issues is there could have been a typo in your email. Make sure to provide the email you registred with
l
It will show up in the cards section right?
s
Hi I have also just filled up the form. Hope I could also get access soon. Thank you!
s
Also just filled out the form, really need the feature
o
All the events are gone for my ID somehow. Not sure how.
t
are triggers also working in the "Test" Section?
cuz my triggers doesnt get activated after it gets triggered
e
Hey @everyone, a new batch was given access right now! Please realod the Studio and right-click the editor to see the Trigger node option!
Be sure to check out the documentation: https://botpress.com/docs/cloud/toolbox/events-triggers/
c
Nice !!! 🙏
f
@early-train-33247 thank you! Question about triggers - would this replace the "start" node if you wanted the trigger to trigger the start of the bot interaction?
also, where should I be providing feedback? Here?
question, if I just want the bot to automatically trigger on page load would I add this under the js file? window.botpressWebChat.sendEvent({ type: 'show' })
feedback on docs: I think one of the main use cases is going to be: how can I get my bot to automatically trigger on page load or after a certain number of seconds? Having that documented would be rad
b
Yep. I am triggering exactly this on LIFECYCLE.LOADED . Please see the above link! 😎
g
@fancy-breakfast-34453
f
Thank you!!
and then do you have a start nod and a trigger node that both go to the start of the branching?
@broad-librarian-27137 ^
you mentioned creating a loom above - if you have that would appreciate!
e
I am with the same doubt
b
Yes! And I think I picked ”Conversation start” from the trigger menu.
f
@broad-librarian-27137 thanks! I'll try adding the trigger as another start branch as above with the trigger "Webchat | conversation started" and see if that works with the code you noted
b
Good luck! At least my initial tests seem to work and the bot acts proactively immediately upon page load.
d
ok, so I have access to triggers but I still have this issue that whenever I ask the bot it's first question on my website it takes a long time to respond, how do I solve this with triggers?
e
This only happens on the first conversation after you publish updates!
f
I'm still not able to get the bot to automatically trigger open on page load 😕 Thanks for the guidance @broad-librarian-27137 , not sure what I'm doing wrong on the set-up
e
Becca, did you fill out the form for the Triggers?
f
@early-train-33247 to get access you mean?
e
When the conversation starts from a Trigger, it starts from the Trigger node instead of the Start node
f
@early-train-33247 ah ok, helpful
should I remove the link to the start node?
d
@early-train-33247 hey! Question - when was the latest batch approved for triggers? Would love to try them
whoops, didn't see you other post lol
e
No! Otherwise the conversation will never start when the user sends a message
The conv beings from the start node when the user sends a message, and it begins from the Trigger node when an event was triggered
f
ah gotcha
and then how do I have a message auto-send versus requiring a user interaction first?
In case it's helpful to others! I got the bot to auto-open with the following: - Set-up a trigger (in addition to the start node) that then goes into the first node in my chat path - Set the trigger to "Trigger On: Webchat | Conversation Started" - Set "Current filter" to always - Added the following code below the js files for the bot: window.botpressWebChat.onEvent( function (event) { if (event.type === 'LIFECYCLE.LOADED') { window.botpressWebChat.sendEvent({ type: 'show' }) } }, ['LIFECYCLE.LOADED'] )
now to get the first message to auto-send!
Thanks for the help @broad-librarian-27137 @early-train-33247 ! 🙌
e
Thanks for sharing these steps with us @fancy-breakfast-34453! 🦾 🚀
w
Please I have made a request through the request form for the trigger function, how long does it take for me to get access? Thank you
h
How to send a message in chat on behalf of the user, for example when chat is open to send directly message "I want to know more about your products"
s
took about 24 hours for me
w
Thank you for the response I appreciate you
e
More people were given access right now!
Please realod the Studio and right-click the editor to see the Trigger node option! Be sure to check out the documentation: https://botpress.com/docs/cloud/toolbox/events-triggers/
s
To trigger my flow and get my bot to send a message as soon as it loads I used @gentle-shampoo-88367 's code. (this will not open the chat automatically, i didn't want that) I put this script directly under where I embedded the bot in my website: window.botpressWebChat.onEvent( function (ev) { window.botpressWebChat.sendEvent({ type: "loadConversation", }); }, ["LIFECYCLE.LOADED"] ); window.addEventListener("message", function (event) { // console.log(event.data.type); if (event.data.type == "LIFECYCLE.READY") { window.botpressWebChat.sendEvent({ type: "trigger", channel: "web", payload: { text: "", }, }); } }); It would keep restarting the flow if I refreshed the page and it was still in the session, which in my case caused duplicate messages to be sent. To fix this I created a boolean variable (mine is called 'triggered') and set it to 'true' in a code card after my flow has been started (I have put it in it's own code card so you can see in my screenshot). Then I set a filter on my trigger of 'if triggered is not true'. hopefully this is helpful to people still trying to figure it out.
e
Am I the only one who couldn't figure this out?
i
Hi, please allow me access too! It would help me greatly and my clients!
d
wdym publish updates, like when I publish the changes I made?
c
I'd love to join this Beta - I could really use it on some current projects! Much Thanks!
f
thanks for this @freezing-printer-49373, i've already filled the form. it's there anyway to get access to this feature soon?. i've been trying to make a trigger in code for the past days and its getting tedious to trying to do it while other people can just use the trigger node. i know that you may be with a lot of work so i dont want to stop your workflow. thanks!
f
when did you fill it
@early-train-33247
sometimes you need to refresh to gain access
and then right click on the studio canva
f
like an hour ago
c
We usually give access to people by batch. If you filled out the form an hour ago, this is normal you haven't been granted access yet.
e
yes
You have access now 😉
p
Got to admit, I'm a bit put off that this guy gets access within hours when I applied at least a week ago. How is that fair to those of us patiently waiting our turn? (rhetorical)
r
@purple-lock-93374 hey sorry about this – i'm sure this is an unintentional mistake
we just gave everyone public access to webchat triggers now 🎉
e
I used to give access to new batches practically everyday. I think you might have entered a wrong email address or otherwise didn’t know that you just had to right click the editor to see the Trigger node option 😉
e
@early-train-33247 do you know how to solve it?
s
hi can i still apply to get this feature ?
just submitted the form guys
a
Is it just me or the triggers take some time to open the webchat??
s
also if im granted it how will i know ? will you guys send me a notififcation
l
got my Trigger access today! Interestingly. Just by adding the codes below the JS as writen by @fancy-breakfast-34453 I was able to get the chat window opened. My trigger wasn't connected to the first node and I forgot to click publish as well.
f
Hello guys. How can i acess this feuture? i cant find it in botpress. Best regard
l
you need to request for it. Scroll up , there's a form to enter your details. here: https://discord.com/channels/1108396290624213082/1121833577659768893/1135579706633232424
f
it's now open to public
jsut refresh your studio
i
Hi, can someone send me the code needed to send the event etc to the trigger
I can't seem to find it
s
Hi guys is it working for you? I drag conversation started and it doesnt even create the trigger
f
Yes it's working for me and a bunch of people of what i can see.
m
The trigger node is not showing on my other projects no matter how many times I refresh the studio. Is this a bug or what?
f
by projects you mean workspaces? or bots?
so you are saying the triggers are showing on some bots but not others?
m
Apparently when I was trying to create a trigger node my internet went down that's why the trigger option is not there. It's ok now.
f
perfect, glad to hear it! 🙂
t
how did you crated your node like this? My event trigger looks like this and i do not even have enough space to write a custom code in order to let the bot pop up when the wbsite is opened:
n
How to open automatically thé Window?
h
I have the same issue as you, possibly a technical issue? This is how the screen is supposed to look (taken from Gordy's video)
g
Where can I find the webchat trigger example code, as displayed in this video?

https://www.youtube.com/watch?v=FKH3b9NlyaI

r
I was granted access to the trigger feature few days ago . But now i cant access the feature anymore . I've been refreshing my studio like ~ 20 times . Did my access got revoked ?
j
i dont have triggers
how do i get it back
its really odd
same thing
c
guys can someone provide a super simple tutorial on how to make the bot start the convo automatically? When i add a trigger and click on it, this is what I see;
c
Did you check this video?

https://youtu.be/CLw2Mwd3euQ

e
Folks @here, more people were given access to the full Triggers! Right now the Webchat triggers are available for everyone, but if you need access to Webhook triggers and other integration triggers, please fill out the form!
r
Ohhhh I thought the full trigger functionality was released and the beta was over. Can someone please list what the released webchat trigger funtionality can do, and then what the not-yet-released other integration triggers will be able to do? This is important because if I request beta access, I need to know which functionality is considered "beta" -- which means it shouldn't be released in a production chatbot (or, worse, in a client chatbot.)
f
webchat
triggers were released
others are still in beta
hope that helps 🙂
r
So there are no triggers in beta that could be implemented in a chatbot implemented on a website? Maybe I don't know what you all mean when you say "webchat." I always assume you are simply referring to a chatbot published on a website.
b
Same problem here, initially I can see Conversation Started under events, but when I try to add it to a node, all items under Events disappear and I see the message "Node cannot accept these cards".
f
you need to not drag it on a normal node
jsut drop it on the empty canvas
So notice here on the screenshots the triggers disappear when my editor is focused on a specific node. Just click out and they should appear. Let me know if that works
Not 100% correct. So triggers related to webchat events (those you see on the screenshot) are out of beta. You could still make use of the zapier or linear triggers on the webchat.
so as long as you use those 2. They are out of beta
hope thats clear
q
Hello everyone! 🖐️ I'm working with the trigger nodes in Botpress and need a bit of guidance. 1. Trigger Node Appearance: When I add a trigger node, it looks like the screenshot. Is this the correct appearance? 2. Red Box: For the red box I draw in the attached screenshot, what information or settings am I supposed to enter there? 3. Filter Settings: Lastly, where can I set the filter for the trigger? I've been searching around but couldn’t find the specific setting. Thank you in advance for your help!
a
j
how do i get the code to wait for 10 seconds
and then send trigger
a
Does anyone have a reliable way for checking if a number is a whatsapp linked number before sending a message to it?
Lets say I would like to send a bulk message out, like an announcement of some kind. How could I trigger this from the triggers without using the webchat integration? Ideally it would be a simple format where only the recipient number and a portion of the message would change each time. However we'd be looking at between 20k and 50k messages. I was thinking a file that can be uploaded as a KB that can be used by the bot to generate messages and iterate through the line items however how would it know its place as it goes through each one and send a message?
j
nah ceebs
a
ceebs?
a
Hello, can I get the beta acess to the Initiate trigger please?
c
Triggers are open to everyone!

https://youtu.be/CLw2Mwd3euQ

https://youtu.be/FKH3b9NlyaI

e
Hey folks, everybody that submitted the form until now has access to the Trigger node, which is in Beta yet. You need this trigger to use Webhook, Zapier and other integrations. But if you just want your webchat bot to start the conversation in the Webchat, you already have access to that, as Sabrina mentioned above 🚀
a
Thank you.
j
hey guilhermy i have filled out hte form. i realise i do not need the beta anymore. please dont give me access. cheers
btw my request is "Dev"
c
It is now available for everyone 🙂 no beta needed here
a
this doens't work for LINE messenger integration 😭
m
hello guys ! there used to be triggers for WhatsAPP and Teams if are enabled to integration ! but i can't find them anymore !! i was using them to costumise the conversatiuon in teams and whatssap and make it a little bit different than the webchat flow , i deleted them by accident , then i couldn'nt fine their cards anywhere !
l
Thanks for the video! Now, when I can show the bot on my site, I’d like to show it only once, even the user change pages. What is recommended or possible way to do that? I thought, I should set the opening code to different position, like global header in Wordpress, but that did’t work. Any ideas?
t
Hi Guys! How can I trigger the greeting message initially without any input from Botpress Studio?
j
What is this post about
51 Views