Skip to content

Automations

Automations run Docs Agent or Marketing Agent tasks on a schedule you set, such as a weekly docs drift review, a monthly tutorial gap review or a weekly release marketing brief.

This video was recorded when automations were called Scheduled Agents, so some screens look different today.

An automation is a prompt that EkLine runs on a schedule. Each run starts a new session of the automation’s agent, titled with the automation’s name, and the agent works through the prompt with no one there to answer questions.

  • Built-in automations come from EkLine’s templates. Each has its own card on the Automations page.
  • Custom automations run a prompt you write. They are listed under the Custom tab.

Every automation runs as one agent, the Docs Agent or the Marketing Agent. Each built-in automation has its agent: Release Marketing Brief runs as the Marketing Agent, and every other built-in runs as the Docs Agent. For a custom automation, you choose the agent when you create it. The agent cannot be changed afterwards; to run the same prompt as the other agent, create a new automation.

If you don’t see Marketing Agent under Runs as, or the Marketing tab, contact support@ekline.io.

A run uses credits like any other session of its agent, and counts as that agent on the Usage page. When your organization is out of credits, the run is skipped. See Credits and usage.

The Automations page groups the built-in automations into six tabs: Accuracy, SEO and GEO, Content gaps, Knowledge base, Releases and reports, and Marketing. Automation templates lists every one, with what it does, its default schedule, and the inputs it asks for.

  • For a Docs Agent automation, at least one repository is selected under Where EkLine writes, so the agent has docs to work on and somewhere to open pull requests. See Connect GitHub or Connect GitLab.
  • To get results in Slack, Slack is connected in Settings > Integrations. See Slack.

Any member of your organization can create, change and delete automations.

  1. Click Automations in the sidebar.

  2. Find the automation. Click a category tab, or enter its name in Search.

  3. Turn on the toggle on its card to use the defaults, or click Set up to review the settings first.

    With the toggle, the automation turns on with its default schedule and settings, and a message shows when it first runs. If it still needs a value from you, such as your website URL or a Slack channel, its setup panel opens instead.

  4. In the setup panel, fill in the automation’s inputs. Use Additional instructions (optional) for anything to add to what the automation already does.

  5. Set the Schedule and Notifications, as described below, then click Turn on.

The first time you turn on an automation that posts to Slack, the panel asks which channel to use. EkLine remembers it and fills it in for your other automations.

  1. On the Automations page, click New custom automation.

  2. Under Runs as, select Docs Agent or Marketing Agent. The Docs Agent works in your documentation repositories and can open pull requests. The Marketing Agent drafts marketing content from your product, your docs and your company context.

  3. Enter a Name, up to 200 characters.

  4. Write the Prompt: what the agent does on every run, up to 10,000 characters.

  5. Set the Schedule and Notifications.

  6. Click Create automation.

Write the prompt so it stands on its own, because no one is there to answer the agent during a run. Name the repository or folder, the audience, the output you want, and how to group or sort it. To run a skill, start the prompt with its slash command, for example /ekline-docs-drift-review.

Generate release notes for all tickets completed since the
last release. Organize by Features, Improvements, and Bug
Fixes. Write for end users.

Before a run chooses what to work on, the agent opens the automation’s earlier runs, most recent first, to see what each was asked, what it answered, and the pull requests it opened. Then:

  • It skips work an earlier run already did or has open for review, names that run and its pull request, and picks something else.
  • It checks each of those pull requests on GitHub or GitLab rather than trusting the last state EkLine recorded. Work merged into a branch other than your default one, such as develop, still counts as done.
  • When everything it finds is already covered, it says so and finishes without opening a pull request.

Each run ends its reply with a record for the next run:

  • the scope it looked at
  • what it produced, with the pull request number and title, or why it produced nothing
  • what it left out, and why
  • what the next run should start from and check again

A run finds earlier runs by the automation’s name. After you rename an automation, its runs from before the rename are not found.

When you write in a run’s session yourself, the agent does what you ask, even if an earlier run covered the same work. It first tells you what that work was and where it landed.

Under Repeat every, enter a number and select a unit. For every unit except hours, select the hour under At.

Repeat everyOptions
HoursEvery 1 to 24 hours
DaysEvery 1 to 30 days, at a whole hour
WeeksEvery 1 to 12 weeks, on one or more days under Repeat on, at a whole hour
MonthsEvery 1 to 12 months, on a day from 1 to 28 under Repeat on, at a whole hour

Times use the time zone of the browser you set the automation up in, and the Schedule section names it. Next run shows when the automation runs next.

An interval such as every 2 weeks counts from the day you set the automation up. The run time stays the same on your clock through daylight saving changes.

The full result of every run is in its session. Under Notifications you can also ask for:

SettingWhat happens
Raise a pull requestDocs Agent automations only. The agent opens a pull request with its changes when it is done. A run that finds its work already covered by earlier runs opens none. A Marketing Agent automation saves its drafts in its session instead.
Send a Slack notificationThe agent posts a summary to the channel you name.

If a pull request or a post does not appear, open the run’s session to see what happened. If Slack is not connected, the agent skips the post and says so in the session.

EkLine sends no message of its own when a run starts, succeeds, fails or is skipped, and sends no email. To report EkLine’s work to your team on a schedule, see Keep your team informed.

Click Edit on an automation’s card to open its panel, which has a Settings tab and a Runs tab.

ToDo this
Run it nowOn Runs, click Run now. The next scheduled run is then counted from this one.
Skip the next runOn Runs, click Skip next run. The run after it happens as scheduled. Click it again before the skipped time passes to skip the following run too.
Change its settingsOn Settings, make your changes and click Save changes. They apply from the next run.
Turn it offTurn off the toggle on its card. It keeps its settings and does not run until you turn it back on. There is no separate pause control.
Delete itCustom automations only. On Settings, click Delete, then confirm. This cannot be undone. Sessions from earlier runs stay in your sessions list.

Built-in automations cannot be deleted. Turn one off with its toggle instead.

Open the automation’s Runs tab. Recent runs lists the five most recent runs, newest first, each with its start time and a status:

StatusMeaning
RunningThe run is in progress.
SucceededThe run finished.
FailedThe run stopped with an error.
SkippedThe run did not start a session. The Runs tab says why under the run’s start time: your organization was out of credits, or the Marketing Agent is not enabled for your organization.

Click a run’s start time to open its session and see what the agent did, including any pull request it opened. The card on the Automations page also shows the latest run’s status.

Built on Potluck Docs, our open source template.