Communication workflowAdvanced workflows with valid tokens
Agent Checkout
Agent Checkout
Figure 5 shows the workflow of an AI agent browsing content, receiving product description, price and inventory, and eventually going through the checkout process:
- The Buyer Agent calls the Skyfire API (https://api.skyfire.xyz/api/v1/tokens) to generate a
kyatoken. - If the API key is valid, the Skyfire agent identity provider generates a token according to the criteria defined in the request.
- When making a request to a product page, the agent includes the
kyatoken into the request. - The bot or fraud detection engine protecting the website validates the token, extracts the agent and platform identity claims, classifies the traffic and allows it to proceed to the protected web resource. The identity claims may be passed to the web server.
- The web server may use the identity information for session tracking purposes and return the content.
- The user the agent represents confirms their intent to purchase the product. The agent calls the Skyfire API once more to generate a
kya+paytoken. The API request this time includes the user’s shipping address and credit card information - If the API key is valid, the Skyfire agent identity provider generates a token according to the criteria defined in the request. The user, platform, and agent identity as well as payment credentials with a tokenized credit card are included in the
kya+paytoken. - The agent user the
kya+paytoken to checkout the product - The bot or fraud detection engine protecting the website validates the token, extracts the agent and platform identity claims, classifies the traffic and allows it to proceed to the protected web resource. The identity and payment claims are passed to the web server.
- The web server uses the claims from the
kya+paytoken to complete the transaction.
Fig. 5: Product browsing ad checkout workflow