Obsei: An open-source low-code AI powered automation tool

Test License PyPI - Python Version Platform Conda Release Downloads HF Spaces Last commit Github stars YouTube Channel Subscribers

Note: Obsei is still in alpha stage hence carefully use it in Production. Also as it is constantly undergoing development hence master branch may contains many breaking changes. Please use released version.

Obsei is an open-source low-code AI powered automation tool. Obsei consist of -

Future thoughts -

Introductory demo video

Introductory and demo video

Use cases

Obsei use cases are following, but not limited to -

Companies/Projects using Obsei

Here are some companies/projects (alphabetical order) using Obsei. To add your company/project to the list, please raise a PR or contact us via email.


Sr. No. Workflow Colab Binder
1 Observe app reviews from Google play store, Analyze them via performing text classification and then Inform them on console via logger
PlayStore Reviews → Classification → Logger Colab Colab
2 Observe app reviews from Google play store, PreProcess text via various text cleaning function, Analyze them via performing text classification, Inform them to Pandas DataFrame and store resultant CSV to Google Drive
PlayStore Reviews → PreProcessing → Classification → Pandas DataFrame → CSV in Google Drive Colab Colab
3 Observe app reviews from Apple app store, PreProcess text via various text cleaning function, Analyze them via performing text classification, Inform them to Pandas DataFrame and store resultant CSV to Google Drive
AppStore Reviews → PreProcessing → Classification → Pandas DataFrame → CSV in Google Drive Colab Colab
4 Observe news article from Google news, PreProcess text via various text cleaning function, Analyze them via performing text classification while splitting text in small chunks and later computing final inference using given formula
Google News → Text Cleaner → Text Splitter → Classification → Inference Aggregator Colab Colab


We have a minimal streamlit based UI that you can use to test Obsei.


Watch UI demo video

Introductory and demo video

Check demo at or at Demo Link

(Note: Due to rate limit sometime Streamlit demo might not work, hence please use docker image locally.)

To test locally, just run

docker run -d --name obesi-ui -p 8501:8501 obsei/obsei-ui-demo

# You can find the UI at http://localhost:8501

To run Obsei workflow easily using GitHub Actions (no signups and cloud hosting require), refer repo for more information.


For detailed installation instructions, usages and example refer documentation.

Support and Release Matrix

Linux Mac Windows1 Remark
Tests Low Coverage as difficult to test 3rd party libs
PIP Fully Supported
Conda2 Partially Supported

1 On Windows you have to install pytorch manually. Refer Pytorch official instruction.

2 Conda channel missing few dependencies, hence install missing dependencies manually -

Missing Conda dependencies -
pip install presidio-analyzer
pip install presidio-anonymizer
pip install zenpy
pip install searchtweets-v2
pip install google-play-scraper
pip install tweet-preprocessor
pip install gnews
pip install trafilatura
pip install python-facebook-api

How to use

Expend following steps and create your workflow -

Step 1: Prerequisite

Install following if system do not have -

Step 2: Install Obsei

You can install Obsei either via PIP or Conda based on your preference.

NOTE: On Windows you have to install pytorch manually. Refer https://pytorch.org/get-started/locally/

Install via PIP:

To install latest released version -

pip install obsei

Install from master branch (if you want to try the latest features):

git clone https://github.com/obsei/obsei.git
cd obsei
pip install --editable .

Install via Conda:

To install latest released version -

conda install -c lalitpagaria obsei

Install from master branch (if you want to try the latest features):

git clone https://github.com/obsei/obsei.git
cd obsei
conda env create -f conda/environment.yml

For GPU based local environment -

git clone https://github.com/obsei/obsei.git
cd obsei
conda env create -f conda/gpu-environment.yml
Step 3: Configure Source/Observer
from obsei.source.twitter_source import TwitterCredentials, TwitterSource, TwitterSourceConfig

