I have built a simple workflow which can do automated outreach to people who visited your profile page on LinkedIn.
The template is checking if this visitor is a 1st or 2nd degree connection and it will send a direct message or an invite.
Also do take a look at the SourceGeek node which does have 20+ actions you can do on the LinkedIn platform: SourceGeek for LinkedIn integrations | Workflow automation with n8n