Introduction

Overview of Kua.ai

Welcome to Kua.ai, an innovative content creation tool tailored for the e-commerce sector. This platform is designed for a diverse array of users, including online store owners on Shopify and WooCommerce, sellers on Amazon, e-commerce departments in consumer brands, and content creators or bloggers on WordPress.

Kua.ai stands out as a tool that simplifies the process of generating factual, on-brand, and SEO-optimized content, thereby streamlining content production for platforms like Shopify, WordPress, and Amazon. It reduces manual effort and facilitates content automation, making it a vital asset for enhancing your e-commerce presence.

Target Readers of this Doc

Purpose of the User Manual

This manual is designed to provide comprehensive guidance on utilizing Kua.ai, catering to both AI application developers and general users. Whether your goal is to develop advanced AI applications or simply use existing applications for specific e-commerce functions, this manual will guide you through every step, offering valuable insights to maximize your experience on the Kua.ai platform.

Application vs AI Chats

Kua.ai provides two primary content creation interfaces: Chat and Applications. Chat is an AI-powered interface that interacts with users to answer questions and generate content as per the users' requests, making it an accessible and interactive option for single-user content creation.

Untitled

On the other hand, Applications is built for more extensive tasks, offering a more standard and automated way to complete tasks. From business perspective, it pre packages the best practices for completing certain tasks so the results are more reliable. For example, when tasked with creating an Amazon Listing, the application mandates the inclusion of keywords and stipulates that the title and key features comply with specific rules regarding length, formatting, and structure. This ensures that the Amazon Listing generated by the application better meets the success criteria. From a technological perspective, it features an innovative technique known as prompt engineering and chaining for generating complex content.

Untitled

In essence, while the Chat interface caters to the needs of individual users with its user-friendly and interactive design, Applications is better suited for organizational needs, facilitating the creation of substantial content and task automation. Both interfaces are crafted to be efficient and accurate, serving a wide range of content generation needs.

Understanding Kua.ai for AI Application Developers

Kua.ai is a platform that empowers developers to create AI Native Applications tailored for various e-commerce scenarios. Here, we introduce the fundamental concepts and mechanisms that form the backbone of application development on Kua.ai.

Core Concepts

Function Types

Native Functions

These are pre-built functions provided by Kua.ai, offering standard AI capabilities.

How to access the native functions in Kua.ai

You can have access to the native functions in two ways: use them in a semantic function or in a workflow function.

Use native functions in a semantic function

Untitled

Untitled

Untitled

Use native functions in a workflow function

Untitled

Untitled

Untitled

Untitled

List of native functions available as of Jan 19, 2024

  1. Get current-time: This function enables GPT to retrieve the current time.

  2. google-search: Provides GPT the capability to perform a Google search based on a user's query.

    a. Input: a search query or a keyword b. Output: the top 10 google search results (titles, snippets or URLs)

  3. google-search-related-searches: This function enables GPT to retrieve Google's related search queries.

    a. Input: a search query or a keyword b. Output: the related search terms

  4. google-search-also-ask: Designed to allow GPT to access the "People Also Ask" section in Google search results.

    a. Input: a search query or a keyword b. Output: what people ask for the search term

  5. keywords search volume trend: It allows GPT to obtain search volume trends for specified keywords, taking into account various parameters like country and data source.

    a. Input: i. a list of search queries or keywords. IMPORTANT NOTE about the input format: 1. You should use commas to separate each query, following the format "query 1, query 2, query..." 2. If the function utilizes the output of a preceding function as input, it is advisable to specify the format of the previous function accordingly(see below example).

    Untitled

    ii. The country or market where the data is relevant, e.g. Global, United States, Canada, etc. iii. Data source, you can either enter "gkp" (google keyword planner) or "cli" (gkp + clickstream data) iv. Currency: the currency for the CPC. You can enter "usd" for US dollars.

    b. Output: search volume for the list of queries in the past 12 months, and the data source is Google.

    Untitled

  6. keywords search volume: This function helps GPT to determine the search volume, CPC, and competition level for specified keywords. a. Input: i. a list of search queries or keywords. IMPORTANT NOTE about the input format: 1. You should use commas to separate each query, following the format "query 1, query 2, query..." 2. If the function utilizes the output of a preceding function as input, it is advisable to specify the format of the previous function accordingly(see below example).

    Untitled

    ii. The country or market where the data is relevant, e.g. Global, United States, Canada, etc. iii. Data source, you can either enter "gkp" (google keyword planner) or "cli" (gkp + clickstream data) iv. Currency: the currency for the CPC. You can enter "usd" for US dollars.

    b. Output: search volume, CPC (cost per click) and competition for the list of queries.

    Untitled

  7. keywords search volume only: Similar to the above, but focused solely on providing the search volume of keywords. a. Input: i. a list of search queries or keywords. IMPORTANT NOTE about the input format: 1. You should use commas to separate each query, following the format "query 1, query 2, query..." 2. If the function utilizes the output of a preceding function as input, it is advisable to specify the format of the previous function accordingly(see below example).

Untitled

ii. The country or market where the data is relevant, e.g. Global, United States, Canada, etc. iii. Data source, you can either enter "gkp" (google keyword planner) or "cli" (gkp + clickstream data) iv. Currency: the currency for the CPC. You can enter "usd" for US dollars. b. Output: search volumes for the list of queries.

