Skip to main content

Enhance your creative authoring flow, leave the plumbing to AuthorAI

Project description

AuthorAI

Enhance your creative authoring flow, leave the plumbing to AuthorAI

Note: This is a community maintained library.

At AuthorAI we want to reimagine the authoring experience powered by AI. We want to explore how state of the art in AI can enhance the creative authoring flow as it applies to creating apps, books, blogs, sites, data, designs, reports, etc. We are happy to launch AuthorAI Blogger as first in series of such APIs.

AuthorAI Blogger: Writing a blog post usually involves several round-trips to Google Search, reading related content, iterating on original content for the blog, then posting it for readers to enjoy. Our objective is to augment these activities with AI so that the blog author can save time authoring posts, enable more creative focus for the author instead of undifferentiated heavylifting, increase flow for the author leading to publishing more posts as a result, and ultimately leading to more eyeballs and monetization benefits.

That is why we created AuthorAI Blogger which can be used for human and AI in partnership for low-code blog authoring automation. We are sharing a notebook tutorial so that you can join the exploration. The tutorial walks through basics of AuthorAI + human authoring flow which you can adapt to your needs. Another objective of this notebook is to act as an interactive playground for the AuthorAI library.

AuthorAI Blogger for Jekyll: Jekyll is one of the most popular static website generators used among GitHub community. AuthorAI now integrates with Jekyll to generate posts straight into your Jekyll managed static website. See notebook used by human author to generate a Jekyll blog post including code snippets, FAQ, multiple sections, and feature image.

AuthorAI Artist: We have now launched AurhotAI Artist API for working with DALL-E and Stable Diffusion models. See notebook example to explore the API. You can generate random art from text and engineer your prompts based on painting style, surface, origin, and more.

Getting Started

AuthorAI API is powered by Open AI. Sign up for your Open AI API and copy your API key to get started.

Try out the auto blog post generation in three easy steps.

1. export OPENAI_KEY="your-openai-api-key-here"
2. git clone https://github.com/authorai/authorai.git
3. python blogger_generate.py

This will generate html, markdown, images in the 'generated' folder.

AuthorAI API sample

Here is an example of a 100% auto generated blog post by providing three concepts - Art, Physics, and City to AuthorAI API.

AuthorAI Blogger Post

You can auto generate this blog post in a single API call like so.

from authorai import blogger
keywords = ['Physics', 'Art', 'City']
blogger.auto_generate(keywords, verbose=True)

You can also customize the features and content of the blog within few lines of code using AuthorAI Blogger API.

from authorai import blogger

post = blogger.BlogPost()

post.set_auto(True)
post.set_full_feature(True)

keywords = ['Physics', 'Art', 'City']

response, response_list = blogger.concepts_combining_keywords(keywords)

post.set_concept(response_list[3])

topic = blogger.describe_concept(post.get_concept(), words=200, grade=10)
post.set_topic(topic)

response, response_list = blogger.titles_from_topic(post.get_topic())
post.set_title(response_list[6])

response, response_list = blogger.tags_from_topic(post.get_topic())
post.set_tags(response_list)

question = 'Is this concept ' + post.get_tags()[3] + ' ' + post.get_tags()[1] +  ' a thing?'
post.set_qna(question, blogger.qna(question))

response, reponse_list = blogger.leaderboard(topic, 'Movies', count=5)
post.set_leaderboard('Movies', response)

quote_text = blogger.quote(', '.join(concepts))
post.set_quote(quote_text)

image_description = blogger.strip_filename(blogger.summarize(post.get_topic(), words=10))
image_url = blogger.image_from_description('a 3d photo realistic painting of topic ' + image_description)

local_image = blogger.save_image(url=image_url, description=image_description)
post.set_feature_image(local_image)

post_html = blogger.generate_html(post)
html_path, markdown_path = blogger.publish(post_html=post_html, filename='-'.join(concepts))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

authorai-0.2.2.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

authorai-0.2.2-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file authorai-0.2.2.tar.gz.

File metadata

  • Download URL: authorai-0.2.2.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for authorai-0.2.2.tar.gz
Algorithm Hash digest
SHA256 2b12e83198a2e4468d6b9364511d0b9e834c7a6c3ed022e130a64e3c8b9d600f
MD5 260494264b9b3c6edce6322cc52becd1
BLAKE2b-256 d408d01bb1c25f23777961829685caac95da5b57b2ec9b635cd34eed57a48a8c

See more details on using hashes here.

File details

Details for the file authorai-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: authorai-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for authorai-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fd9fa6c332aa78a915e73345a319b0b2fbed10c38e46300262781dcb7227ea0d
MD5 ece6a8c8e5372ad45055c5bb44dace17
BLAKE2b-256 fd8fd04972c4730fd44d3f35c2b539414a7d68298ca82a3f24e74a7fc86b5fee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page