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.
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.
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.
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.
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.
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.
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
Use native functions in a workflow function
List of native functions available as of Jan 19, 2024
Get current-time: This function enables GPT to retrieve the current time.
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)
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
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
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).
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.
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).
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.
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).
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.
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).
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'.
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:
{{ parameter }}
. Such as {{Keyword}} in the below example.These functions manage and orchestrate the flow of data and operations within an application.
$$Function: (x: X) => y: Y$$
, the output type of a Function follows the constraints set by its definition. This consistency is crucial for the integrity of the workflow.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.
asin
. When this function is called, the specific value (e.g. B0CQJZC5R1) provided for asin
is the argument.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.
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.
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.
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.
Developers create and maintain Functions. These functions, once supplemented with user-oriented descriptions and help information, are published as Applications for user consumption.
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.
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.
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.
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.
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.
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.