Sending messages
To send a message to a person in LinkedIn, you need to include st.sendMessage action in your workflow. Here's an example:
Each example below has its Node SDK call in the Node tab, and the label over each completion says what that call returns.
Each example below has its Python SDK call in the Python tab, and the label over each completion says what that call returns.
Each example below has its CLI command in the CLI tab, and the label over each completion says what the command prints.
Workflow:
{
"actionType": "st.sendMessage",
"personUrl": "https://www.linkedin.com/in/person1",
"text": "Hi! I'd love to connect and discuss some ideas."
}Completion:
Completion – the method returns no data; a failed action comes back in errors:
Completion – with --json the CLI prints {"success": true, "data": null}, or the action's error:
{
"actionType": "st.sendMessage",
"success": true
}💡 If you want to send a message in Sales Navigator (spend your Sales Navigator in-mail credits), use
nv.sendMessageaction.
💡 To reply into a known conversation without resolving the person's profile URL, pass a
threadId(as returned by inbox polling) instead ofpersonUrl. Seest.sendMessage.
💡 To read replies, see the Messaging overview.
This page provides examples of workflows and their completions. For detailed documentation on constraints, parameters, and possible results of specific actions, always refer to the corresponding action documentation pages.