Transport
Send a message through one of the available transport channels.
SendEmail
core.SendEmail({...})
Send an email
- Object
to: Email
subject: String!
message: String!
reply: String
Email reply toname: String
Email display namefrom: String
Email from (must be an approved domain)
Boolean
SendText
core.SendText({...})
Send an SMS message
- Object
to: String
valid cell phone number with country code and area codemessage: String!
text message; limited to 160 characters in many regions
Boolean
SendChat
core.SendChat({...})
Send a chat messgae to a group channel
- Object
to: UUID!
channel id to send tofrom: UUID!
user Id to send frombody: String
display messagedata: Lua Table
data for the messagekind: enum
direct | group | ad-hoc | org | self | managed | dispatch | dataschema
:text.json
or other schema id
Boolean
SendDirectChat
core.SendDirectChat({...})
Send a chat message to a user via direct chat
- Object
to: UUID!
user id to send tofrom: UUID!
user Id to send frommessage: String
messagedata: Lua Table
data for the message
Boolean
SendManagedChat
core.SendManagedChat({...})
Send a chat message to a managed channel for a user
- Object
to: UUID!
user id to send tofrom: UUID!
user Id to send frommessage: String
messagedata: Lua Table
data for the message
Boolean
InvokeInbox
core.InvokeInbox({...})
Initiate an inbox workflow
- Object
id: UUID!
inbox idrecipient: UUID!
recipient iddata: Lua Table
data object used by the inboxserviceId: String
optional globally unique string for the inbox; only one instance will be sent (nothing will be done if the service ID already exists)dispatchId: String
optional dispatch ID to use for invoking the inbox
Boolean
SendPush
core.SendPush({...})
Send a push notification to a specific user
- Object
id: UUID!
user id to send totitle: String
titlemessage: String
message
Boolean
InvokeTunnel
core.InvokeTunnel({...})
Invoke a behavior trigger in another org. Receiving org should check the originId to confirm this is an expected script invokation.
- Object
orgId: UUID!
org id of target orghandle: String
handle of target behaviordata: Any
data object to pass
Boolean
core.InvokeTunnel({
orgId="<destination org>",
handle="<target trigger>",
data={blob={a="test1", b="test2"}}
})
Send Chat
core.SendChat({...})
core.SendChat({
to="5aa21c...1e339",
from="aeebf9...0c5f9cd",
channel="5aa21c...1e339",
data={
text="yo!",
data_schema="text.json"
},
schema="text.json",
kind="org",
body="yo!",
notifyMode="none",
event="weave.chat"
})