https://discord.gg/botpress logo
#๐Ÿ‘€feature-requests
[PUBLIC ACCESS / BETA ENDED] Make the Bot Initiate Conversation!
# ๐Ÿ‘€feature-requests
e

enough-fireman-69944

06/23/2023, 4:06 PM
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

freezing-printer-49373

06/26/2023, 4:55 PM
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

rich-battery-69172

06/26/2023, 5:02 PM
@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

enough-fireman-69944

06/26/2023, 6:23 PM
YOO
yโ€™all really got the most goated customer service in the game
@rich-battery-69172 dmed!
f

freezing-printer-49373

06/26/2023, 7:44 PM
@colossal-rose-54165
s

salmon-art-82621

06/26/2023, 8:43 PM
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

freezing-printer-49373

06/26/2023, 9:07 PM
If you now have access you would want to use the conversation started trigger.
at the beginning of your flow
s

salmon-art-82621

06/26/2023, 9:42 PM
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

rich-battery-69172

06/27/2023, 1:51 PM
@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

salmon-art-82621

06/27/2023, 1:54 PM
how can I do it "fire whenever the page loads"?
should I install script as shown in the example on codepen?
r

rich-battery-69172

06/27/2023, 1:57 PM
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

abundant-egg-83086

06/27/2023, 5:27 PM
Can I get in on the beta?
a

acoustic-hair-60678

06/27/2023, 5:36 PM
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

nice-shoe-65957

06/27/2023, 9:39 PM
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

straight-secretary-60237

06/28/2023, 5:30 AM
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

average-megabyte-82737

06/29/2023, 7:17 AM
Have sent you a DM
b

brave-scientist-86214

06/29/2023, 7:04 PM
Awesome just sent a DM Sly ๐Ÿ‘
m

mysterious-account-66188

06/30/2023, 1:24 PM
Sounds awesome, sent DM!
c

calm-camera-13516

06/30/2023, 2:39 PM
this would be amazing , just sent you a DM
a

alert-country-87687

06/30/2023, 6:02 PM
I sent a DM
f

faint-continent-64566

06/30/2023, 8:03 PM
Can I request for this beta as well. Thanks ๐Ÿ™‚
l

little-jackal-31212

07/01/2023, 4:18 AM
sent you a DM
f

faint-continent-64566

07/01/2023, 5:56 AM
sent you a DM
r

rich-crayon-46986

07/02/2023, 9:57 PM
just sent you a DM @rich-battery-69172!
b

bland-hairdresser-23708

07/03/2023, 9:01 AM
dlabm1973@gmail.com
c

careful-gpu-34340

07/03/2023, 4:19 PM
sent you a dm! ๐Ÿ˜„
a

alert-country-87687

07/03/2023, 5:03 PM
anyone get access to this yet? how's it work?
s

straight-wolf-37371

07/03/2023, 6:16 PM
Would love access to this too ๐Ÿ™‚ simplygreatgamesgg.gmail.com
m

mammoth-toothbrush-73019

07/03/2023, 11:36 PM
sent you a dm @rich-battery-69172 with my email : redaitoronto@gmail.com
s

strong-country-33572

07/03/2023, 11:37 PM
hello, please access, I would like to use it too. bystron.josef@gmail.com
f

flat-advantage-12694

07/03/2023, 11:52 PM
Just sent a DM @rich-battery-69172 , thanks looking forward to this feature! joey@turnkeyai.co
f

flaky-rocket-15957

07/04/2023, 2:07 AM
Great. I'm keen to be on the Beta program. lee@orangepahire.com.au
r

rough-night-898

07/04/2023, 2:26 AM
Would love to access this thanks! connor.d@s30studio.com.au
r

rich-crayon-46986

07/04/2023, 3:02 AM
still waiting a response from sly
r

rich-battery-69172

07/04/2023, 3:24 AM
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

kind-shampoo-88969

07/04/2023, 3:30 AM
Just sent you a dm! Hopefully im part of the users who have access tomorrow ๐Ÿ™ƒ
f

full-magazine-75290

07/04/2023, 4:48 AM
Been loving using botpress so far! Would love to join the beta to test this feature! My email is mikepowersofficial@gmail.com
s

steep-cpu-58034

07/04/2023, 4:56 AM
that would be incredible, dmed!!
t

tall-house-14216

07/04/2023, 9:26 AM
Would like to join to. My email is derrelwinter@gmail.com.
r

refined-fall-37173

07/04/2023, 10:07 AM
Hey i would really like to get to try the Beta!! Wessmaan@gmail.com
l

loud-tiger-92573

07/04/2023, 10:32 AM
@rich-battery-69172 Would be great, if you could add me too! Mail: brushgamez@gmail.com
q

quick-pager-25260

07/04/2023, 11:25 AM
This is the feature we are missing! Cant wait please add me to the lsit michael@deboxfinancial.com
m

mammoth-toothbrush-73019

07/04/2023, 1:54 PM
Please make sure to add mine: redaitoronto@gmail.com
k

kind-knife-89281

07/04/2023, 4:06 PM
DM sent this looks great
w

worried-hair-51979

07/04/2023, 7:36 PM
pm send ๐Ÿ˜„
a

aloof-shoe-51097

07/04/2023, 10:29 PM
kuznetsov.va@gmail.com
p

plain-shampoo-87249

07/04/2023, 10:46 PM
Check dm, I send my email
f

flat-optician-16920

07/05/2023, 12:04 AM
alozie2k@gmail.com
a

able-vegetable-72992

07/05/2023, 3:12 PM
albertga1024@gmail.com
i

incalculable-traffic-96000

07/05/2023, 3:59 PM
@rich-battery-69172 n.udathu@gmail.com
g

gentle-forest-63662

07/05/2023, 4:13 PM
dm sent ๐Ÿ˜
s

stocky-diamond-18752

07/05/2023, 8:33 PM
zsombor.palfi@gmail.com
e

early-train-33247

07/05/2023, 11:40 PM
โš ๏ธ โ„น๏ธ If you want to have access to the Trigger feature, please fill out this form: https://forms.gle/t8n7TTYnVL65Ljcn6
b

brave-scientist-86214

07/05/2023, 11:47 PM
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

early-train-33247

07/05/2023, 11:48 PM
โš ๏ธ โ„น๏ธ 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

brave-scientist-86214

07/06/2023, 12:16 AM
I don't see it anywhere? where do I implement triggers?
e

early-train-33247

07/06/2023, 1:35 AM
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

incalculable-bird-83091

07/06/2023, 3:02 AM
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

plain-soccer-93019

07/06/2023, 5:06 AM
How do I get access to this beta?
q

quick-pager-25260

07/06/2023, 8:24 AM
Cant wait fot this
s

shy-glass-43299

07/06/2023, 11:14 AM
Can I also ask for access to beta for triggers? botosaurusdoo@gmail.com
k

kind-shampoo-88969

07/06/2023, 12:57 PM
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

early-train-33247

07/06/2023, 2:28 PM
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

kind-shampoo-88969

