> ## Documentation Index
> Fetch the complete documentation index at: https://relevanceai.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 'Unipile - LinkedIn Action' Tool step

> Perform actions on LinkedIn using this Tool step

The 'Unipile - LinkedIn Action' Tool step allows you to search through LinkedIn profiles through Relevance AI.

<Note>
  You can learn more about the LinkedIn integration [here](/integrations/popular-integrations/linkedin).
</Note>

## Add the 'Unipile - LinkedIn Action' Tool step to your Tool

<div style={{ width:"100%",position:"relative","padding-top":"56.75%" }}>
  <iframe src="https://app.supademo.com/embed/cmei2eup097hth3pyxr1n3iko" frameBorder="0" title="Add the Unipile - LinkedIn Action Tool step to your Tool" allow="clipboard-write; fullscreen" webkitAllowFullscreen="true" mozAllowFullscreen="true" allowFullscreen style={{ position:"absolute",top:0,left:0,width:"100%",height:"100%",border:"3px solid #5E43CE",borderRadius:"10px" }} />
</div>

You can add the 'Unipile - LinkedIn Action' Tool step to your Tool by:

1. Creating a new Tool, then searching for the 'Unipile - LinkedIn Action' Tool step
2. Click 'Expand' to see the full Tool step
3. Choose the Action you want to perform in the Action field
4. Connect or select your LinkedIn account in the 'LinkedIn Account' field
5. Enter the parameters for the action you selected, and then click 'Run step' to run the Tool step

## Parameters

Parameters differ for each action in this Tool step, but the LinkedIn account is always required.

<Tabs>
  <Tab title="Get All Chats">
    <ParamField path="Before" type="string">
      A filter to target items created before the datetime (exclusive). Must be an ISO 8601 UTC datetime (YYYY-MM-DDTHH:MM:SS.sssZ).
    </ParamField>

    <ParamField path="After" type="string">
      A filter to target items created after the datetime (exclusive). Must be an ISO 8601 UTC datetime (YYYY-MM-DDTHH:MM:SS.sssZ).
    </ParamField>

    <ParamField path="Cursor" type="string">
      A cursor for pagination purposes. To get the next page of entries, you need to make a new request and fulfill this field with the cursor received in the previous request. This process should be repeated until all entries have been retrieved.
    </ParamField>

    <ParamField path="Limit" type="string">
      The maximum number of results to return. This can be between 1 to 250.
    </ParamField>
  </Tab>

  <Tab title="Get All Messages From Chat">
    <ParamField path="Chat ID" type="string">
      The ID of the chat.
    </ParamField>

    <ParamField path="Before" type="string">
      A filter to target items created before the datetime (exclusive). Must be an ISO 8601 UTC datetime (YYYY-MM-DDTHH:MM:SS.sssZ).
    </ParamField>

    <ParamField path="After" type="string">
      A filter to target items created after the datetime (exclusive). Must be an ISO 8601 UTC datetime (YYYY-MM-DDTHH:MM:SS.sssZ).
    </ParamField>

    <ParamField path="Cursor" type="string">
      A cursor for pagination purposes. To get the next page of entries, you need to make a new request and fulfill this field with the cursor received in the previous request. This process should be repeated until all entries have been retrieved.
    </ParamField>

    <ParamField path="Limit" type="string">
      The maximum number of results to return. This can be between 1 to 250.
    </ParamField>
  </Tab>

  <Tab title="Get User Profile">
    <ParamField path="Username" type="string" required>
      The username of who you wish to message. This can be found in their profile URL after [https://www.linkedin.com/in/](https://www.linkedin.com/in/)
    </ParamField>

    <ParamField path="Notify" type="checkbox">
      Whether the profile visit should be notified to the viewee or not. Default is false.
    </ParamField>
  </Tab>

  <Tab title="Create A Post">
    <ParamField path="Caption" type="string">
      The caption to your post.
    </ParamField>

    <ParamField path="Attachments" type="string">
      The attachments to your post.
    </ParamField>
  </Tab>

  <Tab title="Send Comment">
    <ParamField path="Post ID" type="string" required>
      The ID of the post to comment on
    </ParamField>

    <ParamField path="Text" type="string" required>
      The caption for your comment.
    </ParamField>
  </Tab>

  <Tab title="Get InMail Balance">
    No parameters are available for this action.
  </Tab>

  <Tab title="Send Invitation">
    <ParamField path="Username" type="string" required>
      The username of who you wish to message. This can be found in their profile URL after [https://www.linkedin.com/in/](https://www.linkedin.com/in/)
    </ParamField>

    <ParamField path="Message" type="string" required>
      A message to go with the invitation. This is max. 200 characters for free accounts, and max. 300 characters for Premium accounts.
    </ParamField>

    <ParamField path="Conversation ID" type="string">
      The conversation you would like messages sent to.
    </ParamField>
  </Tab>

  <Tab title="Send Message In A Chat">
    <ParamField path="Chat ID" type="string" required>
      The ID of the chat.
    </ParamField>

    <ParamField path="Text" type="string" required>
      The message you wish to send.
    </ParamField>
  </Tab>

  <Tab title="Start New Chat">
    <ParamField path="Account Type" type="dropdown" required>
      Choose from Classic, Recruiter and Sales Navigator.
    </ParamField>

    <ParamField path="Username" type="string" required>
      The username of who you wish to message. This can be found in their profile URL after [https://www.linkedin.com/in/](https://www.linkedin.com/in/)
    </ParamField>

    <ParamField path="Title" type="string">
      Add a title to the message.
    </ParamField>

    <ParamField path="Text" type="string" required>
      The message you wish to send.
    </ParamField>
  </Tab>
</Tabs>

## Frequently asked questions (FAQs)

<AccordionGroup>
  <Accordion title="Why are LinkedIn Tools so expensive?">
    This Tool uses [Unipile](https://unipile.com/) to perform actions in LinkedIn. The credits charged are to cover the cost of this service through Unipile. We recommend upgrading to a subscription in order to use this Tool.
  </Accordion>
</AccordionGroup>
