Mental health is a crucial factor influencing the overall well-being of humans, which has gained significant attention in recent times due to the high prevalence of mental health disorders and their detrimental effects on individuals and society. In an attempt to tackle this pressing issue, researchers have explored the possibility of using the copious amounts of data available on social media platforms to predict and classify mental health status. In our study, we analyzed three datasets: the first one comprising 7 classes (depression, anxiety, autism, mental health, schizophrenia, BPD, and bipolar), the second dataset comprising 2 classes (positive and negative), and the third dataset comprising 2 classes (suicide and non-suicide). The final dataset included 14 classes, with 7 belonging to the non-suicidal subset and 7 belonging to the suicidal subset. We employed logistic regression, support vector machines, and multinomial naive Bayes for classification and prediction, and evaluated the performance of our models using receiver operating characteristic (ROC) curves and confusion matrices. The logistic regression model outperformed the other models, achieving an accuracy of 80%. Our models have been deployed using streamlit, providing a user-friendly interface for predicting mental health status and risk for suicidal ideation. If the prediction of the social media post falls within the suicide subset class, a chatbot (GPT2) will be activated in an effort to engage the individual with suicidal ideation and reduce the likelihood of suicide. Our research serves as a helpful tool for mental health professionals and has the potential to be extended to other platforms, addressing the urgent need to detect and address mental health issues and suicidal ideation.