Skip to main content

Customer Journey Orchestration Utility

Project description

Author: Dhivya Nagasubramanian

Purpose: The purpose of the Customer Journey Orchestration seamlessly connect and track customer interactions across multiple marketing channels, enabling businesses to gain a holistic view of each customer’s experience over time. By orchestrating touchpoints across channels, the package empowers marketers to deliver personalized, timely, and relevant messages, optimize engagement, and improve customer satisfaction and loyalty. It helps create a unified, data-driven strategy for nurturing and guiding customers through their journey, ultimately driving conversions and business growth.

Requirements packages:

NumPy - Adds support for large, multi-dimensional arrays, matrices and high-level mathematical functions to operate on these arrays.
python-dateutil - Provides powerful extensions to the standard datetime module.
dask - Dask is a flexible parallel computing library for analytics. See documentation for more information.

random - generate random numbers with in the set limits.
pandas - Dataframe utility.

Installation Instructions:

pip install journey-orchestrate

Example

| ID | Timestamp | Channel |
|-----:|:--------------------|:------------|
| 1 | 2024-11-18 08:00:00 | email |
| 1 | 2024-11-18 09:00:00 | sms |
| 3 | 2024-11-18 10:00:00 | app |
| 3 | 2024-11-18 11:00:00 | email |
| 5 | 2024-11-18 12:00:00 | sms |
| 5 | 2024-11-18 15:00:00 | direct mail |

Output.
1 email > sms
3 app > email
5 sms > direct mail

For a customer journey involving multiple marketing channels through which messages were delivered, we can orchestrate and stitch together the individual journey paths for each customer, providing a cohesive view of their interactions across all touchpoints.

How to use it : There are two main functions of this framework.

1. customer_journey_orchestrate(data, ID, datetime,channel,join_string ,n_partitions)

  • This is the main functionionility for customer journey orchestration . 1st parameter - dataframe where the customer touch point exists.
    2nd parameter - ID on which data should be grouped.
    3rd parameter - timestamp on which we should start.
    4th parameter - column on which customer journey should be orchestrated . eg: Email, Directmail, Paid display, social media, etc.
    5th parameter - Join string. for eg: '>','|',etc. if nothing is given, default is '>'.
    6th parameter - number of partitions in which dask would operate the data for sorting.

2. generate_random_data(n,nc,startdt, enddt,channel_lst,random_seed)

  • This would generate sample dataset to test the customer journey orchestrate function

    1st parameter - Number of rows to generate.
    2nd parameter - Number of unique IDs you want in the dataset 3rd parameter - Start date.
    4th parameter - End date.
    5th parameter - Unique Channel list : eg:['EM','SMC','PD','PS'].
    6th parameter - random_seed.

How to test the package with out data ?

Step1 - Run with "generate_random_data" by passing appropriate values

eg: df_example = generate_random_data(1000,30,"2023-01-01','2024-10-01',['EM','Direct Mail','Paid Display','Search'],230).

Step2 - Run the orchestrator function customer_journey_orchestrate(data, ID, datetime,channel,join_string ,n_partitions)

eg: customer_journey_orchestrate(df_example, ID, timestamp,channel,' > ' ,2)

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

journey_orchestrate-0.0.6.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

journey_orchestrate-0.0.6-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file journey_orchestrate-0.0.6.tar.gz.

File metadata

  • Download URL: journey_orchestrate-0.0.6.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for journey_orchestrate-0.0.6.tar.gz
Algorithm Hash digest
SHA256 7396ca5ed15661239edfcd3be66d19db5f35fd1aeedd56d6903bf785019e3d2a
MD5 37e8bf49d821686f7cdd78fd7612705f
BLAKE2b-256 987e4e4bfb16f9dd057da3b0d9fca69af7506e029659edac7a899b430a0e91f3

See more details on using hashes here.

File details

Details for the file journey_orchestrate-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for journey_orchestrate-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8593d5b408ede490aa8d5ddd95708a2ff338760172e02f1d34efa34515a356e7
MD5 a2b34ba7e42c4e191774bee286d40c6c
BLAKE2b-256 5d985e18de358ade2b53ea655c4b15da183dd9673ec00a197e91cc0de3be378b

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