07/06/2023, 3:03 PM
Thanks! Appreciate it.
s

straight-wolf-37371

07/06/2023, 3:08 PM
@early-train-33247 Please me access too! Thank you ๐Ÿ™‚
Ill fill out the form
c

crooked-hydrogen-21193

07/06/2023, 3:29 PM
Can I get acess too?
e

early-train-33247

07/07/2023, 12:46 AM
Hey @crooked-hydrogen-21193, just fill out the form, please!
c

crooked-hydrogen-21193

07/07/2023, 5:32 AM
sorry I didnt see it was up there๐Ÿ˜‚ I thought you was dm'ing it to people๐Ÿ˜†
e

early-train-33247

07/07/2023, 6:24 PM
We were! But we got lots of requests, so we decided creating a form ๐Ÿ˜‰
r

rough-magician-49397

07/07/2023, 6:29 PM
Hi ! Anyway to have a form for this too ? ๐Ÿ˜„
Oh this is probably the triggers one
l

little-architect-76658

07/08/2023, 8:16 AM
thanks. now people can spam your email
b

best-cricket-48770

07/09/2023, 4:55 AM
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

alert-country-87687

07/09/2023, 7:30 PM
can this be added to the pre-configured code or does it only work on the configurable?
b

best-cricket-48770

07/09/2023, 9:17 PM
That's the website javascript to be added in addition to the other code provided in this channel above
b

bitter-grass-15992

07/10/2023, 8:31 AM
hi so i tried and yes the chat is opening but is there any merthod to make the chatbot text first?
b

best-cricket-48770

07/10/2023, 8:32 AM
Use the trigger code, sample further up. Opening the chat is just a pre-requisite to executing the trigger.
b

bitter-grass-15992

07/10/2023, 8:33 AM
this one?
b

best-cricket-48770

07/10/2023, 8:33 AM
Yes
b

bitter-grass-15992

07/10/2023, 8:33 AM
ok i will try to figure out thank you)
r

rough-magician-49397

07/10/2023, 3:25 PM
Hey, where should i add the code that you added in botpress cloud ? anyway?
Should i add a card with an execute code ?
b

best-cricket-48770

07/10/2023, 3:39 PM
All JS code listed here so far should be embedded in the webpage html, or other client-side location if applicable.
r

rough-magician-49397

07/10/2023, 3:48 PM
oh
Ok i see
c

careful-keyboard-68830

07/10/2023, 4:51 PM
Hi, I have filled out the form, what's next? ๐Ÿ™‚
f

full-helmet-73535

07/10/2023, 11:18 PM
i just filled out the form too ๐Ÿ™‚
e

early-train-33247

07/11/2023, 1:13 AM
Hey guys, I will give access to you tomorrow!
s

sparse-zebra-64065

07/11/2023, 10:40 AM
I also filled it out a few days ago. I would love to try it out as well.
f

future-vegetable-66332

07/11/2023, 3:41 PM
Hi guys kinda urgent please im making an project for someone i need the trigggers if thats possible ?
a

abundant-printer-67111

07/11/2023, 4:29 PM
Can i get access? aurorachatbots@gmail.com
f

freezing-printer-49373

07/11/2023, 5:26 PM
please fill out the form in the thread, @early-train-33247 we will then get you in on the next batch.
f

full-helmet-73535

07/11/2023, 5:27 PM
๐Ÿ™๐Ÿป๐Ÿ™๐Ÿป๐Ÿ™๐Ÿป๐Ÿ™๐Ÿป๐Ÿ™๐Ÿป๐Ÿ™๐Ÿป๐Ÿ™๐Ÿป
a

aloof-shoe-51097

07/11/2023, 7:04 PM
Submitted the form! Thank you!
t

thankful-dawn-90831

07/12/2023, 1:16 AM
Submitted the form aswell, Thanks!
a

abundant-printer-67111

07/12/2023, 8:01 AM
Submitted as well!
s

stale-helmet-36625

07/12/2023, 8:22 AM
Can i get access? bledfort@gmail.com
f

freezing-printer-49373

07/12/2023, 2:18 PM
Make sure to fill up the form: https://forms.gle/t8n7TTYnVL65Ljcn6
e

early-train-33247

07/12/2023, 4:51 PM
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

square-zebra-41356

07/12/2023, 7:10 PM
Thank you!
r

rough-magician-49397

07/12/2023, 8:29 PM
Would love a tutorial about this ๐Ÿ˜„
a

adamant-laptop-15168

07/13/2023, 7:31 AM
I just filled the form, can I get access?
w

wide-journalist-69122

07/13/2023, 9:35 AM
Works great! Can we expect it to work in the editor soon as well, for when we testing?
h

hallowed-king-26740

07/13/2023, 11:57 AM
Hi, I filled the form too, can I get access?
t

thankful-dawn-90831

07/13/2023, 12:10 PM
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

crooked-van-25152

07/13/2023, 1:44 PM
@early-train-33247 will give you access! ๐Ÿ™‚ Make sure to fill in the form in this thread.
h

hallowed-king-26740

07/13/2023, 1:47 PM
Thanks, I already filled it out
b

blue-psychiatrist-60466

07/13/2023, 4:14 PM
I just filled out the form. @early-train-33247 can you please give me access? Thanks guys!
v

victorious-vegetable-1735

07/13/2023, 5:55 PM
Just filled out the form โœŒ๏ธ
g

green-chef-91677

07/13/2023, 6:40 PM
What additional code do I need to insert in the page for the trigger to work?
b

bland-actor-38038

07/13/2023, 8:11 PM
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

jolly-controller-65161

07/13/2023, 9:20 PM
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

early-train-33247

07/13/2023, 9:26 PM
No, this is because OpenAI server are unstable = https://status.openai.com/
Yes, this is possible. Documentation comming soon!
t

thankful-dawn-90831

07/13/2023, 9:54 PM
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

brash-television-2665

07/13/2023, 9:57 PM
I also just filled out the form ๐Ÿ‘
a

aloof-shoe-51097

07/14/2023, 2:44 AM
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

fancy-alligator-73798

07/14/2023, 9:33 AM
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

straight-musician-77995

07/14/2023, 12:59 PM
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

rich-battery-69172

07/14/2023, 2:03 PM
Yeah you can see in my codepen the use of listening on
"LIFECYCLE.LOADED"
p

purple-lock-93374

07/14/2023, 2:30 PM
where do I put the code in?
s

straight-musician-77995

07/14/2023, 2:39 PM
Thanks! Gonna try it
In your website. If you use wordpress, just install some plugin that let you put code dynamically
p

purple-lock-93374

07/14/2023, 2:41 PM
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

straight-musician-77995

07/14/2023, 2:43 PM
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

average-megabyte-82737

07/14/2023, 2:47 PM
also having w3schools javascript reference page open isn't a bad idea
s

straight-musician-77995

07/14/2023, 2:59 PM
@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

silly-kilobyte-3417

07/14/2023, 5:37 PM
Just filled out the form!
Well yesterday..
s

straight-table-98140

