@startuml title New user Actor User as user Participant Bot as bot Participant Api as api Participant "Course1 API" as courseapi Database Postgres as postgres Database Redis as redis user -> bot : message ('/start') bot --> user : Welcome message\nEmail input prompt user -> bot : message ('email') bot --> user : Name input prompt user -> bot : message ('name') bot -> postgres : insert into user_data postgres --> bot : OK bot --> user : Menu\n[Change name]\n[Course1]\n[Course2] user -> bot : button (Course1) bot ->> user : message\n('starting lesson pls wait...') bot -> api : POST ${API_URI}/service/start\n{'email': 'email',\n'course': 'Course1'} api -> courseapi : POST\n*create environment* courseapi --> api : OK\n{'env info': 'env info'} api -> postgres : insert into course1_user postgres --> api : OK api --> bot : OK bot --> user : First lesson user -> courseapi : Task attempt courseapi --> user : OK courseapi -> api : POST ${API_URI}/course1/callback\n{Task attempt data} api -> postgres : update course1_user postgres --> api : OK api -> bot : POST /?\n*next/retry/grades* bot --> user : message (next/retry/grades) bot --> api : OK api --> courseapi : OK @enduml
Decode URL
Submit
amiga
aws-orange
black-knight
bluegray
blueprint
cerulean-outline
cerulean
crt-amber
crt-green
cyborg-outline
cyborg
hacker
lightgray
mars
materia-outline
materia
metal
mimeograph
minty
plain
reddress-darkblue
reddress-darkgreen
reddress-darkorange
reddress-darkred
reddress-lightblue
reddress-lightgreen
reddress-lightorange
reddress-lightred
sandstone
silver
sketchy-outline
sketchy
spacelab
spacelab-white
superhero-outline
superhero
toy
united
vibrant
🎉 Discover the future PlantUML Web Editor! 🚀
PNG
SVG
ASCII Art