Add line breaks to Instagram DMs in an automation
How to add line breaks to Instagram DMs in an automation: install the Chrome extension, click Build with Browser agent, tell the agent what you want, and follow its prompts. A working bot is built and tested in minutes.
Here is how the automation works. To add line breaks to Instagram DMs in an automation, record a custom line break such as Shift + Return in the Custom line break setting of the Enter text step that types the message, then use that key combination for each line break in Text. Pressing Return in a DM sends the message, so the custom line break stands in for it.
Build the Instagram DM from a description
Describe it and click the button: the agent builds and tests the DM in your Chrome extension. Instagram has to be logged in in Chrome.
- Open an Instagram DM with the user I give you
- Type my message, keeping its line breaks
- Send it only once the whole message is in
Have the message ready as a single paragraph, with no line breaks typed with Return: each break is added with the recorded key combination instead. Sending on Return is the default behaviour of browsers and web forms, not an issue with axiom.ai, and the same setting works on any site where Return submits the text. To send DMs to a whole list, see send Instagram DMs from a Google Sheet.
Build the Instagram DM step by step
The steps the agent builds, as the Builder shows them: each step by its name, with the fields to set under it. Add them yourself in this order in the step-by-step builder, or open the agent's result there to adjust it.
- 1.0
Go to pageURL: the Instagram profile of the user you name
- 2.0
Click elementSelect: the profile's Message button
- 3.0
WaitWait time: a few seconds, for the DM box to open
- 4.0
Enter textSelect: the DM boxText: your message with each line break typed as the recorded keysCustom line break: Shift + Return
- 5.0
Press key(s)Key: Return
Common questions about line breaks in Instagram DMs
Why does pressing Return send my Instagram DM instead of adding a line break?
Return submits the text in browsers and web forms by default. Record a custom line break in the Enter text step and the automation uses that key combination for each line break instead.
Why is my Instagram DM sent before the message is finished?
Text still holds a line break typed with Return. Remove it and use the recorded key combination instead. When a run fails, hand it to the agent and it repairs the step.
How do I record the custom line break in Enter text?
Open the Enter text step that types the message, click the Custom line break setting at the bottom of the step, click Record and press the keys to use instead of Return, for example Shift + Return. Then, in Text, place the cursor where you want a line break and press that combination.
Can I use custom line breaks on sites other than Instagram?
Yes. The same setting works in any automation that enters text into a field where Return submits it.
Can I add line breaks to Instagram DMs sent from a Google Sheet?
Yes. Build the list version with send Instagram DMs from a Google Sheet or DM Instagram users and like their newest post, and add the custom line break to the Enter text step in either.
Where do I get help?
Get in touch with support, or ask in the axiom.ai community.
Related guides
Mail merge in Gmail from a Google Sheet
- Read the rows from my Mail merge sheet
- Open a new email in Gmail for each row
- Fill in the address, subject and body
- Send it and delete the row
Send Instagram DMs from a Google Sheet
- Read the profile links and messages from my sheet
- Skip any rows already marked Sent
- Open each profile link
- Check the profile header for the word Message
- If it is there, click Message and send the message
- Write Sent back into the row, in column C
Send X (Twitter) DMs from a Google Sheet
- Open each X profile link in my sheet
- If the profile has a Message button, click it
- Type my message and send it
- Delete the profile from the sheet once done