07/14/2023, 6:40 PM
Hi, I just filled out the form, when can I get access?
p

purple-lock-93374

07/14/2023, 7:17 PM
Has anyone managed to fix this?
h

high-cpu-79286

07/14/2023, 7:55 PM
I want to know too ๐Ÿ˜ฉ
s

straight-musician-77995

07/14/2023, 8:01 PM
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

stale-helmet-36625

07/14/2023, 9:18 PM
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

purple-lock-93374

07/14/2023, 10:49 PM
Same here
w

white-kitchen-93679

07/15/2023, 12:21 AM
@rough-smartphone-28502 check this
c

colossal-hospital-26321

07/15/2023, 1:54 AM
Just filled out the form and messaged @rich-battery-69172 as well. Thanks in advance!
s

straight-musician-77995

07/15/2023, 7:27 AM
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

prehistoric-london-80843

07/15/2023, 10:24 AM
Just filled out the form. Would appriciate access! ๐Ÿ™‚
a

average-pizza-58843

07/15/2023, 11:54 AM
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

straight-musician-77995

07/15/2023, 11:54 AM
Thanks man will do!
s

stale-helmet-36625

07/15/2023, 1:19 PM
Yes pleaaaase make a shot video ๐Ÿ™๐Ÿ™๐Ÿ™@straight-musician-77995
s

straight-musician-77995

07/15/2023, 2:07 PM
editing...
p

purple-lock-93374

07/15/2023, 2:50 PM
Thank you @straight-musician-77995 ! I'll watch the video right away
s

straight-musician-77995

07/15/2023, 3:06 PM

https://youtu.be/3XgDAhYgApwโ–พ

g

gray-breakfast-23855

07/15/2023, 3:18 PM
@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

straight-musician-77995

07/15/2023, 3:22 PM
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

gray-breakfast-23855

07/15/2023, 3:23 PM
True! I'll have to test it out when I get access to Triggers
p

purple-lock-93374

07/15/2023, 5:44 PM
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

straight-musician-77995

07/15/2023, 6:45 PM
Yeah
You have to run the function when the button is clicked
p

purple-lock-93374

07/15/2023, 6:56 PM
Sorry, I am completely uneducated in coding. How would the script look like with these changes?
s

straight-musician-77995

07/15/2023, 6:59 PM
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

purple-lock-93374

07/15/2023, 7:07 PM
Alright thank you I'll give it a try
s

silly-kilobyte-3417

07/15/2023, 9:11 PM
how can i get trigger access?
@rich-battery-69172 Hey man, any way I can get access to triggers?
g

gray-breakfast-23855

07/15/2023, 10:26 PM
@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

silly-kilobyte-3417

07/15/2023, 10:46 PM
Same. Please! Thank you!
Do i have to be paid member to get access?
b

best-cricket-48770

07/16/2023, 3:52 AM
No
p

prehistoric-london-80843

07/16/2023, 5:29 PM
๐Ÿ™
s

straight-musician-77995

07/16/2023, 6:23 PM
Did you test it?
s

silly-kilobyte-3417

07/16/2023, 8:11 PM
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

stale-byte-69115

07/17/2023, 8:06 AM
Filled out the form, how long does it usually take to get?
t

thankful-dawn-90831

07/17/2023, 8:37 AM
how do i install integrations, to then initiate triggers? cheers
s

stale-helmet-36625

07/17/2023, 8:47 AM
@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

straight-musician-77995

07/17/2023, 10:08 AM
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

stale-helmet-36625

07/17/2023, 11:15 AM
@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

straight-musician-77995

07/17/2023, 11:26 AM
What you mean?
s

stale-helmet-36625

07/17/2023, 11:31 AM
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

straight-musician-77995

07/17/2023, 11:44 AM
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

stale-helmet-36625

07/17/2023, 1:24 PM
Yes that makes sense hhhh
it still doesn't show the opening message ๐Ÿฅฒ
in the chatbot
g

gentle-shampoo-88367

07/17/2023, 1:58 PM
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

stale-helmet-36625

07/17/2023, 3:01 PM
Is there a documentation on how to use "Trigger" function please?
s

straight-musician-77995

07/17/2023, 3:33 PM
no cause it's still in beta
wow, gonna try it, wasn't working for me
s

stale-helmet-36625

07/17/2023, 4:18 PM
@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

straight-musician-77995

07/17/2023, 4:25 PM
@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

gentle-shampoo-88367

07/17/2023, 4:25 PM
@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

straight-musician-77995

07/17/2023, 4:28 PM
did you test it?
g

gentle-shampoo-88367

07/17/2023, 4:28 PM
I dont like the idea of slapping the chatbot in face of the user so i dont show it up
s

straight-musician-77995

07/17/2023, 4:28 PM
Yeah makes sense
Testing RN
g

gentle-shampoo-88367

07/17/2023, 4:29 PM
@straight-musician-77995 Yeah, i just tried it again like this, and it sends the message and opens it up as well.
s

straight-musician-77995

07/17/2023, 4:31 PM
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

gentle-shampoo-88367

07/17/2023, 4:35 PM
let me know if it doesnt work
s

straight-musician-77995

07/17/2023, 4:35 PM
nope
still doesn't work ๐Ÿค”
g

gentle-shampoo-88367

07/17/2023, 4:40 PM
Do you have the event set in trigger?
s

straight-musician-77995

07/17/2023, 4:40 PM
Wait Magic! It's working, I just refreshed multiple times, prayed a little bit and works
Thanks
g

gentle-shampoo-88367

07/17/2023, 4:41 PM
Well i would say always test in an incognito window
s

straight-musician-77995

07/17/2023, 4:41 PM
yeah indeed it worked there ๐Ÿ™
g

gentle-shampoo-88367

07/17/2023, 4:44 PM
if its not clear enough for everyone else, let me know I will make a wuick loom
m

microscopic-actor-44417

07/17/2023, 7:06 PM
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

straight-musician-77995

07/17/2023, 7:15 PM
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

microscopic-actor-44417

07/17/2023, 7:15 PM
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

straight-musician-77995

07/17/2023, 7:25 PM
mgg
interesting
Honestly I have no clue
m

microscopic-actor-44417

07/17/2023, 7:28 PM
and putting this
s

straight-musician-77995

07/17/2023, 7:28 PM
Try to change this setting to body
m

microscopic-actor-44417

07/17/2023, 7:28 PM
this little guy appears
right
let me see
damn
s

straight-musician-77995

07/17/2023, 7:29 PM
works?
m

microscopic-actor-44417

07/17/2023, 7:29 PM
thats it mate
yeah
i feel stupid
s

straight-musician-77995

07/17/2023, 7:29 PM
ok nice
m

microscopic-actor-44417

07/17/2023, 7:29 PM
thanks mate
s

straight-musician-77995

07/17/2023, 7:29 PM
Feeling stupid daily it's normal for a developer
m

microscopic-actor-44417

07/17/2023, 7:29 PM
hahaha
p

purple-lock-93374

