# Making automated messages sent from RapidPro to CHT visible on the message tab

**URL:** <https://forum.communityhealthtoolkit.org/t/making-automated-messages-sent-from-rapidpro-to-cht-visible-on-the-message-tab/2747>\
**Category:** Feature Ideas\
**Tags:** configuration\
**Created:** [May 16, 2023, 4:44pm UTC](https://forum.communityhealthtoolkit.org/t/making-automated-messages-sent-from-rapidpro-to-cht-visible-on-the-message-tab/2747 "2023-05-16T16:44:24Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![michael](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/michael/32/319_2.png) [@michael](https://forum.communityhealthtoolkit.org/u/michael)\
**Post date:** [May 16, 2023, 6:01pm UTC](https://forum.communityhealthtoolkit.org/t/making-automated-messages-sent-from-rapidpro-to-cht-visible-on-the-message-tab/2747/3 "2023-05-16T18:01:15Z")

</div>

> [@Evelyn\_Waweru](#):
>
> POSTing to /api/sms and specifying “from” and “to” properties in the payload. This did not seem to work.

Did you try the solution mentioned [here](https://forum.communityhealthtoolkit.org/t/working-with-messages-between-contacts-using-code/2691/3)?

> [@Evelyn\_Waweru](#):
>
> Creating an sms\_message data record for the contact directly in CouchDB. This worked. However, we noted that since these automated messages will show up as new messages for the CHV, it would create spam and make it difficult to discern these automated messages from actual client interactions.

Do you mean that it showed up as a completely different message on the left hand side (instead of in the thread on the right hand side)?

> [@Evelyn\_Waweru](#):
>
> Directly write the message to the database (should not trigger unread message notification)

Did this work and was just not desirable?

> [@Evelyn\_Waweru](#):
>
> How to mark the sms\_message data record as already read so that we avoid spamming the CHV. This in the case that there are no better ways of achieving what we need.

There are documents in the `medic-user-xxxx-meta` database that keep track of which records are “read”. Would it be possible to create those as well?

---

_[View the full topic](https://forum.communityhealthtoolkit.org/t/making-automated-messages-sent-from-rapidpro-to-cht-visible-on-the-message-tab/2747)._
