# LinkedIn messaging

Send messages, connection requests, and look up profiles, all through Cody.

### Before you start

* Install the CodeWords Chrome Extension: [Chrome Web Store link](https://chromewebstore.google.com/detail/codewords/fgcbeegcaikofigbnfmmlgcimdkmfnce)
* Log into LinkedIn in your browser (the same browser with the extension)
* Visit [codewords.agemo.ai](https://codewords.agemo.ai/) once to activate the extension

### Step 1: Connect your LinkedIn

Ask Cody to connect your LinkedIn account.

Say this to Cody:

> "Connect my LinkedIn account for LinkedIn Messaging"

Cody will automatically:

* Read your LinkedIn session from your browser (via the Chrome extension)
* Connect it securely to the messaging service
* Save your connection for future use

You only need to do this once. If your LinkedIn session expires (for example, after logging out or changing your password), Cody asks you to reconnect.

{% hint style="info" %}
If Cody says "li\_at cookie not found", you are not logged into LinkedIn in your browser. Log in at [linkedin.com](https://www.linkedin.com/) and try again.
{% endhint %}

### Step 2: Use LinkedIn features

Once connected, tell Cody what you want to do:

* **Send a message**: Message anyone you are connected with on LinkedIn
* **Send a connection request**: Connect with someone by pasting their LinkedIn URL
* **Look up a profile**: Get a person's full LinkedIn profile (job, education, skills, and more)
* **Find a contact**: Search your LinkedIn conversations by name
* **List conversations**: See your recent LinkedIn chats
* **Read messages**: View message history from any conversation

### Examples: what to say to Cody

#### Send a message

> Send a LinkedIn message to Osman Ramadan saying "Hey, are you free for a call tomorrow?"

Cody finds the contact in your conversations and sends the message. You get a confirmation with the message ID.

#### Send a connection request

> Send a connection request to <https://www.linkedin.com/in/handotdev/> with the note "Hi, love your work on Mintlify!"

Cody extracts the profile, resolves their LinkedIn ID, and sends the invite with your custom note.

#### Look up a profile

> "Look up the LinkedIn profile for satyanadella"

> "Get the full LinkedIn profile for <https://www.linkedin.com/in/handotdev/>"

Returns details like name, headline, location, education, work experience, skills, follower count, and more.

#### Find a contact

> "Find Osman Ramadan in my LinkedIn contacts"

Searches your LinkedIn conversations by name and returns matching contacts with their details.

#### Read messages

> "Show me my last 10 messages with Osman"

> "List my recent LinkedIn conversations"

Pulls your conversation history directly from LinkedIn.

### Rate Limits

LinkedIn has rate limits. Do not send more than about 16 connection requests per day or about 120 messages per day through the service. This leaves room for your normal LinkedIn activity.

### Quick tips

* Your browser must stay logged into LinkedIn. If you log out, the connection may expire.
* Connection requests need a full LinkedIn URL, such as <mark style="color:blue;"><https://www.linkedin.com/in/someone/>.</mark>
* Messages go to existing connections. You can only message people you are connected with (unless you use InMail with a qualifying Premium plan).
* Check account health anytime by asking Cody: Is my LinkedIn still connected?
* Disconnect when done by asking Cody: Disconnect my LinkedIn


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.codewords.ai/automations/linkedin/linkedin-messaging.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
