Reacting and commenting
This page describes how to create workflows for reacting and commenting on LinkedIn posts.
Reacting to post
To react to a post, you need to include st.reactToPost
action in your workflow. Here's an example:
Workflow:
{
"actionType": "st.reactToPost",
"postUrl": "https://www.linkedin.com/posts/post1",
"type": "like"
}
Completion:
{
"actionType": "st.reactToPost",
"success": true
}
Commenting on post
To comment on a post, you need to include st.commentOnPost
action in your workflow. Here's an example:
Workflow:
{
"actionType": "st.commentOnPost",
"postUrl": "https://www.linkedin.com/posts/post1",
"text": "I completely agree with your point."
}
Completion:
{
"actionType": "st.commentOnPost",
"success": true
}
Reacting + commenting
To react and comment on the same post, you need to include st.reactToPost
and st.commentOnPost
as child actions of st.openPost
action. Here's an example:
Workflow:
{
"actionType": "st.openPost",
"postUrl": "https://www.linkedin.com/in/person1",
"basicInfo": false,
"then": [
{
"actionType": "st.reactToPost",
"type": "like"
},
{
"actionType": "st.commentOnPost",
"text": "I completely agree with your point."
}
]
}
Completion:
{
"actionType": "st.openPost",
"success": true,
"data": {
"then": [
{
"actionType": "st.reactToPost",
"success": true
},
{
"actionType": "st.commentOnPost",
"success": true
}
]
}
}
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.