Skip to main content

Extra information

System documentation: Writer AI Studio API Reference

Setting up HTTP Client Writer AI Studio

Steps
  1. In Alumio Dashboard, go to Connections → HTTPS (API). Create a new HTTP Client and select Writer AI Studio HTTP Client as the prototype of the HTTP Client. Writer connector screenshot 1
  2. Fill in the Base URI and API Key. Writer connector screenshot 2

Subscribing to Entities from Writer AI Studio

Steps
  1. Go to Integrations → Incoming and create a new Incoming configuration and select Writer AI Studio Subscriber as the subscriber.
  2. Select the entity you want to subscribe to from Writer AI Studio.
  3. Add any request parameters needed to subscribe to the entity (optional).
  4. You can optionally add a transformer to transform the request parameters into something you need.
  5. Select the Writer AI Studio HTTP Client to use.
General Concept We follow the Writer AI Studio documentation on building this connector so you can easily use the connector based on the Writer AI Studio API Reference. Entity It’s the entity you want to subscribe to from Writer AI Studio. Please refer to the entities in the Management APIs from the Writer AI Studio API Reference page. Request Parameters These are the parameters you can provide to get the needed entity based on the Writer AI Studio API Reference. Please look at the example below on how to fill the Request Parameters field when subscribing Single Request entity. Writer connector screenshot 3
  • Path is the path parameter of the URL. For example, the {id}.
  • Query is a defined set of parameters attached to the end of a URL.
    Example: www.url.com?type=true&start=0
Writer connector screenshot 4 That’s why we need to define application_id property inside path property in the Request Parameters field. The properties inside query parameters will be parsed as query parameters. Here is the final URL that will be called when using such Request Parameters field on the dataset entity. https://api.writer.com/v1/applications/1234 Input Transformer Any transformer set here will be executed after the Request Parameters are loaded. So, you basically can add any transformer to provide and transform the request parameters into anything you need, either as path parameters and/or as query parameters of an entity. HTTP Client It’s the HTTP Client configuration or prototype you will use to access Writer AI Studio.

Publishing Entity to Writer AI Studio

Steps
  1. Go to Integrations → Outgoing, create a new Outgoing configuration, and select Writer AI StudioPublisher as the publisher.
  2. Select the method that you want the publisher to use with the data.
  3. Select the Writer AI Studio entity you want the data to be published to.
  4. Select the HTTP Client to use. Writer connector screenshot 5
General Concept Like the subscriber, the publisher has similar methods on how to use it. The difference is the payload that will be submitted by the publisher originating from the data (from routes, from transformers in the Outgoing configuration). Method Currently, we support Post (HTTP POST method), Put (HTTP PUT method), and Delete (HTTP DELETE method). Entity We support publishing to most Writer AI Studio endpoints. Please refer to the entities in the Management APIs from the Writer AI Studio API Reference page. Based on the documentation, some endpoints may need one or more path parameters. For endpoints that require an object as the request payload, please look at the example below. For example, we want to create a new Graph. Please select “Post” as the action and “Knowledge Graph API - Create Graph” as the entity of the publisher. Writer connector screenshot 6 Writer connector screenshot 7 You can put the payload you want to send to Writer AI Studio into the payload property in the data (go to Advanced). Writer connector screenshot 8
  • Path is the path parameter of the URL. For example, the {id}.
  • Query is a defined set of parameters attached to the end of a URL.
    Example: www.url.com?type=true&start=0
  • Payload is the data contained within a request.
Alumio will send an API request to Writer AI Studio with URL /v1/graphs HTTP Client It’s the HTTP Client configuration or prototype you will use to access Writer AI Studio.