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

# init(identifier:content:dateSent:sender:recipients:)

Creates a message with the specified content.

```
convenience init(identifier: String, content: String?, dateSent: Date?, sender: INPerson?, recipients: [INPerson]?)
```

## Parameters

`identifier`

The message’s unique identifier. Specify a value that you can later use to identify the same message.

`content`

The text that Siri recites to the message recipient.

`dateSent`

The date and time the app sent the message to each recipient.

`sender`

The person who sent the message.

`recipients`

The people who recieved the message.

## Return Value

A message that SiriKit configures with the specified parameters, or `nil` if there was a problem creating the message.

## Discussion

For each participant in the message (sender and recipients), create an instance of [`INPerson`](/documentation/Intents/INPerson) using one of the initializers that require an `isMe` parameter. Use <doc://com.apple.documentation/documentation/Swift/true> for the participant that represents the user of the current device; for all other participants, use <doc://com.apple.documentation/documentation/Swift/false>. When creating each of those objects, provide enough information for you to later identify that same person.

---

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)