---
title: "init(recipients:outgoingMessageType:content:speakableGroupName:conversationIdentifier:serviceName:sender:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/insendmessageintent/init(recipients:outgoingmessagetype:content:speakablegroupname:conversationidentifier:servicename:sender:)"
---

# init(recipients:outgoingMessageType:content:speakableGroupName:conversationIdentifier:serviceName:sender:)

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

## Declaration

```swift
convenience init(recipients: [INPerson]?, outgoingMessageType: INOutgoingMessageType, content: String?, speakableGroupName: INSpeakableString?, conversationIdentifier: String?, serviceName: String?, sender: INPerson?)
```

## Parameters

- `recipients`: The intended recipients of the message.
- `outgoingMessageType`: The format of the message.
- `content`: The contents of the message.
- `speakableGroupName`: 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.
- `conversationIdentifier`: The unique identifier for the message conversation. Specify nil if your app does not assign identifiers to conversations between users.
- `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

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

## Discussion

Discussion Create an INSendMessageIntent and donate it in an INInteraction when the user sends a message directly in your app. When the user initiates sending a message from outside your app, such as asking Siri or tapping on a contact in the Share Sheet, the system creates the intent and provides it to your intent handler.

## See Also

### Deprecated Symbols

- [init(recipients:content:speakableGroupName:conversationIdentifier:serviceName:sender:)](intents/insendmessageintent/init(recipients:content:speakablegroupname:conversationidentifier:servicename:sender:).md)
- [init(recipients:content:groupName:serviceName:sender:)](intents/insendmessageintent/init(recipients:content:groupname:servicename:sender:).md)
- [groupName](intents/insendmessageintent/groupname.md)
