We can display Images while using Salesforce Agentforce. Use the Output Rendering as Rich Text instead of the default option Text.
Blog Post:
https://www.infallibletechie.com/2025/02/display-image-in-salesforce-agentforce.html
Show More Show Less View Video Transcript
0:04
hello everyone in this video we are
0:07
going to see how to display an image in
0:10
Salesforce agent force agent
0:12
conversation if you have a requirement
0:14
where you wanted to display an image
0:17
during the agent force agent
0:18
conversation then we have we can make
0:20
use of the output rendering as Rich text
0:24
let's see a uh demo and then we can see
0:28
the configuration behind it
0:30
uh for displaying an
0:32
image I have a
0:35
topic uh the the topic label is product
0:39
interest the classification description
0:42
is handles users interest to buy
0:45
products so if the users are interested
0:47
in buying the products then it will uh
0:50
come to this topic and the scope of this
0:54
topic is to show the products
0:56
information I have two instructions the
0:59
first first instruction is to Fitch the
1:01
products and show it to the customer ask
1:05
the customer to select one product so
1:07
they can select only one product so that
1:09
it will display the image for
1:11
them use show product action to display
1:15
the product after the user selection so
1:18
once they select the product it will
1:21
display the product information to them
1:24
I am making use
1:26
of two actions here these two are cust
1:29
custom actions these are not standard
1:32
actions the first action I'm making use
1:34
of an apex action so that it will fetch
1:36
the available products next Once the
1:40
user selects the product it will call
1:43
this flow in this flow in each and every
1:46
product record I have a simple HTML code
1:51
so that it can be return returned from
1:54
this
1:55
flow and then it will display that
1:58
particular HTML and making use of image
2:01
tag and then I I will be displaying the
2:04
product image let's see that I'm going
2:07
to say
2:09
interested in
2:11
products it will invoke this Apex action
2:15
and then it will fetch the available
2:17
products I have some uh uh configuration
2:22
in this Apex so that it will fetch only
2:24
the available products we are not going
2:25
to see the Apex code behind it so here
2:29
are the available products I'm going to
2:31
say I want number one the first product
2:35
now it will call this Apex sorry now it
2:38
will call this flow and then it will
2:40
Fitch the uh HTML information of the
2:45
image uh tag and then it will display
2:48
the
2:53
image so these are all the list of
2:58
products and I'm able to to display an
3:03
image okay so let's
3:06
see this fetch product image flow
3:12
action the agent force agent was
3:16
seemlessly able to send the selected
3:19
product
3:21
information to the selected product
3:24
input variable in the flow
3:33
here I have selected product which is an
3:36
input variable so the agent force agent
3:38
was able to pass that information to
3:40
this flow in this flow I am
3:44
getting I'm from the selected product ID
3:47
I'm getting the ID of the
3:49
product and then using
3:53
assignment this is uh another input
3:56
variable of type text I'm getting the
3:59
image
4:01
HTML which is a custom field where I am
4:05
having uh the product image information
4:09
let me show
4:23
that so here this image HTML is a custom
4:27
field where I am
4:30
making use of image HTML tag so here the
4:35
selected product is passed and I'm able
4:38
to get
4:39
the uh product image which is a output
4:46
variable so this will return the image
4:50
HTML um
4:53
content so this value will be return
4:56
returned and uh I am making use of
4:59
output rendering as Rich text so that
5:02
that image uh HTML will be rendered
5:05
as an image
5:11
here so you can also make use of output
5:14
rendering as Rich text and then you can
5:17
display images in your agent force agent
5:20
conversation
5:33
I hope it was
5:40
helpful thank you for watching
#Internet Software
