Portal Community

When to Use

Configuration

Connection

FieldRequiredDescription
accessTokenRequiredLong-lived Instagram access token stored in BizFirst Credentials Manager.
igUserIdRequiredYour Instagram Business/Creator account ID.

Operation

FieldRequiredDescription
resourceRequiredMust be comments.
operationRequiredMust be get (note: the underlying API uses a direct node lookup by comment ID).
commentIdRequiredThe Instagram comment object ID to retrieve.
fieldsOptionalComma-separated fields: id,text,username,timestamp,like_count,replies_count,hidden.

Sample Configuration JSON

{
  "resource": "comments",
  "operation": "get",
  "accessToken": "{{ $credential.instagram.accessToken }}",
  "igUserId": "17841400000000000",
  "commentId": "{{ $trigger.body.value.commentId }}",
  "fields": "id,text,username,timestamp,like_count,hidden"
}

Validation Errors

ErrorCause
accessToken is requiredaccessToken field is missing or empty.
commentId is requiredcommentId field is missing or empty.
Graph API error 100Comment does not exist or has been deleted.

Output

Success Port

FieldTypeDescription
statusstring"success"
idstringComment ID.
textstringComment text content.
usernamestringInstagram username of the commenter.
timestampstringISO 8601 comment creation timestamp.
likeCountnumberNumber of likes on this comment.
repliesCountnumberNumber of replies to this comment.
hiddenbooleantrue if the comment is currently hidden from public view.
payloadstringRaw JSON response from the Graph API.

Error Port

FieldTypeDescription
statusstring"error"
errorCodestringGraph API error code.
errorMessagestringError description.
payloadstringRaw error response.

Sample Output JSON

{
  "status": "success",
  "id": "17858893269000001",
  "text": "Love this product! Where can I buy it?",
  "username": "customer_jane",
  "timestamp": "2025-06-15T16:42:00+0000",
  "likeCount": 5,
  "repliesCount": 1,
  "hidden": false,
  "payload": "{\"id\":\"17858893269000001\",\"text\":\"Love this product!...\"}"
}

Expression Reference

ExpressionValue
{{ $output.instagram.text }}Comment text
{{ $output.instagram.username }}Commenter's username
{{ $output.instagram.hidden }}Boolean visibility status
{{ $output.instagram.likeCount }}Like count on comment
{{ $output.instagram.timestamp }}ISO 8601 creation time

Node Policies & GuardRails

Examples

Moderation on webhook comment event

{
  "resource": "comments",
  "operation": "get",
  "accessToken": "{{ $credential.instagram.accessToken }}",
  "igUserId": "{{ $env.IG_USER_ID }}",
  "commentId": "{{ $trigger.body.value.commentId }}",
  "fields": "id,text,username,timestamp,hidden"
}

Triggered by a trigger/webhook node on comment events. Retrieves full comment text for sentiment analysis before routing to hide, reply, or escalation nodes.

Audit log before moderation action

{
  "resource": "comments",
  "operation": "get",
  "accessToken": "{{ $credential.instagram.accessToken }}",
  "igUserId": "17841400000000000",
  "commentId": "{{ $input.commentId }}",
  "fields": "id,text,username,timestamp,like_count,hidden"
}

Runs before comment/hide or comment/delete to capture the original comment content for the compliance audit log.