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.

Author
Alex Barlow
Published

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.

  1. Open an Instagram DM with the user I give you
  2. Type my message, keeping its line breaks
  3. Send it only once the whole message is in
Click to launch the Chrome extension. Not installed? You can create an account and try it free.Opens the Chrome extension. Free account to try.

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 page
    • URL: the Instagram profile of the user you name
  • 2.0 Click element
    • Select: the profile's Message button
  • 3.0 Wait
    • Wait time: a few seconds, for the DM box to open
  • 4.0 Enter text
    • Select: the DM box
    • Text: your message with each line break typed as the recorded keys
    • Custom 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