SlideShare a Scribd company logo
Patna MuleSoft Meetup Group
(19th Meetup)
SNS - SQS, and the MuleSoft liaison
17th Jun 2023
Organizer
Safe Harbour Statement
● Both the speaker and the host are organizing this meet-up in individual capacity only. We are
not representing our companies here.
● This presentation is strictly for learning purposes only. Organizer/Presenter do not hold any
responsibility that same solution will work for your business requirements.
● This presentation is not meant for any promotional activities.
3
A recording of this meetup will be uploaded to events page within 24 hours.
Questions can be submitted/asked at any time in the Chat/Questions & Answers Tab.
Make it more Interactive!!!
Give us feedback! Rate this meetup session by filling feedback form at the end of the day.
We Love Feedbacks!!! Its Bread & Butter for Meetup.
Housekeeping
4
Speaker
Shruti Singh
MuleSoft Developer
Horizontal Digital
6
● Slack & ChatGPT Introduction
● Slack configuration setup
● ChatGPT configuration setup
● Demo
○ Integration between Slack & ChatGPT
● Q&A
● Wrap-Up
Agenda
Slack is a messaging app for business that connects people to the information that they need. By
bringing people together to work as one unified team, Slack transforms the way that organisations
communicate. In July 2021, Salesforce completed its acquisition of Slack Technologies, Inc.
With Slack, you can:
• Decide where to have different types of conversations.
• Find, join, and start conversations.
• Work quickly with teammates using mentions and reactions.
• Share files with the team.
• Find the right information by searching in Slack.
• Access important messages and files quickly.
Slack Introduction
7
Workspace: A Slack workspace is made up of channels, where team members can communicate and
work together.
Channel: Channels are spaces where you can work with your coworkers on specific topics.
Conversations in channels are transparent and accessible to people in your company.
Direct messages: DMs are for smaller conversations outside of channels, like if you wanted to ask a
teammate to reschedule a 1:1 meeting.
App: Apps are created to perform specific tasks in Slack.
Slack keywords we should know…
8
• ChatGPT is a sibling model to InstructGPT, which is trained to follow an instruction in a prompt and
provide a detailed response. It uses OpenAI API and free to use.
• It interacts in a conversational way. The dialogue format makes it possible for ChatGPT to answer
followup questions, admit its mistakes, challenge incorrect premises, and reject inappropriate
requests.
• The OpenAI API can be applied to virtually any task that involves understanding or generating
natural language, code, or images.
• We can interact with the OpenAI API through HTTP requests from any language. It uses API keys
for authentication.
ChatGPT Introduction
9
Prompts: Designing your prompt is essentially how you “program” the model, usually by providing
some instructions or a few examples. This is different from most other NLP services which are
designed for a single task, such as sentiment classification or named entity recognition.
Tokens: ChatGPT models understand and process text by breaking it down into tokens. Tokens can
be words or just chunks of characters. Many tokens start with a whitespace, for example “ hello” and
“bye”. One limitation to keep in mind is that your text prompt and generated completion combined
must be no more than the model's maximum context length (for most models this is 2048 tokens, or
about 1500 words). Check out our tokenizer tool to learn more about how text translates to tokens.
Models: The API is powered by a set of models with different capabilities and price points. GPT-4 is
the latest and most powerful model. GPT-3.5-Turbo is the model that powers ChatGPT and is
optimized for conversational formats.
ChatGPT keywords we should know…
10
Login into your slack account and go to https://api.slack.com/apps to create a new app. Create an app
from scratch.
Set up Slack configuration
11
Give a relevant App Name and select the workspace.
Set up Slack configuration
12
After app creation, go to Basic Information and copy down Client ID and Client Secret for later use.
Set up Slack configuration
13
Go to OAuth & Permissions and add needed scopes in Scope section.
Set up Slack configuration
14
Click Install to Workspace. Copy the self generated Bot User OAuth Token for later use.
Set up Slack configuration
15
Go to the channel in your workspace in which you want to install the ChatBot app. Also, copy the
Channel ID for later use. Add the ChatBot app in Integrations section.
Set up Slack configuration
16
Login to your ChatGPT account. Open below URL.
An API for accessing new AI models developed by OpenAI: platform.openai.com
Click on Profile icon. Go to View API keys. Generate a new secret key and copy it for later use.
Set up ChatGPT configuration
17
Demo
This Conversations API method's required scopes depend on the type of channel-like object you're
working with. To use the method, you'll need at least one of the channels:, groups:, im: or mpim:
scopes corresponding to the conversation type you're working with.
This method returns a portion of message events from the specified conversation. To read the entire
history for a conversation, call the method with no oldest or latest arguments, and then continue paging
using the instructions below.
Required arguments: token, channel
HTTP Method: POST
Endpoint: https://slack.com/api/conversations.history
Slack REST API: conversations.history
19
Post to a public channel
Pass the channel's ID to the channel parameter and the message will be posted to that channel. The
channel's ID can be retrieved through the conversations.list API method.
Post to a private channel
As long as the authenticated user is a member of the private channel, pass the channel's ID to the
channel parameter and the message will be posted to that channel. The private channel's ID can be
retrieved through the conversations.list API method.
Required arguments: token, channel, atleast one of attachments/ blocks/ text
HTTP Method: POST
Endpoint: https://slack.com/api/chat.postMessage
Slack REST API: chat.postMessage
20
It creates a model response for the given chat conversation.
HTTP Method: POST
Endpoint: https://api.openai.com/v1/chat/completions
Request body:
Model – string – Required : ID of the model to use.
Messages – array – Required : A list of messages describing the conversation so far.
Role – string – Required : The role of the author of this message. One of system, user, or assistant.
Content – string – Required: The contents of the message.
OpenAI API: chat/completions
21
Open Anypoint Studio and create flow given below.
Integration between Slack & ChatGPT
22
Q&A
Take a stand !
24
● Nominate yourself for the next meetup speaker and suggest a topic as well.
● Share:
○ Tweet or share using the hashtag #MuleSoftMeetups
○ Invite your network to join: https://meetups.mulesoft.com/patna/
● Feedback:
○ Fill out the survey feedback and suggest topics for upcoming events
○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program
○ Reach out to Patna Meetup Leaders (Om/Amit/Shyam) to suggest topics for
next Meetup
23
What’s next?
Thank you

