Create Workflow Via Email?

I’m wondering if it is possible to create/launch a workflow based on a standardized email message.

The trigger would be a new email directed to Goobi that contains data in a defined manner.

The resulting action would be for Goobi to create a new workflow and parse data from the email and auto-populate into the Goobi workflow.

Is something like this possible in Goobi?

Kevin Glick
Yale University

2 Likes

Hi Kevin, welcome to the Goobi community!

As of now, Goobi is not able to create a worklfow based on an email message. What would be possible though, is to write a small wrapper script, that parses the incoming email and then calls the Goobi API to create a process.
The API endpoint to do this already exists. The script would need to read the email from stdin, parse the email and the standardised text and then call the Goobi API. You could then configure postfix to forward all emails for a specific address to your script.

The Goobi API endpoint has the following address:

https://mygoobi.tld/goobi/api/processes

You have to call it with a POST request and the body should look like this:

{
  "identifier": "string",
  "processtitle": "string",
  "logicalDSType": "string",
  "templateId": 0,
  "templateName": "string",
  "opacConfig": {
    "opacName": "string",
    "searchField": "string"
  },
  "metadata": {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
  },
  "properties": {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
  }
}

We can implement this for you, or you can write the script yourself and try it out with GoobiToGo: https://g2g.goobi.io/

Best wishes,

Oliver

1 Like