Send Group Message


#1

Send a message to selected members of a group.

Action Directory link: https://actions.getdrafts.com/a/1IJ

This action is handy when you deal with a group but often want to limit a message to certain people. I find it useful when messaging my family. Some messages go to everyone. A message about soccer practice might go to my spouse and one child. I might message just the kids about Mother’s Day plans.

The first script step is used to configure the action. Add member names and phone numbers, or email addresses, to the groupList:

const groupList = {
    "Carol": "7189872886",
    "Marsha": "5176582457",
    ...
}

The second step displays a prompt to select one or more members of the group.

  [x] Carol
  [ ] Marsha
  [ ] Jan
  [x] Cindy

The selections are added to the [[to]] template tag for use in subsequent steps.

The third step is the Drafts Message action. Customize the subject or body to suit your needs. Switch this to the Mail action if you send email to the group.


#2

Very useful action. thanks


#3

I feel bad for Mike, Greg, Peter and Bobby. For once Jan isn’t the one being left out at least. :wink:


#4

Is there a way within the action to send to a group in Messages that has a custom name rather than just the people within the group?

Example: I have a running group text with my wife and our best friend called “Trio” in Messages. If I use this action to message them, this will create a separate thread in Messages. How can I send to the “Trio” thread instead.


#5

Messages does not expose named conversations in this way, those are just internal to Messages.


#6

I tried some experiments and it doesn’t look like the group name works in the recipients field of the Drafts Message action. Don’t know if that’s something that could be added to Drafts or if it’s a limitation of iMessage. @agiletortoise might be able to confirm.


#7

Appreciate the answer. Thanks @agiletortoise too!


#8

The compromise I came up with when I wanted to send a message to a named group is to leave the recipients blank, but copy the name of the group to the clipboard before launching the messages extension. That way you can just paste quickly and send.


#9

I really like the Group Message action created by @dchar in the Action Directory. I was wondering if there was a way to modify this to create a loop - allowing the same message to be sent individually, multiple times from the contacts selected. AT the same time this would avoid creating a grouped message chain. I realize I could send this “message” as an email using BCC, but for my needs, sending as a message is required.


#10

Short answer: Yes. Totally possible with scripting. It’s actually on my list of examples to write, but I don’t get to that list often. I’ll see if I can get to it soon.


#11

Much appreciated! Great App.


#12

Hi @Shelton

I took a crack at a new action, BCC group message, that loops over the selected contacts as you described. Let me know what you think.


#13

Thank you @dchar for working on this. But I was not able to import – received an import error “lnvalid Action, unable to import.” Message. I’m looking forward to checking this one out. Keep me posted. Again, thanks!


#14

There’s an issue in the import that will be fixed in the next public release of Drafts. Sorry, I don’t know the time frame.


#15

Is it definitely a bug in the existing public version? Not an incompatibility issue in the beta version?


#16

I don’t know the specifics. That’s what @agiletortoise mention when I reported the issue.


#17

Thank you @dchar for a nice, clean BCC Group Message Action. https://actions.getdrafts.com/a/1N4

It works great! While each person on the list requires a separate “send” tap by me (I assume this is a requirement of Apple), it affords me the opportunity to selectively customize the message to one or more of the individuals if I’d like.