07/18/2023, 3:39 AM
does anyone know how to make a botpress trigger to make the chatbot message first when you manually open the button
s

stale-helmet-36625

07/18/2023, 9:13 AM
this is extremely frustrating, for the life of me I can't make the bot initiate the conversation lol
f

freezing-carpenter-9818

07/18/2023, 9:19 AM
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

purple-lock-93374

07/18/2023, 10:39 AM
could you show the workflow of how you did this?
f

freezing-carpenter-9818

07/18/2023, 10:48 AM
followed the message and yes it worked. Thank you for the time you spend helping others.
p

prehistoric-london-80843

07/18/2023, 11:00 AM
Guessing I must of made a mistake in the form. Re submitted ๐Ÿ™‚
f

freezing-carpenter-9818

07/18/2023, 11:06 AM
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

gentle-shampoo-88367

07/18/2023, 11:30 AM
I have provided the solution for that as well in my messages
See this for opening up the chatbot windoe
f

freezing-carpenter-9818

07/18/2023, 11:32 AM
yes got it working, thanks a lot!
a

adamant-policeman-88146

07/18/2023, 12:04 PM
Hey! I filled the beta form, please invite me when you can. I need the feature โค๏ธ Thanks
p

purple-lock-93374

07/18/2023, 1:47 PM
@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

gentle-shampoo-88367

07/18/2023, 1:47 PM
Nope, it would send the message as soon as botpress is complete loaded
I would make a loom till EOD
p

purple-lock-93374

07/18/2023, 1:48 PM
Oh ok
g

gray-breakfast-23855

07/18/2023, 2:37 PM
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

stale-helmet-36625

07/18/2023, 3:08 PM
@gentle-shampoo-88367 Thanks for the code, it finally worked ๐Ÿ˜„
r

rich-battery-69172

07/18/2023, 3:08 PM
@gray-breakfast-23855 hey sorry, @early-train-33247 is on leave today but will give you access tomorrow ๐Ÿฆพ
g

gray-breakfast-23855

07/18/2023, 3:09 PM
awesome, thanks so much!
s

stale-helmet-36625

07/18/2023, 3:13 PM
@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

gentle-shampoo-88367

07/18/2023, 3:16 PM
Well that doesn't happen on any one elses bot, so it maybe something in your workflow?
m

most-air-4994

07/18/2023, 3:16 PM
@freezing-printer-49373 @rich-battery-69172 @acoustic-hair-60678 Could I have access to triggers too please?? :000
s

stale-helmet-36625

07/18/2023, 3:18 PM
@gentle-shampoo-88367Here is my workflow
anything obvious that make create the problem?
b

bored-tailor-70735

07/18/2023, 3:33 PM
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

stale-helmet-36625

07/18/2023, 3:35 PM
Ah Actually that's a great idea, I will try it thanks
g

gentle-shampoo-88367

07/18/2023, 3:37 PM
Also place the toggle chat card at the top of the node
a

acoustic-hair-60678

07/18/2023, 4:09 PM
m

most-air-4994

07/18/2023, 4:09 PM
Thanks so much!! You guys are awesome!
a

acoustic-hair-60678

07/18/2023, 4:10 PM
s

silly-kilobyte-3417

07/18/2023, 4:57 PM
@acoustic-hair-60678 Hey david! I've signed up was wondering when I can access.. pls
m

microscopic-actor-44417

07/18/2023, 5:34 PM
ohh good news! thanks guys
a

acoustic-hair-60678

07/18/2023, 5:36 PM
Guilhermy is on leave today, but will be granting access tomorrow
s

silly-kilobyte-3417

07/18/2023, 5:49 PM
Awesome thank you!
h

helpful-animal-37103

07/19/2023, 6:37 AM
Just filled out the form!
t

tall-xylophone-2127

07/19/2023, 12:42 PM
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

strong-account-39028

07/19/2023, 2:16 PM
just filled out the form! can't wait to try
n

numerous-elephant-17790

07/19/2023, 2:42 PM
have also filled out form, thanks team
s

swift-vegetable-75516

07/19/2023, 2:58 PM
have also filled it out. Thank you!
g

gray-breakfast-23855

07/19/2023, 3:05 PM
@early-train-33247 please can I have access? Filled out the form a while back
a

acoustic-hair-60678

07/19/2023, 4:00 PM
**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

early-train-33247

07/19/2023, 4:39 PM
I am tagging everybody @here, just to make sure you are aware of @acoustic-hair-60678 message!
g

gray-motorcycle-50268

07/19/2023, 4:45 PM
Thank you @acoustic-hair-60678 @early-train-33247!
s

shy-scooter-80621

07/19/2023, 5:03 PM
Thank you @acoustic-hair-60678 @early-train-33247 ๐Ÿ˜„
m

microscopic-actor-44417

07/19/2023, 8:15 PM
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

adamant-laptop-15168

07/19/2023, 9:07 PM
Thank you so much! ๐Ÿ˜„
e

early-train-33247

07/19/2023, 10:43 PM
Hey mate, you probably entered a wrong email address, but I will add more people tomorrow!
m

microscopic-actor-44417

07/19/2023, 10:43 PM
oh right thanks!
r

rich-battery-69172

07/19/2023, 11:38 PM
@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

millions-alligator-53441

07/20/2023, 1:08 AM
Thank you so much ๐Ÿ™
r

rich-oxygen-43707

07/20/2023, 1:53 AM
Is this using the Beta features or is this how we could do it now, without the Beta?
r

rich-battery-69172

07/20/2023, 4:29 AM
Beta
b

bumpy-nightfall-87824

07/20/2023, 7:28 AM
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

magnificent-plastic-390

07/20/2023, 7:54 AM
I sended the form
f

freezing-carpenter-9818

07/20/2023, 9:07 AM
done
e

echoing-motorcycle-29168

07/20/2023, 9:34 AM
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

adorable-magician-82401

07/20/2023, 11:51 AM
Hey! Just submitted the form.
s

some-garage-42253

07/20/2023, 2:38 PM
Iโ€™d like to sign up for the beta please!! ๐Ÿ™‚
c

crooked-van-25152

07/20/2023, 2:39 PM
Simply fill out the form in this thread so we can grant you access!
Yes!
s

some-garage-42253

07/20/2023, 2:41 PM
The only form I see is asking how we used the beta?
e

early-train-33247

07/20/2023, 2:41 PM
m

miniature-france-87954

07/20/2023, 2:51 PM
Can you create an article on how to let the bot start the conversation
s

swift-vegetable-75516

07/20/2023, 2:56 PM
@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

rich-oxygen-43707

07/20/2023, 6:17 PM
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

enough-fountain-14338

07/20/2023, 8:33 PM
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

bored-soccer-13754

07/20/2023, 9:30 PM
I've just submitted the form and really excited to test and give feedback on these beta features โœ… @early-train-33247
m

magnificent-plastic-390

07/20/2023, 9:59 PM
AAA QS
e

early-train-33247

07/20/2023, 10:44 PM
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

miniature-refrigerator-60033

