Skip to content

Tutorials and examples

Use these end-to-end scenarios and examples to build your own IBM i APIs and AI integrations. They are grouped by the product that they use.

InfoConnect Hub: APIs

Scenario What you learn
Getting started with the web UI Create a connection, surface an SQL query as a REST API, and test it.
Program Call Surface an existing IBM i program as a REST API.
Data API and Data API configuration Build APIs from SQL statements and stored procedures, including variables.
API parameters and validation Map request values to program parameters and validate requests.
Executing APIs Test each API type from the web interface.
API reference Call the Admin API and the Functional API. The Postman collection has ready-made requests.

InfoConnect Hub: AI and MCP

Scenario What you learn
Cursor and MCP installation steps Connect an AI agent in Cursor to the MCP server and add the example system prompt.
MCP Explorer Browse, inspect, and invoke the generated MCP tools in the web interface.
Slack integration through n8n Ask questions about IBM i data in Slack through an n8n workflow.
Extending the AI agent with RAG Add a retrieval-augmented generation subsystem to the agent.

InfoConnect Hub: screen automation

Scenario What you learn
RPA Hub quick start Create a connection and an RPA Call for a green-screen application.
Key string commands and Macros Navigate screens, enter data, and read values from the screen.
Executing RPA Calls Call an RPA Call as an API and read the JSON response.

InfoConnect for MuleSoft

Scenario What you learn
Configuring the Program Call and Service Program procedure call Call an IBM i program from a Mule flow.
Configuring the Command Call Run an IBM i command from a Mule flow.
Configuring the Data Queue Writer Send a message to an IBM i data queue.

InfoConnect for Kafka

Scenario What you learn
Program Call sink connector Run an IBM i program for each message in a Kafka topic.
Calling programs and service programs Configure the program parameters of the sink connector.

webTF: calls from IBM i to external APIs

Scenario What you learn
Using webTF in a program Call an external API from an IBM i program with the CRTTRN and PRCTRN programs.