Skip to main content
POST
Render LinkedIn Sentiment Report

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