<!--
{
  "availability" : [
    "iOS: 10.0.0 - 11.0.0",
    "iPadOS: 10.0.0 - 11.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 3.2.0 - 4.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INSendMessageIntent/init(recipients:content:groupName:serviceName:sender:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INSendMessageIntent(im)initWithRecipients:content:groupName:serviceName:sender:"
  },
  "title" : "init(recipients:content:groupName:serviceName:sender:)"
}
-->

# init(recipients:content:groupName:serviceName:sender:)

Initializes a send message intent object with the specified content and recipients.

```
convenience init(recipients: [INPerson]?, content: String?, groupName: String?, serviceName: String?, sender: INPerson?)
```

## Parameters

`recipients`

The intended recipients of the message.

`content`

The contents of the message.

`groupName`

The name of a group that should receive the message. Specify `nil` if you do not want to send the message to a group address.

`serviceName`

The specific service to use when sending the message. You may specify `nil` if your app has only one way of sending messages.

`sender`

The person that created the message.

## Return Value

An initialized intent or `nil` if the object could not be created.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)