07/20/2023, 11:10 PM
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

damp-artist-61438

07/21/2023, 12:23 AM
so is this open yet?
if so how do i do it
r

rich-battery-69172

07/21/2023, 12:25 AM
still closed beta - @early-train-33247 will give you access soon! (fill out the form above)
v

victorious-vegetable-1735

07/21/2023, 3:09 AM
I havent got access yet, just checked
b

bored-soccer-13754

07/21/2023, 9:48 AM
I submitted the form again (used the wrong email ๐Ÿคฆโ€โ™‚๏ธ ). Sorry dear, may you add me again please ๐Ÿ™ @early-train-33247
m

magnificent-plastic-390

07/21/2023, 10:53 AM
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

straight-musician-77995

07/21/2023, 3:20 PM
Yeah, there are multiple ways to do that, above there's a lot of materials. Also a video tutorial I recorded
a

able-telephone-92690

07/21/2023, 4:59 PM
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

damp-artist-61438

07/21/2023, 7:25 PM
@gentle-shampoo-88367 can you help me for a sec?
in the head tag after the botpress stuff
that should work right?
g

gentle-shampoo-88367

07/21/2023, 7:27 PM
Yes it should,
Can you send a ss of your js console
d

damp-artist-61438

07/21/2023, 7:27 PM
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

millions-alligator-53441

07/21/2023, 7:32 PM
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

damp-artist-61438

07/21/2023, 8:13 PM
@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

early-train-33247

07/21/2023, 9:12 PM
No! Don't know what happened
Everybody that filled out the form until now has access to the triggers
m

mammoth-minister-4532

07/22/2023, 2:13 AM
When will this feature get rolled out to everyone?
t

thankful-dawn-90831

07/22/2023, 6:39 AM
@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

bumpy-nightfall-87824

07/22/2023, 7:54 AM
how do I do this?
e

enough-fountain-14338

07/22/2023, 10:48 AM
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

straight-musician-77995

07/22/2023, 10:51 AM
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

able-telephone-92690

07/22/2023, 11:32 AM
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

enough-fountain-14338

07/22/2023, 12:12 PM
.
@early-train-33247
e

early-train-33247

07/22/2023, 12:14 PM
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

numerous-elephant-17790

07/22/2023, 4:51 PM
yeah working perfectly
m

magnificent-plastic-390

07/22/2023, 4:52 PM
Can you DM me?
a

acoustic-egg-8732

07/22/2023, 4:56 PM
mrfentr@gmail.com
m

millions-alligator-53441

07/22/2023, 5:26 PM
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

full-lifeguard-52310

07/22/2023, 6:06 PM
I need help with this
r

rough-magician-49397

07/22/2023, 6:06 PM
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

full-lifeguard-52310

07/22/2023, 6:10 PM
I have zero expertise, where do I past this in?
a

acoustic-hair-60678

07/22/2023, 6:25 PM
hi mrfentr, we give access to the triggers beta after you've filled out this form: https://discord.com/channels/1108396290624213082/1121833577659768893/1128691956512464896
r

rough-magician-49397

07/22/2023, 6:25 PM
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

full-lifeguard-52310

07/22/2023, 8:31 PM
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

gentle-shampoo-88367

07/22/2023, 9:00 PM
@full-lifeguard-52310 you would add it to the head section of your html page
a

acoustic-hair-60678

07/22/2023, 11:42 PM
yes jwk, once triggers come out of beta documentation will follow
w

white-kitchen-93679

07/23/2023, 1:25 AM
@rich-battery-69172 have filled the forms a few times but no access yet
l

loud-area-39646

07/23/2023, 11:51 AM
Can someone send me the code to paste on the website to let the chatbot initiate the conversation?
r

rough-magician-49397

07/23/2023, 11:51 AM
need ๐Ÿ˜›
m

millions-alligator-53441

07/23/2023, 1:16 PM
where do you place the code guys?
r

rough-magician-49397

07/23/2023, 2:08 PM
I want the triger to be when the user clicks on the chat widget. not the case here unfortunattly
l

loud-area-39646

07/23/2023, 5:52 PM
Na I think this is a whole new code haha, changed my whole page
e

early-train-33247

07/23/2023, 7:59 PM
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

many-car-82711

07/23/2023, 10:09 PM
I am one day late then ๐Ÿฅฒ
e

early-train-33247

07/23/2023, 10:53 PM
Don't worry, more people shall be given access tomorrow!
s

salmon-midnight-96260

07/24/2023, 1:30 AM
Just filled it out, happy to wait till tmrw though
l

loud-area-39646

07/24/2023, 7:23 AM
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

gentle-shampoo-88367

07/24/2023, 7:25 AM
@loud-area-39646 try this
l

loud-area-39646

07/24/2023, 7:35 AM
Worked, thanks a lot!
g

gentle-shampoo-88367

07/24/2023, 7:36 AM
just upvote/react on that message so others can also refer to it
m

millions-alligator-53441

07/24/2023, 7:40 AM
Oh im sry ๐Ÿ˜…
l

loud-area-39646

07/24/2023, 7:46 AM
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

rough-magician-49397

07/24/2023, 10:21 AM
In your code @gentle-shampoo-88367 does it triggers wjeb the page loads or when the user click on the chat widget ?
g

gentle-shampoo-88367

07/24/2023, 10:22 AM
on webpage load
m

most-butcher-34974

07/24/2023, 4:01 PM
Will I be given access to triggers? I filled out the form a while ago.
c

crooked-van-25152

07/24/2023, 4:03 PM
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

adventurous-glass-22349

07/24/2023, 4:39 PM
@early-train-33247 a bit late to the trigger party. Can you add me please. Form filled.
m

most-butcher-34974

07/24/2023, 4:47 PM
Got it! Thank you so much!
c

cool-butcher-98139

07/24/2023, 7:04 PM
when will this feature be accessible outside beta? It's hard to implement the trigger without video or doc tutorials.
l

late-crowd-66808

07/25/2023, 12:20 AM
@early-train-33247 I have filled a form yesterday, any chance of getting beta? This feature is exactly what I need now
e

early-train-33247

07/25/2023, 1:11 AM
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

jolly-controller-65161

07/25/2023, 1:24 PM
Thank you! Any updates on this? ๐Ÿ™‚
m

many-car-82711

07/25/2023, 1:27 PM
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

gray-king-14604

07/25/2023, 5:20 PM
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

powerful-elephant-83786

07/26/2023, 4:27 AM
Hi, how do I get acces this feature?
g

gifted-minister-2714

07/26/2023, 4:44 AM
Yeah, I'd love to get this feature too. How do I do it?
m

modern-finland-97226

07/26/2023, 11:11 AM
hello , i filled the form yesterday, how do i get access ?
a

adventurous-terabyte-46121

07/26/2023, 11:27 AM
Would love to get access to the beta with triggers as well!
g

gentle-grass-9471

07/26/2023, 1:01 PM
Filled the form a couple hours ago
b

breezy-pilot-36137

