# Livechat / RegisterVisitor / Send Message

**URL:** <https://forums.rocket.chat/t/livechat-registervisitor-send-message/3263>\
**Category:** Community Support\
**Created:** [February 22, 2019, 9:29am UTC](https://forums.rocket.chat/t/livechat-registervisitor-send-message/3263 "2019-02-22T09:29:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![markpb](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@markpb](https://forums.rocket.chat/u/markpb)\
**Post date:** [February 22, 2019, 9:29am UTC](https://forums.rocket.chat/t/livechat-registervisitor-send-message/3263/1 "2019-02-22T09:29:17Z")

</div>

Hi

I can successfully call the Livechat registerGuest function from javascript

Is there a way to also send an initial message within the same function call, or addtional code to programmatically send a message as if coming from the Livechat visitor

![image](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/1X/3bbe4471b508af1bda510a84ce0b144f4d68f96c.png)