# initialize twitter source config
source_config = TwitterSourceConfig(
   keywords=["issue"], # Keywords, @user or #hashtags
   lookup_period="1h", # Lookup period from current time, format: `<number><d|h|m>` (day|hour|minute)
       # Enter your twitter consumer key and secret. Get it from https://developer.twitter.com/en/apply-for-access
       bearer_token='<ENTER BEARER TOKEN>',

# initialize tweets retriever
source = TwitterSource()
from obsei.source.facebook_source import FacebookCredentials, FacebookSource, FacebookSourceConfig

# initialize facebook source config
source_config = FacebookSourceConfig(
   page_id="110844591144719", # Facebook page id, for example this one for Obsei
   lookup_period="1h", # Lookup period from current time, format: `<number><d|h|m>` (day|hour|minute)
       # Enter your facebook app_id, app_secret and long_term_token. Get it from https://developers.facebook.com/apps/

# initialize facebook post comments retriever
source = FacebookSource()
from obsei.source.email_source import EmailConfig, EmailCredInfo, EmailSource

# initialize email source config
source_config = EmailConfig(
   # List of IMAP servers for most commonly used email providers
   # https://www.systoolsgroup.com/imap/
   # Also, if you're using a Gmail account then make sure you allow less secure apps on your account -
   # https://myaccount.google.com/lesssecureapps?pli=1
   # Also enable IMAP access -
   # https://mail.google.com/mail/u/0/#settings/fwdandpop
   imap_server="imap.gmail.com", # Enter IMAP server
       # Enter your email account username and password
   lookup_period="1h" # Lookup period from current time, format: `<number><d|h|m>` (day|hour|minute)

# initialize email retriever
source = EmailSource()
Google Maps Reviews Scrapper
from obsei.source import OSGoogleMapsReviewsSource, OSGoogleMapsReviewsConfig

# initialize Outscrapper Maps review source config
source_config = OSGoogleMapsReviewsConfig(
   # Collect API key from https://outscraper.com/
   api_key="<Enter Your API Key>",
   # Enter Google Maps link or place id
   # For example below is for the "Taj Mahal"

# initialize Outscrapper Maps review retriever
source = OSGoogleMapsReviewsSource()
AppStore Reviews Scrapper
from obsei.source.appstore_scrapper import AppStoreScrapperConfig, AppStoreScrapperSource

# initialize app store source config
source_config = AppStoreScrapperConfig(
   # Need two parameters app_id and country.
   # `app_id` can be found at the end of the url of app in app store.
   # For example - https://apps.apple.com/us/app/xcode/id497799835
   # `310633997` is the app_id for xcode and `us` is country.
   lookup_period="1h" # Lookup period from current time, format: `<number><d|h|m>` (day|hour|minute)

# initialize app store reviews retriever
source = AppStoreScrapperSource()
Play Store Reviews Scrapper
from obsei.source.playstore_scrapper import PlayStoreScrapperConfig, PlayStoreScrapperSource

# initialize play store source config
source_config = PlayStoreScrapperConfig(
   # Need two parameters package_name and country.
   # `package_name` can be found at the end of the url of app in play store.
   # For example - https://play.google.com/store/apps/details?id=com.google.android.gm&hl=en&gl=US
   # `com.google.android.gm` is the package_name for xcode and `us` is country.
   lookup_period="1h" # Lookup period from current time, format: `<number><d|h|m>` (day|hour|minute)

# initialize play store reviews retriever
source = PlayStoreScrapperSource()
from obsei.source.reddit_source import RedditConfig, RedditSource, RedditCredInfo

# initialize reddit source config
source_config = RedditConfig(
   subreddits=["wallstreetbets"], # List of subreddits
   # Reddit account username and password
   # You can also enter reddit client_id and client_secret or refresh_token
   # Create credential at https://www.reddit.com/prefs/apps
   # Also refer https://praw.readthedocs.io/en/latest/getting_started/authentication.html
   # Currently Password Flow, Read Only Mode and Saved Refresh Token Mode are supported
   lookup_period="1h" # Lookup period from current time, format: `<number><d|h|m>` (day|hour|minute)

# initialize reddit retriever
source = RedditSource()
Reddit Scrapper

Note: Reddit heavily rate limit scrappers, hence use it to fetch small data during long period

from obsei.source.reddit_scrapper import RedditScrapperConfig, RedditScrapperSource

# initialize reddit scrapper source config
source_config = RedditScrapperConfig(
   # Reddit subreddit, search etc rss url. For proper url refer following link -
   # Refer https://www.reddit.com/r/pathogendavid/comments/tv8m9/pathogendavids_guide_to_rss_and_reddit/
   lookup_period="1h" # Lookup period from current time, format: `<number><d|h|m>` (day|hour|minute)

# initialize reddit retriever
source = RedditScrapperSource()
Google News
from obsei.source.google_news_source import GoogleNewsConfig, GoogleNewsSource

# initialize Google News source config
source_config = GoogleNewsConfig(
   # To fetch full article text enable `fetch_article` flag
   # By default google news gives title and highlight

# initialize Google News retriever
source = GoogleNewsSource()
Web Crawler
from obsei.source.website_crawler_source import TrafilaturaCrawlerConfig, TrafilaturaCrawlerSource

# initialize website crawler source config
source_config = TrafilaturaCrawlerConfig(

# initialize website text retriever
source = TrafilaturaCrawlerSource()
Pandas DataFrame
import pandas as pd
from obsei.source.pandas_source import PandasSource, PandasSourceConfig

# Initialize your Pandas DataFrame from your sources like csv, excel, sql etc
# In following example we are reading csv which have two columns title and text
csv_file = "https://raw.githubusercontent.com/deepset-ai/haystack/master/tutorials/small_generator_dataset.csv"
dataframe = pd.read_csv(csv_file)

# initialize pandas sink config
sink_config = PandasSourceConfig(
   text_columns=["name", "degree"],

# initialize pandas sink
sink = PandasSource()
Step 4: Configure Analyzer

Note: To run transformers in an offline mode, check transformers offline mode.

Some analyzer support GPU and to utilize pass device parameter. List of possible values of device parameter (default value auto):

  1. auto: GPU (cuda:0) will be used if available otherwise CPU will be used
  2. cpu: CPU will be used
  3. cuda:{id} - GPU will be used with provided CUDA device id

Text Classification

Text classification, classify text into user provided categories.

from obsei.analyzer.classification_analyzer import ClassificationAnalyzerConfig, ZeroShotClassificationAnalyzer

# initialize classification analyzer config
# It can also detect sentiments if "positive" and "negative" labels are added.
   labels=["service", "delay", "performance"],

# initialize classification analyzer
# For supported models refer https://huggingface.co/models?filter=zero-shot-classification
text_analyzer = ZeroShotClassificationAnalyzer(
Sentiment Analyzer

Sentiment Analyzer, detect the sentiment of the text. Text classification can also perform sentiment analysis but if you don't want to use heavy-duty NLP model then use less resource hungry dictionary based Vader Sentiment detector.

from obsei.analyzer.sentiment_analyzer import VaderSentimentAnalyzer

# Vader does not need any configuration settings

# initialize vader sentiment analyzer
text_analyzer = VaderSentimentAnalyzer()
NER Analyzer

NER (Named-Entity Recognition) Analyzer, extract information and classify named entities mentioned in text into pre-defined categories such as person names, organizations, locations, medical codes, time expressions, quantities, monetary values, percentages, etc

from obsei.analyzer.ner_analyzer import NERAnalyzer

# NER analyzer does not need configuration settings

# initialize ner analyzer
# For supported models refer https://huggingface.co/models?filter=token-classification
text_analyzer = NERAnalyzer(
   device = "auto"
from obsei.analyzer.translation_analyzer import TranslationAnalyzer

# Translator does not need analyzer config
analyzer_config = None

# initialize translator
# For supported models refer https://huggingface.co/models?pipeline_tag=translation
analyzer = TranslationAnalyzer(
   device = "auto"
PII Anonymizer
from obsei.analyzer.pii_analyzer import PresidioEngineConfig, PresidioModelConfig, \
   PresidioPIIAnalyzer, PresidioPIIAnalyzerConfig

# initialize pii analyzer's config
analyzer_config = PresidioPIIAnalyzerConfig(
   # Whether to return only pii analysis or anonymize text
   # Whether to return detail information about anonymization decision

# initialize pii analyzer
analyzer = PresidioPIIAnalyzer(
       # spacy and stanza nlp engines are supported
       # For more info refer
       # https://microsoft.github.io/presidio/analyzer/developing_recognizers/#utilize-spacy-or-stanza
       # Update desired spacy model and language
       models=[PresidioModelConfig(model_name="en_core_web_lg", lang_code="en")]
Dummy Analyzer

Dummy Analyzer, do nothing it simply used for transforming input (TextPayload) to output (TextPayload) also adding user supplied dummy data.

from obsei.analyzer.dummy_analyzer import DummyAnalyzer, DummyAnalyzerConfig

# initialize dummy analyzer's configuration settings
analyzer_config = DummyAnalyzerConfig()

# initialize dummy analyzer
analyzer = DummyAnalyzer()
Step 5: Configure Sink/Informer
from obsei.sink.slack_sink import SlackSink, SlackSinkConfig

# initialize slack sink config
sink_config = SlackSinkConfig(
   # Provide slack bot/app token
   # For more detail refer https://slack.com/intl/en-de/help/articles/215770388-Create-and-regenerate-API-tokens
   # To get channel id refer https://stackoverflow.com/questions/40940327/what-is-the-simplest-way-to-find-a-slack-team-id-and-a-channel-id

# initialize slack sink
sink = SlackSink()
from obsei.sink.zendesk_sink import ZendeskSink, ZendeskSinkConfig, ZendeskCredInfo

# initialize zendesk sink config
sink_config = ZendeskSinkConfig(
   # For custom domain refer http://docs.facetoe.com.au/zenpy.html#custom-domains
   # Mainly you can do this by setting the environment variables:
   # ZENPY_FORCE_SCHEME (default to https)
   # when set it will force request on:
   # {scheme}://{netloc}/endpoint
   # provide zendesk domain
   # provide subdomain if you have one
   # Enter zendesk user details

# initialize zendesk sink
sink = ZendeskSink()
from obsei.sink.jira_sink import JiraSink, JiraSinkConfig

# For testing purpose you can start jira server locally
# Refer https://developer.atlassian.com/server/framework/atlassian-sdk/atlas-run-standalone/

# initialize Jira sink config
sink_config = JiraSinkConfig(
   url="http://localhost:2990/jira", # Jira server url
    # Jira username & password for user who have permission to create issue
   # Which type of issue to be created
   # For more information refer https://support.atlassian.com/jira-cloud-administration/docs/what-are-issue-types/
   issue_type={"name": "Task"},
   # Under which project issue to be created
   # For more information refer https://support.atlassian.com/jira-software-cloud/docs/what-is-a-jira-software-project/
   project={"key": "CUS"},

# initialize Jira sink
sink = JiraSink()
from obsei.sink.elasticsearch_sink import ElasticSearchSink, ElasticSearchSinkConfig

# For testing purpose you can start Elasticsearch server locally via docker
# `docker run -d --name elasticsearch -p 9200:9200 -e "discovery.type=single-node" elasticsearch:7.9.2`

# initialize Elasticsearch sink config
sink_config = ElasticSearchSinkConfig(
   # Elasticsearch server hostname
   # Elasticsearch server port
   # Index name, it will create if not exist

# initialize Elasticsearch sink
sink = ElasticSearchSink()
from obsei.sink.http_sink import HttpSink, HttpSinkConfig

# For testing purpose you can create mock http server via postman
# For more details refer https://learning.postman.com/docs/designing-and-developing-your-api/mocking-data/setting-up-mock/

# initialize http sink config (Currently only POST call is supported)
sink_config = HttpSinkConfig(
   # provide http server url
   # Here you can add headers you would like to pass with request
       "Content-type": "application/json"

# To modify or converting the payload, create convertor class
# Refer obsei.sink.dailyget_sink.PayloadConvertor for example

# initialize http sink
sink = HttpSink()
Pandas DataFrame
from pandas import DataFrame
from obsei.sink.pandas_sink import PandasSink, PandasSinkConfig

# initialize pandas sink config
sink_config = PandasSinkConfig(

# initialize pandas sink
sink = PandasSink()

This is useful for testing and dry run checking of pipeline.

from obsei.sink.logger_sink import LoggerSink, LoggerSinkConfig
import logging
import sys

logger = logging.getLogger("Obsei")
logging.basicConfig(stream=sys.stdout, level=logging.INFO)

# initialize logger sink config
sink_config = LoggerSinkConfig(

# initialize logger sink
sink = LoggerSink()
Step 6: Join and create workflow

source will fetch data from selected the source, then feed that to analyzer for processing, whose output we feed into sink to get notified at that sink.

# Uncomment if you want logger
# import logging
# import sys
# logger = logging.getLogger(__name__)
# logging.basicConfig(stream=sys.stdout, level=logging.INFO)

# This will fetch information from configured source ie twitter, app store etc
source_response_list = source.lookup(source_config)

# Uncomment if you want to log source response
# for idx, source_response in enumerate(source_response_list):
#     logger.info(f"source_response#'{idx}'='{source_response.__dict__}'")

# This will execute analyzer (Sentiment, classification etc) on source data with provided analyzer_config
analyzer_response_list = text_analyzer.analyze_input(

# Uncomment if you want to log analyzer response
# for idx, an_response in enumerate(analyzer_response_list):
#    logger.info(f"analyzer_response#'{idx}'='{an_response.__dict__}'")

# Analyzer output added to segmented_data
# Uncomment inorder to log it
# for idx, an_response in enumerate(analyzer_response_list):
#    logger.info(f"analyzed_data#'{idx}'='{an_response.segmented_data.__dict__}'")

# This will send analyzed output to configure sink ie Slack, Zendesk etc
sink_response_list = sink.send_data(analyzer_response_list, sink_config)

# Uncomment if you want to log sink response
# for sink_response in sink_response_list:
#     if sink_response is not None:
#         logger.info(f"sink_response='{sink_response}'")
Step 7: Execute workflow Copy code snippets from Step 3 to Step 6 into python file for example example.py and execute following command -
python example.py


Sr. No. Title Author
1 AI based Comparative Customer Feedback Analysis Using Obsei Reena Bapna
2 LinkedIn App - User Feedback Analysis Himanshu Sharma


Handle large text classification

Upcoming Release

Upcoming release plan and progress can be tracked at link (Suggestions are welcome).

Discussion Forum

Discussion about Obsei can be done at community forum


First off, thank you for even considering contributing to this package, every contribution big or small is greatly appreciated. Please refer our Contribution Guideline and Code of Conduct.


Refer releases and projects.

Security Issue

For any security issue please contact us via email

Stargazers over time

Stargazers over time


This could not have been possible without these open source software.


We would like to thank DailyGet for continuous support and encouragement. Please check DailyGet out. it is a platform which can easily be configured to solve any business process automation requirements.