More Related Content

Similar to ChatGPT and Slack Integration with MuleSoft (20)

PPTX
Denver MuleSoft Meetup: Approve this! (or reject this!) with MuleSoft and Slack
Big Compass
 
PPTX
Slack for the mere mortals
Abe Diaz
 
PDF
Chat Bots and how to build a Slack bot
Vasu Jain
 
PDF
Build apps for slack
Binod Jung Bogati
 
PPTX
Use Slack in software development processes
Igor Khomenko
 
PPTX
Advanced Integrations of MuleSoft with ChatGTP
NeerajKumar1965
 
PDF
Building Enterprise Chat Bots
Vasu Jain
 
PDF
[TechWorldSummit Stockholm 2019] Building Bots for Human with Conversational ...
Tomomi Imura
 
PDF
Future of the Web with Conversational Interface
Tomomi Imura
 
PPTX
Slack meetup 16 02-2020
Amit Chavan
 
PPTX
Automatic Test Results Publishing using Slack
Yelitza Ruales
 
PPTX
MuleSoft Integration with ChatGPT — Part 1 | MuleSoft Mysore Meetup #27
MysoreMuleSoftMeetup
 
PDF
Introduction to slack and how my team used it
Muchamad Ishaq Z
 
PDF
Building a slackbot
Dan Moore
 
PPTX
Reverse Engineering Slack
Agney Menon
 
PDF
Slack Apps: Best practices & Use Cases!
TheFamily
 
PDF
Writing a slack chatbot mxlos
Jesus Manuel Olivas
 
PDF
WebCamp 2016: Python. Вячеслав Каковский: Real-time мессенджер на Python. Осо...
WebCamp
 
PDF
5 Useful Slack integrations and bots
preyproject
 
PPTX
Conversational interfaces - beyond the hype
Matthieu Varagnat
 
Denver MuleSoft Meetup: Approve this! (or reject this!) with MuleSoft and Slack
Big Compass
 
Slack for the mere mortals
Abe Diaz
 
Chat Bots and how to build a Slack bot
Vasu Jain
 
Build apps for slack
Binod Jung Bogati
 
Use Slack in software development processes
Igor Khomenko
 
Advanced Integrations of MuleSoft with ChatGTP
NeerajKumar1965
 
Building Enterprise Chat Bots
Vasu Jain
 
[TechWorldSummit Stockholm 2019] Building Bots for Human with Conversational ...
Tomomi Imura
 
Future of the Web with Conversational Interface
Tomomi Imura
 
Slack meetup 16 02-2020
Amit Chavan
 
Automatic Test Results Publishing using Slack
Yelitza Ruales
 
MuleSoft Integration with ChatGPT — Part 1 | MuleSoft Mysore Meetup #27
MysoreMuleSoftMeetup
 
Introduction to slack and how my team used it
Muchamad Ishaq Z
 
Building a slackbot
Dan Moore
 
Reverse Engineering Slack
Agney Menon
 
Slack Apps: Best practices & Use Cases!
TheFamily
 
Writing a slack chatbot mxlos
Jesus Manuel Olivas
 
WebCamp 2016: Python. Вячеслав Каковский: Real-time мессенджер на Python. Осо...
WebCamp
 
5 Useful Slack integrations and bots
preyproject
 
