How do I let an AI agent send LinkedIn messages and connection requests safely?
Short answer. Use AgentWeb's LinkedIn map on the user's own account, and keep a person in the loop. The agent finds the right people (
list_people_at_company), reads each profile (get_profile), drafts the message, gets approval, then sends withstart_conversation(1st-degree),send_inmail(outside the network) orsend_connection_request. Actions run within LinkedIn's own limits, like the weekly invite quota and InMail credits.
Steps
- Connect your agent to AgentWeb and connect the user's LinkedIn once through the hosted login (
agentweb_start_connection). - Call
get_meto get the user's ownmailbox_urn, which the messaging actions need. - Find people with
search_companies, thenlist_people_at_companyorsearch_people_at_company. Each row has the connectiondegree. - Read each person with
get_profileandget_profile_experience. - Check for an existing thread with
search_conversations. If there is one, reply withsend_message. - Draft the message and show the user the exact text and recipient. Wait for a yes.
- Send:
start_conversationfor 1st-degree connections,send_inmailfor others (checkverify_open_profileandget_inmail_creditsfirst), orsend_connection_request. - Watch replies with
list_conversationsandget_conversation_messages.
Stay inside LinkedIn's limits
- Connection requests count against the weekly invite quota. Agree a weekly number with the user that stays well inside it.
- LinkedIn allows one unanswered InMail per recipient. A second fails with HTTP 422, and nothing is sent or charged.
- Send one at a time, paced like a person. Don't run bulk blasts.
Frequently asked questions
Can I add a note to the connection request?
Not yet. As of Oct 20, 2026, send_connection_request takes only the profile URN. Connect first, then message once they accept.
Can the agent accept invitations?
Yes, with list_invitations, then approve_invitation or reject_invitation.
Related
- Send LinkedIn connection requests with an AI agent
- Send LinkedIn InMail with an AI agent
- How to let an AI agent look up a LinkedIn profile before it reaches out
More: Sites AgentWeb can act on · All guides · Glossary · Install AgentWeb