linkai-agent

Call LinkAI applications and workflows from a bash script.

46.4k|10.3k|Updated Aug 7, 2022
One-click install
npx skills add https://github.com/zhayujie/chatgpt-on-wechat --skill linkai-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: linkai-agent
Source: https://github.com/zhayujie/chatgpt-on-wechat/tree/main/skills/linkai-agent
Command: npx skills add https://github.com/zhayujie/chatgpt-on-wechat --skill linkai-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires curl, and includes scripts (resource) components.

What problem does it solve?

This Skill enables calling LinkAI applications and workflows from a single shell script, simplifying cross-application orchestration and reducing manual setup.

Core Features & Use Cases

  • Dynamic App Loading: Automatically reads the apps/workflows from config.json at skill load, ensuring descriptions stay up-to-date.
  • Unified Invocation: Call any configured app/workflow with a consistent bash interface.
  • Model per Request: Override the model per request to suit task complexity and cost.
  • Knowledge Bases & Plugins: Leverage attached knowledge bases and plugins for richer responses.
  • Use Case: A developer wires a product FAQs bot by listing apps/workflows in config.json and calls them with the script to answer user questions.

Quick Start

  • Set up your API key: env_config(action="set", key="LINKAI_API_KEY", value="your-key")
  • Copy the config template: cp config.json.template config.json
  • Call a configured app: bash "<base_dir>/scripts/call.sh" "<app_code>" "<question>" "<model>" "false" "120"

Frequently Asked Questions about linkai-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I call LinkAI apps and workflows from a bash script?

You can call LinkAI apps and workflows from a bash script by using a standardized shell script that issues curl requests to the LinkAI API, simplifying cross-application orchestration and reducing manual setup.

How do I configure multiple LinkAI applications for automated shell workflows?

Configuring multiple LinkAI applications for automated shell workflows requires defining your apps in a config.json file, which the script dynamically loads at startup to ensure application descriptions stay up-to-date across different scenarios.

Can I override the AI model for individual LinkAI API requests in bash?

Yes, you can override the AI model for individual LinkAI API requests in bash by passing the desired model as an argument to the shell script, allowing you to suit task complexity and cost per request.

Do I need curl to automate LinkAI workflows from the command line?

Yes, you need curl installed to automate LinkAI workflows from the command line, as the standardized bash script relies on it to issue HTTP requests to the LinkAI API.

What environment setup is required before calling LinkAI applications from the shell?

Before calling LinkAI applications from the shell, you must set the LINKAI_API_KEY environment variable and copy the config.json template to configure your target apps and workflows.

Does the LinkAI shell script support knowledge bases and plugins for responses?

Yes, the LinkAI shell script supports knowledge bases and plugins, allowing you to leverage attached resources for richer responses when calling configured applications from your automated workflows.