Untitled

  1. Amazon product information Tool: Designed to enable GPT to fetch basic information about products on Amazon using their ASINs. a. Inputs: 1. the Amazon ASIN 2. The marketplace where the ASIN is active on, e.g. amazon.com, amazon.de, amazon.ca, amazon.es, amazon.fr, etc. b. Output: detailed data related to that ASIN, title, key features, product description, A+ content, specs, review rating, number of reviews, image/ video URL, etc.
  2. amazon-product-search: Allows GPT to search for Amazon products using specific search terms and parameters. a. Inputs: 1. the Amazon ASIN 2. The marketplace where the ASIN is active on, e.g. amazon.com, amazon.de, amazon.ca, amazon.es, amazon.fr, etc. 3. sort_by: the ranking order of search results. valid values are: featured; most_recent; price_low_to_high; price_high_to_low; aeverage_review. 4. exclude_sponsored: whether to exclude sponsored ASIN/listing. The default is "no". 5. Limit: Number of search results (ASINs) returned b. Output: top N listings/ ASINs as the search results, together with their titles, URLs, etc.
  3. ABA Keyword Ranking: This function helps in obtaining popularity (search frequency rank) information based on ABA (Amazon Brand Analytics) data. Currently, this data is only available for amazon.com. a. Input i. Keywords: a list of search queries or keywords. IMPORTANT NOTE about the input format: 1. You should use commas to separate each query, following the format "query 1, query 2, query..." 2. If the function utilizes the output of a preceding function as input, it is advisable to specify the format of the previous function accordingly(see below example).

Untitled

ii. Format: format of the output - it can either be jason or markdown. b. Output: Search Frequency Rank for the list of keywords/ search queries in two period - last week, and the week before last week. 11. ABA Ranking Change. This function helps in obtaining popularity (search frequency rank) change information based on ABA (Amazon Brand Analytics) data. A sudden rise in popularity also means sales opportunities. Currently, this data is only available for amazon.com. a. Input i. Keywords: a list of search queries or keywords. IMPORTANT NOTE about the input format: 1. You should use commas to separate each query, following the format "query 1, query 2, query..." 2. If the function utilizes the output of a preceding function as input, it is advisable to specify the format of the previous function accordingly(see below example).

Untitled

ii. Format: format of the output - it can either be jason or markdown. b. Output: Search Frequency Rank change for the list of keywords/search queries is defined as the rank from the last week compared to the rank from 2 weeks earlier. A negative number indicates a 'drop' in rank, while a positive number indicates a 'rise'.

Untitled

Semantic Functions

Semantic functions are user-defined and are tailored to specific use cases, allowing for greater flexibility and customization.They are a pivotal aspect of AI application development in Kua.ai, offering a high degree of customization and precision. Here’s an overview of their key components:

Untitled

Untitled

Untitled

Workflow Functions

These functions manage and orchestrate the flow of data and operations within an application.

Function Inputs

In addition to the core concepts of applications, functions, and workflows, it is crucial for AI application developers to understand the concepts of Function Parameters and Arguments within Kua.ai.

Function Parameters

Function Arguments

Input of Promt Application

When building applications in prompt mode (specifically, applications of the semantic function type), you can define the input for an application by using {{Parameter}}, where 'Parameter' represents the name of your parameter. For instance, in the example provided, the parameters are 'Title' and 'Key Feature'. Thus a general user needs to fill out these outputs in order to run the application.

Untitled

Input of a Workflow Application

When building a Workflow Application, it is essential to specify the input required for the application. This process resembles that of a prompt application. You should enter the names of your parameters and provide a description in the name section. This description will offer general users hints on how to input the necessary information.

Untitled

Input of a step in a workflow

Additionally, when constructing a workflow application, it's necessary to define the input for each step. You have the option to use text as inputs, or you can enter '#' to view the available arguments. These arguments could be an input from the workflow, information stored in your infobase, or outputs from previous steps within the same workflow application.

Untitled

Function Outputs

Function Output Types and Document Generation

Kua.ai enables developers to create functions that output specific types of documents, such as Amazon Listings, Blogs, Tweets, etc. This means a function is designed to produce a particular type of document, integral to various workflows.

For example, consider a Twitter document structure - a function whose output type is Twitter, like generateTwitter(topic: String): Twitter. Such a function is specialized for generating Twitter-type documents and can be integrated into Twitter operation workflows, allowing users to generate Twitter posts automatically.

Relationship Between Functions and Applications

Developers create and maintain Functions. These functions, once supplemented with user-oriented descriptions and help information, are published as Applications for user consumption.

Output Options

At the end of a workflow application, AI application developers must define the outputs that the application should generate, ensuring they are meaningful to the user. There are two types of output formats to choose from when configuring a workflow application: Action List or Template.

Untitled

Untitled

Action List Output

If you choose this option, you will need to specify which steps' outputs will be used in the final output. You can view all the outputs from the workflow steps and select one or multiple of these for the final output.

Untitled

Template Output

In the template option, you can structure the output in the form of a report. Additionally, you can utilize Markdown to customize the output, making it more readable and easier to understand.

Untitled

Another benefit of the template option in the output is that it allows you to embed one workflow application with the template output into another. For example, consider the 'Blog Post Workflow_V2', a workflow application that generates a blog. I can build an additional workflow application on top of it and include other steps. In this case, these steps involve revising the blogs by incorporating case studies.

Untitled

Step by Step Mode

In both of the above output options, AI application developers have the option to allow or restrict general users from viewing the detailed steps of a workflow application by toggling the button below on or off.

Untitled

Generation (History) of Content

Each content generation by an Application is a 'Generation,' containing inputs and outputs. Generations are categorized by applications and can be associated with specific documents.