Conversational interfaces - beyond the hype
Matthieu Varagnat
 

More from shyamraj55 (20)

PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PPTX
Curietech AI in action - Accelerate MuleSoft development
shyamraj55
 
PPTX
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
PPTX
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
PPTX
Leveraging AI and Agentforce for Intelligent Automation in the Salesforce & M...
shyamraj55
 
PPTX
Understanding Traditional AI with Custom Vision & MuleSoft.pptx
shyamraj55
 
PPTX
From Events to Persistence: Leveraging Salesforce Replay Channel & CockroachDB
shyamraj55
 
PPTX
Dreamforce Tour: MuleSoft Meets AI: IDP for Modern Enterprises
shyamraj55
 
PPTX
Global Exception Handling Custom Error Connector In MuleSoft
shyamraj55
 
PPTX
Getting started with Async API | Bangalore MuleSoft Meetup #41
shyamraj55
 
PPTX
Anypoint Code Builder June Release Overview, ASync API and Einstein Features....
shyamraj55
 
PPTX
Integrating Kafka with MuleSoft 4 and usecase
shyamraj55
 
PPTX
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
PPTX
Anypoint Mq, Einstien for ACB and MDC loggingBangalore MuleSoft Meetup #36-.pptx
shyamraj55
 
PPTX
Oauth 2.0 Introduction and Flows with MuleSoft
shyamraj55
 
PPTX
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
shyamraj55
 
PPTX
ServiceNow Integration with MuleSoft.pptx
shyamraj55
 
PPTX
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
shyamraj55
 
PPTX
How to release an Open Source Dataweave Library
shyamraj55
 
PPTX
Unleash the Solace Pub Sub connector | Banaglore MuleSoft Meetup #31
shyamraj55
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
Curietech AI in action - Accelerate MuleSoft development
shyamraj55
 
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
Leveraging AI and Agentforce for Intelligent Automation in the Salesforce & M...
shyamraj55
 
Understanding Traditional AI with Custom Vision & MuleSoft.pptx
shyamraj55
 
From Events to Persistence: Leveraging Salesforce Replay Channel & CockroachDB
shyamraj55
 
Dreamforce Tour: MuleSoft Meets AI: IDP for Modern Enterprises
shyamraj55
 
Global Exception Handling Custom Error Connector In MuleSoft
shyamraj55
 
Getting started with Async API | Bangalore MuleSoft Meetup #41
shyamraj55
 
Anypoint Code Builder June Release Overview, ASync API and Einstein Features....
shyamraj55
 
Integrating Kafka with MuleSoft 4 and usecase
shyamraj55
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
Anypoint Mq, Einstien for ACB and MDC loggingBangalore MuleSoft Meetup #36-.pptx
shyamraj55
 
Oauth 2.0 Introduction and Flows with MuleSoft
shyamraj55
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
shyamraj55
 
ServiceNow Integration with MuleSoft.pptx
shyamraj55
 
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
shyamraj55
 
How to release an Open Source Dataweave Library
shyamraj55
 
Unleash the Solace Pub Sub connector | Banaglore MuleSoft Meetup #31
shyamraj55
 
Ad

Recently uploaded (20)

PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Ad

