How do I get notified via text/notification any time a guest joins a chatroom?

I'd like to get an alert each and every time a guest joins the chatroom, so that I can get on and talk to them. I understand I may need to create a bot to do this. I don't have any coding experience though, so is there an easy step by step way to add a bot with this functionality? Or another way to do it?

Hipchat support directed me to here to pose this question... Any and all help would be greatly appreciated.

1 answer

1 vote

Unfortunately, most bots are designed to respond to messages and perform actions rather than respond to users entering the room. In order to accomplish what you're looking for, your best bet is probably to take an existing bot and extend it to respond to XMPP presence messages.

Once you have a bot that can detect presence messages, you can detect guests entering the room by looking for <presence> stanzas sent to the desired room where the role attribute on inner <item> node is "visitor". For example:

&lt;presence xmlns="jabber:client" to="" from=" Rivers"&gt;
	&lt;x xmlns=""&gt;
		&lt;item affiliation="member" jid="" role="visitor"/&gt;

You can view our instructions for running a bot at

Suggest an answer

Log in or Join to answer
Community showcase
Maarten Cautreels
Published Oct 07, 2017 in Hipchat

Bringing Structure to your HipChat Instance

...have mention name FirstnameLastname. Fe.: @MaartenCautreels This certainly helps to know who is being mentioned in a conversation. Imagine your colleague sends the following message...

466 views 1 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot