Sinhala & English Support AI-Powered Marketing SME Focused RAG Based Explainable AI Campaign Prediction

AI-Powered Digital Marketing Optimization for Sri Lankan SMEs

A localized AI-powered platform designed to help Sri Lankan SMEs create marketing content, predict campaign performance, automate customer engagement, and generate personalized marketing strategies in Sinhala and English.

Small and Medium Enterprises in Sri Lanka often struggle with limited marketing expertise, restricted budgets, inconsistent branding, delayed customer responses, and lack of access to intelligent digital marketing tools. MarketMatic AI addresses these challenges through a centralized AI-driven platform that combines natural language processing, machine learning, retrieval-augmented generation, explainable AI, and Sinhala-aware content generation.

MarketMatic AI Dashboard

Smart Assistant

Campaign Predictor

Content Generator

Strategy Generator

Campaign Status

MarketMatic Insights

Active
82%Prediction accuracy
4.8/5SME usability rating

Project Overview

MarketMatic AI is an AI-powered digital marketing optimization platform developed for Sri Lankan Small and Medium Enterprises. The system is designed to reduce the digital marketing gap faced by SMEs by offering intelligent content generation, customer engagement automation, campaign performance prediction, and personalized marketing strategy recommendation. The solution focuses on affordability, local language support, explainability, usability, and practical business value.

Input

  • Business type
  • SME goals
  • Ad images and captions
  • Customer queries
  • SME profile data

AI Processing

  • NLP
  • Machine learning
  • RAG
  • LLM reasoning
  • Sinhala text handling

Outputs

  • Generated content
  • Automated responses
  • Predicted campaign metrics
  • SME-specific recommendations
  • Analytics insights

Business Value

  • Better campaign planning
  • Faster customer support
  • Reduced marketing effort
  • Localized content
  • Improved marketing efficiency

Research Domain

Literature Survey

Digital marketing has become essential for SMEs because online platforms allow businesses to reach customers, promote products, and measure engagement at lower cost than traditional marketing. However, Sri Lankan SMEs often lack the technical knowledge, marketing expertise, and intelligent decision-support tools required to use digital channels effectively.

Existing research highlights the importance of social media marketing, AI-based decision support, natural language processing, customer engagement automation, campaign prediction, explainable AI, and localized language processing. The literature also shows that Sinhala and Sinhala-English code-mixed communication require special handling because Sinhala is a low-resource language in NLP and Sinhala text rendering has unique Unicode and shaping challenges.

Research Gap

Most existing AI marketing platforms are designed for global English-dominant markets and do not fully support the linguistic, cultural, and operational needs of Sri Lankan SMEs. Available tools usually focus on only one function, such as content generation, chatbot support, campaign analytics, or strategy planning. They rarely provide an integrated solution that combines Sinhala-English content generation, poster creation, campaign performance prediction, RAG-based customer support, personalized strategy generation, explainability, and SME-friendly usability.

There is also a lack of affordable AI platforms that support Sinhala-aware poster rendering, explainable campaign predictions, tenant-specific business support, and personalized strategy maintenance using fresh digital marketing knowledge.

Research Problem

How can an AI-powered digital marketing optimization platform be designed and developed to help Sri Lankan SMEs improve customer engagement, content creation, campaign planning, and marketing strategy generation using localized, affordable, explainable, and easy-to-use AI technologies?

Main Objective

The main objective of this research is to design, develop, and evaluate an AI-powered digital marketing optimization platform for Sri Lankan SMEs that integrates Sinhala-English marketing content generation, customer engagement automation, campaign performance prediction, and personalized marketing strategy recommendation.

Specific Objectives

  • To develop a Sinhala and English AI content generation component for SME marketing.
  • To create a Sinhala-aware poster generation workflow with correct Unicode rendering.
  • To develop a smart customer engagement assistant using RAG and tenant-specific business data.
  • To predict social media campaign performance before publication using machine learning and deep learning.
  • To provide explainable campaign prediction using SHAP and LIME.
  • To generate personalized digital marketing strategies using SME profile data and RAG.
  • To provide confidence indicators and drift detection for strategy reliability.
  • To support SMEs with an affordable, practical, and localized digital marketing platform.

Methodology

The project follows an applied design science and agile development methodology. The system was divided into four main AI components and developed iteratively. Each component was designed, implemented, tested, and evaluated based on its functional and non-functional requirements.

The methodology includes requirement analysis, literature review, dataset preparation, AI model selection, system architecture design, component implementation, API and frontend integration, functional testing, non-functional testing, evaluation and result analysis, and commercialization analysis.

Technologies Used

HTML CSS JavaScript React Node.js Python FastAPI MongoDB PostgreSQL ChromaDB pgvector RAG LLM Gemini API Groq API Qwen2.5 LLaMA GPT Transformer BiLSTM BiGRU SHAP LIME n8n Playwright Chromium HarfBuzz Machine Learning Deep Learning Natural Language Processing

Core System Components

Personalized Marketing Strategy Generator

IT22095008

Rajapakshe R.S.L.

AI-Powered Personalized Strategy Recommendation Module

The Personalized Marketing Strategy Generator creates structured digital marketing strategies for SMEs based on a detailed SME profile. It uses Retrieval-Augmented Generation, Groq API with LLaMA-3.3-70B-Versatile, deterministic confidence scoring, semantic drift detection, strategy versioning, and n8n-based RSS knowledge ingestion. The output includes platform recommendations, content planning guidance, budget allocation, reasoning, confidence factors, and a day-by-day action calendar.

  • Nine-step SME profile form
  • Personalized marketing strategy generation
  • RAG-based knowledge retrieval
  • LLaMA-3.3-70B via Groq API
  • Confidence scoring
  • Semantic drift detection
  • Strategy versioning
  • Day-by-day marketing calendar

Sinhala-Aware Content and Poster Generator

IT22116406

Jayasuriya J.A.D.C.G.

AI Marketing Content and Poster Generation Module

This component generates Sinhala, English, and bilingual marketing content and converts it into social-media-ready posters. It addresses the challenge that most global AI marketing tools are optimized for English and do not properly support Sinhala-English marketing language or Sinhala text rendering in posters. The system uses a hybrid generation pipeline with a fine-tuned local model, Gemini polishing, fallback generation, Sinhala Unicode normalization, ZWJ-aware handling, virama validation, and HTML/CSS poster rendering through Chromium and HarfBuzz.

  • Sinhala marketing content generation
  • English marketing content generation
  • Bilingual Sinhala-English content generation
  • Promotional captions
  • Product descriptions
  • Call-to-action messages
  • AI-assisted poster generation
  • Sinhala Unicode NFC normalization

MarketMatic Smart Assistant

IT22082060

Sandipa U.K.S.

AI-Powered Multi-Tenant Smart Assistant

MarketMatic Smart Assistant is an English-only AI-powered multi-tenant customer support assistant developed for Sri Lankan SMEs. It uses Retrieval-Augmented Generation to provide grounded answers from tenant-specific business documents and structured data instead of relying only on pre-trained model knowledge. The system supports website integration, FAQ automation, product inquiries, order tracking, delivery updates, pricing responses, context-aware conversations, human handover, analytics, and feedback-driven improvement.

  • RAG-based customer support
  • Multi-tenant architecture
  • Tenant-isolated ChromaDB collections
  • Section-aware document chunking
  • Nomic-Embed-Text embeddings
  • Adaptive retrieval pipeline
  • Qwen2.5:14B-Instruct-Q8_0 response generation
  • Modal GPU deployment

Campaign Performance Predictor

IT22112750

Wijayarathna H.P.I.G.

AI Campaign Prediction and Explainability Module

The Campaign Performance Predictor helps SMEs predict social media campaign performance before publishing. It accepts campaign inputs such as captions, platform, posting time, posting date, expected follower count, and advertisement boost status. The system predicts engagement metrics including likes, comments, shares, clicks, and timing quality score. It supports Sinhala, English, and Sinhala-English mixed captions and uses explainable AI techniques to help users understand why predictions are generated.

  • Campaign engagement prediction
  • Likes prediction
  • Comments prediction
  • Shares prediction
  • Clicks prediction
  • Timing quality score
  • Sinhala-English caption support
  • Transformer model

System Architecture

Input Layer

  • Business type
  • SME goals
  • Customer queries
  • Campaign captions
  • Ad images
  • SME profile data

Processing Layer

  • Content Generator
  • Customer Engagement Chatbot
  • Campaign Performance Predictor
  • Personalized Marketing Strategy Generator

AI & Data Layer

  • NLP models
  • Machine learning models
  • Deep learning models
  • RAG pipeline
  • Vector databases
  • LLM APIs
  • Sinhala text processing
  • Knowledge base

Output Layer

  • Generated content
  • Social media posters
  • Automated responses
  • Predicted campaign metrics
  • SME-specific recommendations
  • Marketing strategies
  • Calendar action plans
  • Analytics dashboard

The proposed system integrates multiple AI modules into a centralized digital marketing platform. Each module solves a major SME marketing challenge while contributing to a unified workflow that supports content creation, customer communication, prediction, and strategic decision-making.

Project Milestones

Description: Initial project idea, research problem, objectives, scope, proposed solution, and project feasibility were presented.

Date: Add date here

Marks Allocated: Add marks here

Description: Presented literature survey, research gap, methodology, system architecture, and initial implementation progress.

Date: Add date here

Marks Allocated: Add marks here

Description: Presented development progress, AI component implementation, datasets, testing plan, and integration progress.

Date: Add date here

Marks Allocated: Add marks here

Description: Final system demonstration, completed research documentation, evaluation results, and commercialization aspects were presented.

Date: Add date here

Marks Allocated: Add marks here

Description: Final oral defense explaining the research problem, contribution, methodology, implementation, results, and individual contribution.

Date: Add date here

Marks Allocated: Add marks here

Project Documents

Topic Assessment Form

Official topic assessment form for project 25-26J-301.

Available View Document

Project Charter

Initial project planning and project scope document.

Available View Document

Proposal Document

Research proposal including research problem, objectives, methodology, and expected outcomes.

Available View Document

IT22095008 Individual Report

Personalized Marketing Strategy Generator for Small and Medium Enterprises using RAG, LLM, confidence scoring, semantic drift detection, and n8n RSS ingestion.

Available View Report

IT22116406 Individual Report

Sinhala-aware AI-powered marketing content and poster generation platform for Sri Lankan SMEs.

Available View Report

IT22082060 Individual Report

MarketMatic Smart Assistant: AI-powered multi-tenant smart assistant with RAG for Sri Lankan SME customer support.

Available View Report

IT22112750 Individual Report

Campaign Performance Predictor using Transformer, BiLSTM, BiGRU, SHAP, LIME, and multilingual campaign analysis.

Available View Report

Checklist Documents

Project checklist documents and assessment-related files.

Pending

Final Group Report

Final combined group research report for MarketMatic AI.

Pending

Presentations

Proposal Presentation

Initial research proposal, problem domain, objectives, and proposed solution.

Available View Slides

Progress Presentation 1

Literature review, research gap, methodology, and initial system progress.

Available View Slides

Progress Presentation 2

Implementation progress, component integration, AI models, and testing plan.

Available View Slides

Final Presentation

Final research outcome, system demonstration, evaluation, and commercialization.

Pending

Research Team

Rajapakshe R.S.L.

Rajapakshe R.S.L.

IT22095008 • AI Strategy Generator Developer

Responsible for personalized marketing strategy generation, RAG pipeline, confidence scoring, semantic drift detection, n8n RSS ingestion, strategy versioning, and calendar planning.

it22095008@my.sliit.lk
Jayasuriya J.A.D.C.G.

Jayasuriya J.A.D.C.G.

IT22116406 • AI Content and Poster Generation Developer

Responsible for Sinhala marketing content generation, poster generation, Sinhala Unicode processing and browser-based rendering.

it22116406@my.sliit.lk
Sandipa U.K.S.

Sandipa U.K.S.

IT22082060 • RAG Smart Assistant Developer

Responsible for the AI-powered multi-tenant smart assistant, RAG pipeline, document retrieval, customer support automation, session analytics, and chatbot integration.

it22082060@my.sliit.lk
Wijayarathna H.P.I.G.

Wijayarathna H.P.I.G.

IT22112750 • Machine Learning and Prediction Model Developer

Responsible for campaign performance prediction, Sinhala-English caption analysis, deep learning models, SHAP and LIME explainability, and smart campaign recommendations.

it22112750@my.sliit.lk

Dr. Kapila Dissanayaka

Research Supervisor

Sri Lanka Institute of Information Technology

Department of Information Technology

Contact Us

For more information about the MarketMatic AI research project, contact the research team.

Institution

Sri Lanka Institute of Information Technology

Department of Information Technology

Location

Sri Lanka

Project ID

25-26J-301

CoEAI - Centre of Excellence for AI