07/26/2023, 2:24 PM
I have fillied out the form. Do i get access now?
c

crooked-van-25152

07/26/2023, 2:33 PM
Simply fill in the form and we'll give you access to it.
@early-train-33247 will give you access today.
g

gifted-minister-2714

07/26/2023, 2:34 PM
Where is the form though?
c

crooked-van-25152

07/26/2023, 2:35 PM
Check the pinned messages!
p

prehistoric-secretary-45200

07/26/2023, 3:44 PM
i have filled out the form and am happy to use the feature. is there any documentation on this?
r

rough-magician-49397

07/26/2023, 4:26 PM
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

calm-actor-65151

07/26/2023, 5:24 PM
when can we expect access after filling out the form?
c

crooked-van-25152

07/26/2023, 5:34 PM
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

prehistoric-secretary-45200

07/26/2023, 5:55 PM
@crooked-van-25152 can I use the trigger with WhatsApp?
c

calm-actor-65151

07/26/2023, 6:40 PM
Okay, thank you!
q

quaint-bear-57234

07/26/2023, 9:58 PM
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

gentle-shampoo-88367

07/26/2023, 10:01 PM
You are saying that chatbot is opening but there is no messge?
q

quaint-bear-57234

07/26/2023, 10:02 PM
Yes, thanks so much for the response.
g

gentle-shampoo-88367

07/26/2023, 10:02 PM
Can you show me the console log? or the site where its placed?
or you can DM me as well
q

quaint-bear-57234

07/26/2023, 10:28 PM
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

gorgeous-electrician-1178

07/27/2023, 4:27 AM
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

billions-xylophone-98617

07/27/2023, 7:06 AM
can somebody send a code of how to make the chatbot pop up and start send messages?
w

wooden-school-32232

07/27/2023, 7:11 AM
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

billions-xylophone-98617

07/27/2023, 7:20 AM
I want to know how to that too
s

salmon-midnight-96260

07/27/2023, 7:21 AM
same here
oh nevermind it works
b

billions-xylophone-98617

07/27/2023, 7:22 AM
if somebody finds tutorial send it here
@salmon-midnight-96260 send your code plz
s

salmon-midnight-96260

07/27/2023, 7:23 AM
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

wooden-school-32232

07/27/2023, 7:34 AM
Thanks for that, I must be doing something very simple wrong! Do you add it to the wordpress snippets or?
@salmon-midnight-96260
s

salmon-midnight-96260

07/27/2023, 7:40 AM
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

wooden-school-32232

07/27/2023, 8:01 AM
@salmon-midnight-96260 Mm still can't get it to pop up. I'll keep playing around and go back over steps
m

modern-finland-97226

07/27/2023, 8:14 AM
hello @crooked-van-25152 , i have filled the form 2 days ago , still doesn't have the access
s

salmon-midnight-96260

07/27/2023, 8:47 AM
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

early-train-33247

07/27/2023, 2:01 PM
you do now! please reload the Studio
p

prehistoric-secretary-45200

07/27/2023, 2:01 PM
@early-train-33247 can you give me access too?
e

early-train-33247

07/27/2023, 2:01 PM
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

modern-finland-97226

07/27/2023, 2:21 PM
thank you ! i got the access
where can i find some documentation on triggers please and how to use them ?
c

crooked-van-25152

07/27/2023, 2:39 PM
Thanks Nolan! That's super nice of you ๐Ÿ™‚ - @early-train-33247 should be able to give you access today!
n

numerous-notebook-18135

07/27/2023, 5:45 PM
antoine.seremet@gmail.com
a

aloof-rose-3868

07/27/2023, 7:56 PM
Just submitted the form! Really interested in testing this feature
s

swift-baker-92155

07/27/2023, 8:00 PM
Hey guys do you know where I can find that form?
a

aloof-rose-3868

07/27/2023, 8:15 PM
โš ๏ธ โ„น๏ธ If you want to have access to the Trigger feature, please fill out this form: https://forms.gle/t8n7TTYnVL65Ljcn6
s

swift-baker-92155

07/27/2023, 8:21 PM
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

many-car-82711

07/27/2023, 10:51 PM
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

thankful-processor-79226

07/28/2023, 6:51 AM
@rich-battery-69172 filled out the form, could you add me to the beta programm?
a

aloof-rose-3868

07/28/2023, 8:45 AM
@early-train-33247 Can I have my access please?
e

elegant-psychiatrist-26453

07/28/2023, 12:34 PM
Hello @early-train-33247 , I filled out the form, could you add me to the beta program?
t

thankful-zoo-83057

07/28/2023, 3:30 PM
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

billions-xylophone-98617

07/28/2023, 9:23 PM
we need a example on how to use the triggers
c

curved-traffic-97676

07/29/2023, 12:46 AM
I filled out the form a few days ago.. where should I see the trigger option?
e

elegant-psychiatrist-26453

07/29/2023, 4:27 AM
I have the same question @curved-traffic-97676
t

thankful-zoo-83057

07/29/2023, 8:51 AM
Right click on canvas
c

curved-traffic-97676

07/29/2023, 10:29 AM
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

thankful-zoo-83057

07/29/2023, 11:47 AM
Nope. Just right click on canvas, there will be some options like Comment, Copyโ€ฆ.
Triggers are locating there
c

curved-traffic-97676

07/29/2023, 11:52 AM
Thank you, looks like I do not have that option yet
f

famous-activity-10277

07/29/2023, 12:59 PM
This is what I was looking for. Glad they're made it. You guys are awesome!
c

curved-traffic-97676

07/29/2023, 2:04 PM
@early-train-33247 if you can add Jberroa0204@gmail.com I will appreciated. I submitted the form several days ago. Thanks in advance.
c

colossal-engine-51997

07/29/2023, 2:57 PM
please notify me when the next batch of user access is granted as i am in the waiting que, thank you
t

thankful-processor-79226

07/29/2023, 4:33 PM
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

few-helicopter-78102

07/29/2023, 5:18 PM
My question is @early-train-33247 @rich-battery-69172 . Is Botpress triggers launced for the general community for now or not?
e

elegant-psychiatrist-26453

07/29/2023, 7:11 PM
@early-train-33247 Do you know how much time it takes to be accepted on Botpress Beta?
g

gray-king-14604

07/29/2023, 8:13 PM
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

bright-waiter-54874

07/29/2023, 8:23 PM
Thank you! Works perfectly. Do you know the code to pop-up the chatbot as well?
e

early-train-33247

07/30/2023, 12:22 AM
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

gifted-thailand-51685

07/30/2023, 12:29 AM
Send a DM!
e

early-train-33247

07/30/2023, 1:06 AM
Hey @gifted-thailand-51685, please fill out this form to get access: https://forms.gle/t8n7TTYnVL65Ljcn6
c

curved-traffic-97676

07/30/2023, 1:16 AM
I see it now.. Thank you @early-train-33247
w

white-kangaroo-57225

07/30/2023, 1:16 AM
where i can know better about this trigger i just filled up the form
c

curved-traffic-97676

