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.
What an automation is
Section titled “What an automation is”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.
What you can automate
Section titled “What you can automate”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.
Before you begin
Section titled “Before you begin”- 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.
Turn on a built-in automation
Section titled “Turn on a built-in automation”-
Click Automations in the sidebar.
-
Find the automation. Click a category tab, or enter its name in Search.
-
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.
-
In the setup panel, fill in the automation’s inputs. Use Additional instructions (optional) for anything to add to what the automation already does.
-
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.
Create a custom automation
Section titled “Create a custom automation”-
On the Automations page, click New custom automation.
-
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.
-
Enter a Name, up to 200 characters.
-
Write the Prompt: what the agent does on every run, up to 10,000 characters.
-
Set the Schedule and Notifications.
-
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 thelast release. Organize by Features, Improvements, and BugFixes. Write for end users.Review the docs/ directory for outdated content. Flag anyreferences to deprecated APIs or removed features. Createa summary of what needs updating.Check if the README reflects the current project structureand dependencies. Update any outdated installationinstructions or configuration examples.How a run builds on earlier runs
Section titled “How a run builds on earlier runs”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.
Set the schedule
Section titled “Set the schedule”Under Repeat every, enter a number and select a unit. For every unit except hours, select the hour under At.
| Repeat every | Options |
|---|---|
| Hours | Every 1 to 24 hours |
| Days | Every 1 to 30 days, at a whole hour |
| Weeks | Every 1 to 12 weeks, on one or more days under Repeat on, at a whole hour |
| Months | Every 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.
Choose where results go
Section titled “Choose where results go”The full result of every run is in its session. Under Notifications you can also ask for:
| Setting | What happens |
|---|---|
| Raise a pull request | Docs 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 notification | The 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.
Manage an automation
Section titled “Manage an automation”Click Edit on an automation’s card to open its panel, which has a Settings tab and a Runs tab.
| To | Do this |
|---|---|
| Run it now | On Runs, click Run now. The next scheduled run is then counted from this one. |
| Skip the next run | On 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 settings | On Settings, make your changes and click Save changes. They apply from the next run. |
| Turn it off | Turn 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 it | Custom 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.
Check it worked
Section titled “Check it worked”Open the automation’s Runs tab. Recent runs lists the five most recent runs, newest first, each with its start time and a status:
| Status | Meaning |
|---|---|
| Running | The run is in progress. |
| Succeeded | The run finished. |
| Failed | The run stopped with an error. |
| Skipped | The 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.
- Automation templates: every built-in automation and the inputs it needs.
- Keep your team informed: send a weekly work report and a release brief to Slack.
- Find a past session: find a run’s session later.
Built on Potluck Docs, our open source template.