Create Content

What's Imagga: Imagga is a web service that automates the process of analyzing, organizing, and searching through large collections of images.

About ‘Create Content' action: This action lets you upload an image stored on Built.io Flow engine local storage, onto your Imagga account. In order to do this, you need to use another action that lets you download a file from online storage system to Built.io Flow engine local storage.  

We will learn more about it in the example given below. 

1. To upload an image file to your 'Imagga' account, first add 'Google Drive_Download File', 'Imagga_Create Content', and 'Logger' actions to your canvas and connect them as shown below.

create-content-flow

2. Configure the 'Google Drive_Download File' action as explained here.

download-file

Once you have entered the details, click on 'Done'. This will take you back to canvas.

3. Next, configure the 'Imagga_Create Content' action as shown below.

Connect to Imagga: Select the appropriate connection for Imagga from the drop-down list. If you haven’t created a connection yet, select ‘Add New’ to create one. 

Field data

File Path (Mandatory): Add the 'filepath' key given under the output parameters of 'Download File' action on the right hand side of the configuration window, as an input for this field. 

create-content

Once you have entered all the details, click on 'Done' and 'Run' the workflow. This will upload the specified image file to your Imagga account. It is important to note that you can't see the uploaded image or its details in your Imagga account. In order to retrieve the image details, such as image ID or image status, you need to use another action that returns the output parameters. In this example, we will use 'Logger' action.

4. Configure the 'Logger' action as shown below.

Field data

Log 1 (Mandatory): Add the 'status' key given under the output parameters of 'Create Content' action on the right hand side of the configuration window, as an input for this field.

Click on the '+ADD link' to add another input log.

Log 2 (Mandatory): Add the 'uploaded' key given under the output parameters of 'Create Content' action on the right hand side of the configuration window, as an input for this field.

Once you have entered all the details, click on 'Done' and 'Run' the workflow. This will upload the specified file to your Imagga account and will return the details for that image through 'Logger' action.

create-content

Refer to Imagga API documentation for more information: http://docs.imagga.com/#content


Output:
  • output-arrow imagga Create Content
    • left-triangle status string
    • left-triangle uploaded array
      • left-triangle id string
      • left-triangle filename string