One of the main features of ABI is the ability to deploy an Agentic Based API.
The API deployment is automated through GitHub Actions. Every time you push to the main branch with last commit message as feat:
or fix:
, the API will be deployed as follow:
- A new container is built (via the "Build ABI Container" workflow)
- The deployment workflow creates/updates a NAAS space with the latest container image
- The API will be accessible through the NAAS platform once deployment is complete as the following URL:
https://<github_project_repository.name>-api.default.space.naas.ai/
-
Create a GitHub Classic Personal Access Token:
- Go to GitHub Settings > Developer Settings > Personal Access Tokens > Tokens (classic)
- Generate a new token with the following permissions:
repo
(Full control of private repositories)read:packages
andwrite:packages
(For container registry access)
- Copy the token value
-
Get required API keys:
- OpenAI API key from OpenAI Platform
- NAAS Credentials JWT Token from your NAAS account
-
Navigate to your repository's Settings > Secrets and variables > Actions and add the following secrets:
ACCESS_TOKEN
: Your GitHub Classic Personal Access TokenOPENAI_API_KEY
: Your OpenAI API keyNAAS_CREDENTIALS_JWT_TOKEN
: Your NAAS Credentials JWT TokenABI_API_KEY
: Your key to access the API
- Go to your repository's Actions tab
- Look for the "ABI API" workflow
- Check the latest workflow run for deployment status and logs