Send Message / SendMessage (internally is.workflow.actions.sendmessage)

This action is not yet complete. Some arguments may be missing.

This action requires that Shortcuts has permission to use WFContactAccessResource,WFUserInteractionResource.

description

summary

Sends an iMessage or SMS. Pass images, videos, or other files as input to include attachments.

usage

SendMessage app=("string" | variable)] showWhenRun=(true | false | variable) undefined=NotImplemented WFSendMessageContent="string" prefix="string"

arguments


app: Intent App Picker (Docs)

Default Value: com.apple.MobileSMS Allows Variables: true

Only enabled if: Device attributes match {"WFDeviceAttributeSystemVersion":{"WFSystemVersion":"12.0","WFSystemVersionRelation":">="}} This action is always enabled inside Shortcutslang.

Only enabled if: This action is always disabled inside Shortcutslang.

	Accepts a string or variable containing the option. Check the shortcuts app for a list of available options. 

showWhenRun: Switch (Docs)

Default Value: true Allows Variables: true

Only enabled if: Device attributes match {"WFDeviceAttributeSystemVersion":{"WFSystemVersion":"12.0","WFSystemVersionRelation":">="}} This action is always enabled inside Shortcutslang.

Accepts a boolean or a variable.


This parameter is not implemented yet.

The parameter type is WFContactHandleFieldParameter. If you need to use this parameter, you may be able to use a raw value. Try converting a .shortcut to a .scpl containing the values you want in this parameter.


WFSendMessageContent: Text (Docs)

Placeholder: "Message" Allows Variables: true

Accepts a string or text with the text. Allows newlines.


prefix: Text (Docs)

Allows Variables: true

Only enabled if: This action is always disabled inside Shortcutslang.

Accepts a string or text with the text. Does not allow newlines.


source json (for developers)

{
	"ActionClass": "WFSendMessageAction",
	"ActionKeywords": [
		"message",
		"sms",
		"send",
		"text"
	],
	"AppIdentifier": "com.apple.MobileSMS",
	"Category": "Sharing",
	"Description": {
		"DescriptionSummary": "Sends an iMessage or SMS. Pass images, videos, or other files as input to include attachments."
	},
	"Input": {
		"Multiple": true,
		"Required": false,
		"Types": [
			"WFContentItem"
		]
	},
	"InputPassthrough": true,
	"IntentIdentifier": "sirikit.intent.messages.SendMessageIntent",
	"LastModifiedDate": "2015-11-24T06:00:00.000Z",
	"Name": "Send Message",
	"Parameters": [
		{
			"Class": "WFIntentAppPickerParameter",
			"DefaultValue": "com.apple.MobileSMS",
			"Hidden": true,
			"IntentName": "INSendMessageIntent",
			"Key": "IntentAppIdentifier",
			"Label": "App",
			"RequiredResources": [
				{
					"WFDeviceAttributes": {
						"WFDeviceAttributeSystemVersion": {
							"WFSystemVersion": "12.0",
							"WFSystemVersionRelation": ">="
						}
					},
					"WFResourceClass": "WFDeviceAttributesResource"
				}
			]
		},
		{
			"Class": "WFSwitchParameter",
			"DefaultValue": true,
			"Key": "ShowWhenRun",
			"Label": "Show When Run",
			"RequiredResources": [
				{
					"WFDeviceAttributes": {
						"WFDeviceAttributeSystemVersion": {
							"WFSystemVersion": "12.0",
							"WFSystemVersionRelation": ">="
						}
					},
					"WFResourceClass": "WFDeviceAttributesResource"
				}
			]
		},
		{
			"Class": "WFContactHandleFieldParameter",
			"IntentSlotName": "recipients",
			"Key": "WFSendMessageActionRecipients",
			"Label": "Recipients",
			"Placeholder": "Phone or email"
		},
		{
			"Class": "WFTextInputParameter",
			"IntentSlotName": "content",
			"Key": "WFSendMessageContent",
			"Multiline": true,
			"Placeholder": "Message"
		},
		{
			"Class": "WFTextInputParameter",
			"Hidden": true,
			"Key": "WFSendMessagePrefix",
			"Label": "Prefix"
		}
	],
	"RateLimit": {
		"Delay": 3,
		"Threshold": 4,
		"Timeout": 30
	},
	"RequiredResources": [
		"WFContactAccessResource",
		"WFUserInteractionResource"
	],
	"Subcategory": "Messaging",
	"SuggestedAsInitialAction": true,
	"UserInterfaces": [
		"UIKit",
		"UIKitWidget",
		"WatchKit",
		"Siri"
	]
}