Skip to main content
POST
/
action
/
linkedin_sentiment_render_report_html
Render LinkedIn Sentiment Report
curl --request POST \
  --url https://api-lr.agent.ai/v1/action/linkedin_sentiment_render_report_html \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "posts_json": "{{linkedin_posts}}",
  "output_variable_name": "sentiment_report_html",
  "sentiments": "<string>",
  "report_title": "LinkedIn Post Sentiment Analysis"
}
'
{
  "status": 123,
  "response": {}
}

Authorizations

Authorization
string
header
required

Bearer token from your account (https://agent.ai/user/integrations#api)

Body

application/json
posts_json
string
default:{{linkedin_posts}}
required

JSON array of LinkedIn post objects (from the Search LinkedIn Posts action output), or a variable reference like {{linkedin_posts}}.

output_variable_name
string
default:sentiment_report_html
required

Variable name to store the rendered HTML report.

Pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
sentiments
string

Optional JSON object mapping postId to sentiment label (e.g. {"postId123": "Positive"}). If omitted, sentiment is auto-classified from post content.

report_title
string
default:LinkedIn Post Sentiment Analysis

Title displayed at the top of the report.

Response

Successful response

status
integer<int32>

HTTP status code of the action response

response
object

Response data from the action