ChatGPT and Slack Integration with MuleSoft

  • 1. Patna MuleSoft Meetup Group (19th Meetup) SNS - SQS, and the MuleSoft liaison 17th Jun 2023
  • 3. Safe Harbour Statement ● Both the speaker and the host are organizing this meet-up in individual capacity only. We are not representing our companies here. ● This presentation is strictly for learning purposes only. Organizer/Presenter do not hold any responsibility that same solution will work for your business requirements. ● This presentation is not meant for any promotional activities. 3
  • 4. A recording of this meetup will be uploaded to events page within 24 hours. Questions can be submitted/asked at any time in the Chat/Questions & Answers Tab. Make it more Interactive!!! Give us feedback! Rate this meetup session by filling feedback form at the end of the day. We Love Feedbacks!!! Its Bread & Butter for Meetup. Housekeeping 4
  • 6. 6 ● Slack & ChatGPT Introduction ● Slack configuration setup ● ChatGPT configuration setup ● Demo ○ Integration between Slack & ChatGPT ● Q&A ● Wrap-Up Agenda
  • 7. Slack is a messaging app for business that connects people to the information that they need. By bringing people together to work as one unified team, Slack transforms the way that organisations communicate. In July 2021, Salesforce completed its acquisition of Slack Technologies, Inc. With Slack, you can: • Decide where to have different types of conversations. • Find, join, and start conversations. • Work quickly with teammates using mentions and reactions. • Share files with the team. • Find the right information by searching in Slack. • Access important messages and files quickly. Slack Introduction 7
  • 8. Workspace: A Slack workspace is made up of channels, where team members can communicate and work together. Channel: Channels are spaces where you can work with your coworkers on specific topics. Conversations in channels are transparent and accessible to people in your company. Direct messages: DMs are for smaller conversations outside of channels, like if you wanted to ask a teammate to reschedule a 1:1 meeting. App: Apps are created to perform specific tasks in Slack. Slack keywords we should know… 8
  • 9. • ChatGPT is a sibling model to InstructGPT, which is trained to follow an instruction in a prompt and provide a detailed response. It uses OpenAI API and free to use. • It interacts in a conversational way. The dialogue format makes it possible for ChatGPT to answer followup questions, admit its mistakes, challenge incorrect premises, and reject inappropriate requests. • The OpenAI API can be applied to virtually any task that involves understanding or generating natural language, code, or images. • We can interact with the OpenAI API through HTTP requests from any language. It uses API keys for authentication. ChatGPT Introduction 9
  • 10. Prompts: Designing your prompt is essentially how you “program” the model, usually by providing some instructions or a few examples. This is different from most other NLP services which are designed for a single task, such as sentiment classification or named entity recognition. Tokens: ChatGPT models understand and process text by breaking it down into tokens. Tokens can be words or just chunks of characters. Many tokens start with a whitespace, for example “ hello” and “bye”. One limitation to keep in mind is that your text prompt and generated completion combined must be no more than the model's maximum context length (for most models this is 2048 tokens, or about 1500 words). Check out our tokenizer tool to learn more about how text translates to tokens. Models: The API is powered by a set of models with different capabilities and price points. GPT-4 is the latest and most powerful model. GPT-3.5-Turbo is the model that powers ChatGPT and is optimized for conversational formats. ChatGPT keywords we should know… 10
  • 11. Login into your slack account and go to https://api.slack.com/apps to create a new app. Create an app from scratch. Set up Slack configuration 11
  • 12. Give a relevant App Name and select the workspace. Set up Slack configuration 12
  • 13. After app creation, go to Basic Information and copy down Client ID and Client Secret for later use. Set up Slack configuration 13
  • 14. Go to OAuth & Permissions and add needed scopes in Scope section. Set up Slack configuration 14
  • 15. Click Install to Workspace. Copy the self generated Bot User OAuth Token for later use. Set up Slack configuration 15
  • 16. Go to the channel in your workspace in which you want to install the ChatBot app. Also, copy the Channel ID for later use. Add the ChatBot app in Integrations section. Set up Slack configuration 16
  • 17. Login to your ChatGPT account. Open below URL. An API for accessing new AI models developed by OpenAI: platform.openai.com Click on Profile icon. Go to View API keys. Generate a new secret key and copy it for later use. Set up ChatGPT configuration 17
  • 18. Demo
  • 19. This Conversations API method's required scopes depend on the type of channel-like object you're working with. To use the method, you'll need at least one of the channels:, groups:, im: or mpim: scopes corresponding to the conversation type you're working with. This method returns a portion of message events from the specified conversation. To read the entire history for a conversation, call the method with no oldest or latest arguments, and then continue paging using the instructions below. Required arguments: token, channel HTTP Method: POST Endpoint: https://slack.com/api/conversations.history Slack REST API: conversations.history 19
  • 20. Post to a public channel Pass the channel's ID to the channel parameter and the message will be posted to that channel. The channel's ID can be retrieved through the conversations.list API method. Post to a private channel As long as the authenticated user is a member of the private channel, pass the channel's ID to the channel parameter and the message will be posted to that channel. The private channel's ID can be retrieved through the conversations.list API method. Required arguments: token, channel, atleast one of attachments/ blocks/ text HTTP Method: POST Endpoint: https://slack.com/api/chat.postMessage Slack REST API: chat.postMessage 20
  • 21. It creates a model response for the given chat conversation. HTTP Method: POST Endpoint: https://api.openai.com/v1/chat/completions Request body: Model – string – Required : ID of the model to use. Messages – array – Required : A list of messages describing the conversation so far. Role – string – Required : The role of the author of this message. One of system, user, or assistant. Content – string – Required: The contents of the message. OpenAI API: chat/completions 21
  • 22. Open Anypoint Studio and create flow given below. Integration between Slack & ChatGPT 22
  • 23. Q&A
  • 24. Take a stand ! 24 ● Nominate yourself for the next meetup speaker and suggest a topic as well.
  • 25. ● Share: ○ Tweet or share using the hashtag #MuleSoftMeetups ○ Invite your network to join: https://meetups.mulesoft.com/patna/ ● Feedback: ○ Fill out the survey feedback and suggest topics for upcoming events ○ Contact MuleSoft at [email protected] for ways to improve the program ○ Reach out to Patna Meetup Leaders (Om/Amit/Shyam) to suggest topics for next Meetup 23 What’s next?