07/30/2023, 1:18 AM
w

white-kangaroo-57225

07/30/2023, 1:18 AM
thanks a lot
c

curved-traffic-97676

07/30/2023, 1:19 AM
np
e

elegant-psychiatrist-26453

07/30/2023, 5:41 AM
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

thankful-processor-79226

07/30/2023, 7:01 AM
@early-train-33247 I filled out the form several days ago and still cant see the trigger option...
g

gentle-shampoo-88367

07/30/2023, 9:58 AM
@elegant-psychiatrist-26453 you may add that line right after the sendMessage code, or just before the closing script tag
n

nutritious-carpenter-44827

07/30/2023, 10:22 AM
@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

wooden-monitor-735

07/30/2023, 1:37 PM
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

helpful-cartoon-9844

07/30/2023, 2:40 PM
Awesome customer support here, thank you team! I just applied for the triggers beta @early-train-33247
g

gifted-thailand-51685

07/30/2023, 3:17 PM
I assume we will receive an email once the Beta request has been accepted?
Nice plague nft
e

elegant-psychiatrist-26453

07/30/2023, 4:36 PM
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

loud-fish-38668

07/30/2023, 5:33 PM
where do I go to apply for the triggers beta?
w

white-kangaroo-57225

07/30/2023, 5:57 PM
thanks -)
e

eager-australia-26534

07/30/2023, 6:26 PM
Fill out the form scroll up itโ€™s somewhere
e

early-train-33247

07/31/2023, 1:43 AM
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

thankful-processor-79226

07/31/2023, 5:28 AM
done
c

cold-postman-19472

07/31/2023, 10:03 AM
I have already Filled the form but you didn't gave access to me
j

jolly-translator-89976

07/31/2023, 10:53 AM
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

creamy-hair-86823

07/31/2023, 11:20 AM
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

early-train-33247

07/31/2023, 12:58 PM
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

eager-afternoon-65837

07/31/2023, 2:00 PM
@freezing-printer-49373 @rich-battery-69172 wait how do I sign up
f

freezing-printer-49373

07/31/2023, 2:28 PM
you need to fill this form https://forms.gle/t8n7TTYnVL65Ljcn6
e

eager-australia-26534

07/31/2023, 4:08 PM
Anyone create a video on how to use triggers yet?
h

high-address-22342

07/31/2023, 4:45 PM
Guys, when do you plan to release officially triggers? We have a lot of requests from customers for this feature.
l

loud-fish-38668

07/31/2023, 5:44 PM
where will it say I have access to triggers once I have filled out the form?
b

best-cricket-48770

07/31/2023, 6:28 PM
It' won't send you any notice, you will just look at some point and see that the feature is there now
c

cold-jewelry-54343

07/31/2023, 7:38 PM
looking forward seeing the release of this ๐Ÿ™‚
c

crooked-van-25152

07/31/2023, 7:40 PM
Exactly. You might need to reload the Studio and right-click the editor to see the Trigger node option!
m

mysterious-action-40978

07/31/2023, 9:10 PM
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

crooked-van-25152

07/31/2023, 9:29 PM
Did you reload the studio? You might already have access.
m

mysterious-action-40978

07/31/2023, 9:31 PM
As in reload the page? if so yes, when i right click all that appears is disconnect node
n

narrow-art-3339

08/01/2023, 12:31 AM
Hey, just applied for the form. Anyone know how long it takes before it's available? Also where exactly does it appear?
s

sparse-thailand-38220

08/01/2023, 12:33 AM
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

jolly-translator-89976

08/01/2023, 1:28 AM
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

salmon-midnight-96260

08/01/2023, 3:54 AM
Did you find any solution for this
f

flat-rainbow-94744

08/01/2023, 5:17 AM
i filled this form a while ago, and still haven't gotten access
a

ambitious-ice-63749

08/01/2023, 6:46 AM
Hi, just filled the form
b

bland-teacher-2687

08/01/2023, 7:20 AM
Hi can anyone provide me the code and tell about how to use it in botpress
m

millions-printer-97170

08/01/2023, 8:00 AM
Just filed in the form!
p

purple-match-16159

08/01/2023, 8:56 AM
Filled in form too, messaged sly but no access yet. Would appreciate it if someone can allow this for me.
b

bland-teacher-2687

08/01/2023, 9:17 AM
Done. After how many days, I get access to the trigger feature
Just get trigger option.
m

mysterious-action-40978

08/01/2023, 12:35 PM
As in reload the page? if so yes, when i right click all that appears is disconnect node
e

early-train-33247

08/01/2023, 12:50 PM
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

big-night-48712

08/01/2023, 1:22 PM
i applied too @eager-state-25177
n

nutritious-carpenter-44827

08/01/2023, 2:37 PM
Cant wait!!
a

acceptable-airplane-36884

08/01/2023, 3:04 PM
Waiting for my triggers feature approval!
f

fancy-breakfast-34453

08/01/2023, 5:26 PM
Just signed up for the beta - excited to use triggers!
b

bland-hairdresser-23708

08/01/2023, 5:53 PM
Is there an explination somewhere on the Telegram trigger?
l

loud-fish-38668

08/01/2023, 6:01 PM
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

freezing-printer-49373

08/01/2023, 7:20 PM
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

loud-fish-38668

08/02/2023, 1:01 AM
It will show up in the cards section right?
s

stale-noon-97518

08/02/2023, 2:41 AM
Hi I have also just filled up the form. Hope I could also get access soon. Thank you!
s

square-dinner-12421

08/02/2023, 5:27 AM
Also just filled out the form, really need the feature
o

orange-lighter-82908

08/02/2023, 6:14 AM
All the events are gone for my ID somehow. Not sure how.
t

thankful-processor-79226

08/02/2023, 8:28 AM
are triggers also working in the "Test" Section?
cuz my triggers doesnt get activated after it gets triggered
e

early-train-33247

08/02/2023, 2:35 PM
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

cold-jewelry-54343

08/02/2023, 2:36 PM
Nice !!! ๐Ÿ™
f

fancy-breakfast-34453

08/02/2023, 6:40 PM
@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

broad-librarian-27137

08/02/2023, 7:30 PM
Yep. I am triggering exactly this on LIFECYCLE.LOADED . Please see the above link! ๐Ÿ˜Ž
g

gentle-shampoo-88367

08/02/2023, 7:49 PM
@fancy-breakfast-34453
f

fancy-breakfast-34453

08/02/2023, 8:03 PM
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

elegant-psychiatrist-26453

08/02/2023, 8:39 PM
I am with the same doubt
b

broad-librarian-27137

08/02/2023, 8:40 PM
Yes! And I think I picked โ€Conversation startโ€ from the trigger menu.
f

fancy-breakfast-34453

08/02/2023, 8:43 PM
@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

broad-librarian-27137

08/02/2023, 8:52 PM
Good luck! At least my initial tests seem to work and the bot acts proactively immediately upon page load.
d

dry-engineer-28090

08/02/2023, 10:33 PM
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

early-train-33247

