Skip to content

Publication

This component allows you to automate the sharing of content on LinkedIn directly from your Nappai automation workflows. It acts as a bridge between your data management systems and your LinkedIn profile, enabling you to publish updates, news, images, or links without manually logging into LinkedIn.

How it Works

This component connects to the LinkedIn Business API. When you configure it with a valid LinkedIn account credential, it sends your content to LinkedIn’s servers. It handles the technical details of authentication and formatting, ensuring that your post is published according to LinkedIn’s rules. Whether you want to share a simple text update, a link to an article, an image, or a video, this component prepares and sends the data to the correct destination.

Connection & Credentials

This component requires configuring a credential in the Nappai panel before interacting with the external service:

  1. Go to the Credentials section in your Nappai panel.
  2. Create a new credential of the type LinkedIn API and fill in the required fields (Client Id and Client Secret). You can generate these keys in the LinkedIn Developer Console.
  3. In your workflow, select the saved credential in the Credential input field of this node.

Operations

This component offers several operations that you can select based on what you need to do. You can only use one operation at a time:

  • Operation: Select the specific action you want to perform. Available options include creating a post with text, a link (URL), an image, or a video.
  • Type of publicacion: Select the type of publication to be shared. Options include Text, Url, Image, or Video.
  • Visibility: Select the visibility of the publication. Options include “Only Friends” (allowing only people connected to the user to see it) or “Anyone” (making the post public).
  • Title: Introduce the title of the post to be shared. This is useful for articles or links.
  • Description: Introduce the description of the post to be shared. This provides context for your audience.
  • Url: Introduce the url of the post to be shared. Required if you are sharing a link.
  • Binary: Binary media to upload to the LinkedIn Business API. Use this field to upload images or videos.
  • Text of the post: Introduce the text of the post to be shared. This is the main body of your message.
  • Post ID: Post ID to delete. Use this if you need to remove an existing post from LinkedIn.

To use the component, first select the operation you need in the “Operation” field.

Inputs

The following fields are available to configure this component. Each field may be visible in different operations:

  • Credential: The LinkedIn API credential you configured earlier. This identifies which LinkedIn account will publish the content.

    • Visible in: All operations
  • Operation: The specific action to perform, such as creating a post or deleting one.

    • Visible in: All operations
  • Type of publicacion: The format of the content you are sharing (Text, URL, Image, or Video).

    • Visible in: All operations
  • Visibility: Controls who can see your post (Friends only or Public).

    • Visible in: All operations
  • Title: The headline or title of your post.

    • Visible in: Text, Url, Image, Video operations
  • Description: Additional context or details about your post.

    • Visible in: Text, Url, Image, Video operations
  • Url: The link you want to share.

    • Visible in: Url, Image, Video operations
  • Binary: The actual image or video file to upload.

    • Visible in: Image, Video operations
  • Text of the post: The main message of your update.

    • Visible in: Text, Url, Image, Video operations
  • Post ID: The unique ID of a post you wish to delete.

    • Visible in: Delete operation

Outputs

  • Data: Contains the result of the operation. If the post was successfully created, this will include the Publication ID, which is a unique reference number for the new LinkedIn post. It also returns the Status to confirm if the action was successful (e.g., “Success”) and Response Data for detailed technical information if needed for debugging.

Output Data Example (JSON)json

{ “publication_id”: “urn:li:share:7123456789012345678”, “status”: “Success”, “response_data”: { “author”: “urn:li:person:12345678”, “createdAt”: “2023-10-27T10:30:00Z”, “commentary”: “Check out our latest update!”, “visibility”: { “visibilityCode”: “PUBLIC” } } }

Connectivity

This component is typically used at the end of a workflow after content has been generated or prepared.

  • Preceding Components: It usually follows components that generate content, such as Text Generator, Article Extractor, or Image Processor.
  • Following Components: It can connect to Analytics Trackers or Notification Alerts to monitor the performance of the post or notify team members that the post has been published.

Usage Example

Scenario: Automating Daily Company News

  1. Input: You have a workflow that fetches the latest news from your company blog.
  2. Configuration:
    • Set Operation to “Create Post”.
    • Set Type of publicacion to “Url”.
    • Set Visibility to “Anyone”.
    • In Text of the post, type “Check out our latest news on sustainability!”
    • In Url, map the URL from the previous component.
  3. Execution: When the workflow runs, it automatically publishes this message and link to your LinkedIn company page.

Tips and Best Practices

  • Always verify your Visibility setting before publishing to ensure the right audience sees your content.
  • For posts with images, ensure the Binary input is correctly linked to an image file from a previous step.
  • If you need to remove an old post, use the Post ID input to specify which post to delete.
  • Use the Description field to add context that doesn’t fit in the main text.

Security Considerations

  • Ensure that your LinkedIn API credentials are kept secure and are only shared with trusted team members.
  • Be cautious when setting Visibility to “Anyone” to avoid sharing sensitive internal information publicly.
  • Regularly audit your published posts to maintain brand consistency and accuracy.