Solution Corner #38: Python & AI Jobs (Recording)

Since V26, Automic Automation has two new kinds of jobs that do not run a shell script: Python jobs and AI jobs. In this Solution Corner, you see both in the lab, with a pizza calculator, a talking cow as a requirement and the agents of your system lined up as a football team. You learn where pip installs the modules, why a virtual environment pays off and what temperature and MCP tools change in the answer of the AI. Finally, a Python job searches PEM for courses, and an AI job tells you where they help in practice.

Python Jobs and AI Jobs in Automic Automation V26

ℹ️ This Automic webinar is part of the Solution Corner recordings on PEM and was recorded on 27 November 2026. 📋 Content: 1 webinar recording (32 minutes) with 22 chapters, demo objects for your lab 🕒 Duration: Depending on your Automic experience and know-how, about 35 to 50 minutes. Automic Automation V26 gives designers two new job types. Python jobs run Python code directly on an OS agent, without a shell detour, and AI jobs send a prompt through Automation.AI to a language model, with MCP tools if you like. In this Solution Corner, Joel builds both types in the PEM lab, shows what sets them apart from an ordinary UNIX job (JOBS), with examples that make you smile, and combines them in a workflow (JOBP) at the end.

Python jobs: Python instead of shell

Before: Python in a UNIX job

A pizza calculator runs as a here-document with python3 in a UNIX job. Its values arrive by text substitution, and the post-process cuts the number of pizzas out of the report with the new regex functions. An apostrophe in the party name breaks the script, and the same gap opens the door to command injection.

The Python job

  • Three variants: Unix Python, Windows Python and Generic Python. A Generic Python job runs the same script on Windows and Unix agents.
  • Values in: Every object variable is a member of _automic_job, numbers arrive as numbers, and a script list from the pre-process arrives as a Python list. Special characters no longer break anything.
  • Values out: automic_register_variable returns values and lists (a list becomes an array on the task), automic_register_outputfile shows a file in the Directory tab.
  • The Python page: interpreter, options (for example unbuffered output for the report), working directory and requirements.

Modules, pip and virtual environments

  • Requirements and PIP report: A talking cow (the module cowsay) is a requirement. The agent installs it with pip before the code runs and logs it in the PIP report; the second run says "Requirement already satisfied".
  • Where the modules go: globally (only root), in the user scope of the login (the default, ~/.local) or in a virtual environment. Shared user modules grow and can fight over versions.
  • Virtual environment: A UNIX job creates it with python -m venv, the Python job uses its interpreter <venv>/bin/python, and the requirements are installed there.
  • Servers without internet: pip loads from the internet by default; companies point pip of the login user to an internal mirror.

AI jobs: a prompt as a job

  • AI connection (CONN): one model from Automation.AI, the MCP tools the jobs may use, and the advanced LLM settings temperature, max tokens and top-p. Low temperatures suit a business context.
  • AI job: no agent and no login; system prompt and user prompt, the answer in an object variable, three modes: standalone request, start of a conversation, continuation of a conversation.
  • MCP tools: The same question about the agents with and without the tool listAgents: once vague advice, once the real agents of the lab as a football team.
  • Conversations: A first AI job tells a joke about batch jobs, a second one explains it with the conversation ID of the first.

Both together: the PEM course adviser

A Python job searches the PEM content library for a topic, here GETVAR, and returns the top five courses. An AI job turns them into a case from practice where one of the courses helps, and a second Python job saves the recommendation as a file. Along the way, the Automation Assistant explains the Python script in the editor.

Who is this recording for?

For designers and developers who use Automic Automation V26 and want to bring Python code or AI into their automation. We assume the basics of jobs, workflows and variables, for example from the designer learning path on PEM.

Topics in this recording

  • Before: Python as a here-document in a UNIX job
  • Unix Python job with variables, lists and an output file
  • Requirements, PIP report and where pip installs the modules
  • Virtual environment for a Python job
  • pip with an internal repository
  • AI connection: model, MCP tools and LLM settings
  • AI job with and without an MCP tool
  • Conversations across several AI jobs
  • PEM course adviser: Python searches, AI advises
Do you want to rebuild the examples yourself? The demo objects are available as an export for your lab.

Learn Automic with PEM!

Would you like to learn more about Automic without having to travel across the country for workshops? At PEM, you decide when and how you want to continue your education! In interactive courses, tutorials and videos, you will learn everything you need to know about Automic – and more! And we are always there for you via comment function or email.

Does that sound interesting? Then get started today with PEM, Automic Training 2.0 and year-round Automic support!

More about PEM
Start now

FAQ about Automic Training on PEM

PEM is the most innovative and fastest growing Automic learning platform. It offers PEM members a comprehensive range of online training courses that can be accessed 24/7 and from anywhere. The platform includes dozens of videos and interactive courses and is aimed at beginners and professionals alike.