08/02/2023, 11:44 PM
This only happens on the first conversation after you publish updates!
f

fancy-breakfast-34453

08/02/2023, 11:44 PM
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

early-train-33247

08/02/2023, 11:44 PM
Becca, did you fill out the form for the Triggers?
f

fancy-breakfast-34453

08/02/2023, 11:45 PM
@early-train-33247 to get access you mean?
e

early-train-33247

08/02/2023, 11:45 PM
When the conversation starts from a Trigger, it starts from the Trigger node instead of the Start node
f

fancy-breakfast-34453

08/02/2023, 11:46 PM
@early-train-33247 ah ok, helpful
should I remove the link to the start node?
d

damp-father-68061

08/02/2023, 11:47 PM
@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

early-train-33247

08/02/2023, 11:53 PM
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

fancy-breakfast-34453

08/02/2023, 11:58 PM
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

early-train-33247

08/03/2023, 1:38 AM
Thanks for sharing these steps with us @fancy-breakfast-34453! ๐Ÿฆพ ๐Ÿš€
w

white-spoon-79644

08/03/2023, 9:53 AM
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

high-address-22342

08/03/2023, 12:35 PM
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

square-dinner-12421

08/03/2023, 1:46 PM
took about 24 hours for me
w

white-spoon-79644

08/03/2023, 1:56 PM
Thank you for the response I appreciate you
e

early-train-33247

08/03/2023, 2:49 PM
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

square-dinner-12421

08/03/2023, 3:18 PM
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

elegant-psychiatrist-26453

08/03/2023, 3:24 PM
Am I the only one who couldn't figure this out?
i

important-microphone-70646

08/03/2023, 7:09 PM
Hi, please allow me access too! It would help me greatly and my clients!
d

dry-engineer-28090

08/03/2023, 7:14 PM
wdym publish updates, like when I publish the changes I made?
c

chilly-grass-44654

08/03/2023, 7:29 PM
I'd love to join this Beta - I could really use it on some current projects! Much Thanks!
f

famous-television-37002

08/03/2023, 7:57 PM
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

freezing-printer-49373

08/03/2023, 8:18 PM
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

famous-television-37002

08/03/2023, 8:27 PM
like an hour ago
c

crooked-van-25152

08/03/2023, 9:02 PM
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

early-train-33247

08/03/2023, 9:51 PM
yes
You have access now ๐Ÿ˜‰
p

purple-lock-93374

08/04/2023, 12:51 AM
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

rich-battery-69172

08/04/2023, 1:00 AM
@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

early-train-33247

08/04/2023, 2:26 AM
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

elegant-psychiatrist-26453

08/04/2023, 3:33 AM
@early-train-33247 do you know how to solve it?
s

swift-ability-43955

08/04/2023, 7:47 AM
hi can i still apply to get this feature ?
just submitted the form guys
a

adamant-laptop-15168

08/04/2023, 7:49 AM
Is it just me or the triggers take some time to open the webchat??
s

swift-ability-43955

08/04/2023, 7:51 AM
also if im granted it how will i know ? will you guys send me a notififcation
l

little-scientist-91622

08/04/2023, 8:59 AM
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

flat-teacher-31478

08/04/2023, 9:40 AM
Hello guys. How can i acess this feuture? i cant find it in botpress. Best regard
l

little-scientist-91622

08/04/2023, 10:00 AM
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

freezing-printer-49373

08/04/2023, 3:48 PM
it's now open to public
jsut refresh your studio
i

important-microphone-70646

08/04/2023, 5:09 PM
Hi, can someone send me the code needed to send the event etc to the trigger
I can't seem to find it
s

swift-baker-92155

08/04/2023, 8:19 PM
Hi guys is it working for you? I drag conversation started and it doesnt even create the trigger
f

freezing-printer-49373

08/04/2023, 9:00 PM
Yes it's working for me and a bunch of people of what i can see.
m

miniature-mouse-80705

08/04/2023, 9:03 PM
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

freezing-printer-49373

08/04/2023, 9:50 PM
by projects you mean workspaces? or bots?
so you are saying the triggers are showing on some bots but not others?
m

miniature-mouse-80705

08/05/2023, 6:16 AM
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

freezing-printer-49373

08/05/2023, 3:56 PM
perfect, glad to hear it! ๐Ÿ™‚
t

thousands-jelly-8370

08/06/2023, 12:40 PM
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

numerous-notebook-18135

08/06/2023, 11:18 PM
How to open automatically thรฉ Window?
h

helpful-kilobyte-18816

08/07/2023, 12:34 AM
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

gifted-thailand-51685

08/07/2023, 10:12 AM
Where can I find the webchat trigger example code, as displayed in this video?

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

r

ripe-van-49559

08/07/2023, 7:37 PM
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

jolly-translator-89976

08/08/2023, 6:30 AM
i dont have triggers
how do i get it back
its really odd
same thing
c

clean-ocean-88329

08/08/2023, 2:45 PM
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

crooked-van-25152

08/08/2023, 2:57 PM
Did you check this video?

https://youtu.be/CLw2Mwd3euQโ–พ

e

early-train-33247

08/09/2023, 2:33 AM
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

rich-oxygen-43707

08/09/2023, 7:51 PM
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

freezing-printer-49373

08/09/2023, 7:57 PM
webchat
triggers were released
others are still in beta
hope that helps ๐Ÿ™‚
r

rich-oxygen-43707

08/09/2023, 8:01 PM
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

busy-tiger-5706

08/09/2023, 8:17 PM
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

freezing-printer-49373

08/09/2023, 8:32 PM
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

quiet-football-94718

08/10/2023, 4:25 AM
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

aloof-shoe-51097

08/10/2023, 6:39 PM
j

jolly-translator-89976

08/15/2023, 4:09 AM
how do i get the code to wait for 10 seconds
and then send trigger
a

average-megabyte-82737

08/15/2023, 8:53 AM
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

jolly-translator-89976

08/17/2023, 8:45 AM
nah ceebs
a

average-megabyte-82737

08/17/2023, 10:43 AM
ceebs?
a

acoustic-market-49684

08/17/2023, 12:20 PM
Hello, can I get the beta acess to the Initiate trigger please?
c

crooked-van-25152

08/17/2023, 6:03 PM
Triggers are open to everyone!

https://youtu.be/CLw2Mwd3euQโ–พ

https://youtu.be/FKH3b9NlyaIโ–พ

e

early-train-33247

08/18/2023, 1:21 AM
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

acoustic-market-49684

08/18/2023, 6:19 PM
Thank you.
j

jolly-translator-89976

09/19/2023, 9:19 PM
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

crooked-van-25152

09/19/2023, 9:40 PM
It is now available for everyone ๐Ÿ™‚ no beta needed here
a

ancient-intern-19191

09/21/2023, 8:06 AM
this doens't work for LINE messenger integration ๐Ÿ˜ญ
m

modern-finland-97226

09/22/2023, 4:22 PM
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

loud-nightfall-91732

09/23/2023, 3:18 PM
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?
40 Views