Astro’s Wild Dream
Learning Objectives
After completing this unit, you’ll be able to:
- Use the Campfire Stories employee agent to add a new story to the Campfire Stories object.
Tell Stories to Your Agent
The Campfire Stories custom object and employee agent were a breeze to create headlessly, so you walk down the beach to meet the others at the campfire ring. Codey and Ruth are still deep in conversation, planning every detail of the Campfire Stories Experience. Astro has jabbered themself into a deep sleep in their chair, but they’re obviously dreaming a pretty wild dream.
“I think they’re dreaming about s’mores,” Ruth nods in Astro’s direction.
With a start, Astro wakes up shaking. “I had the wackiest dream ever! I was in the ocean and there were floating marshmallows and I was rescued by a chocolate raft. The sand was graham cracker crumbs! Then I melted in the sun, and when I looked at my reflection in the water I was a s’more! It was wild and so scary! Do I really look like a s’more?”
You, Codey, and Ruth laugh. “Let’s tell your story to the agent I just created,” you say, “it can be the first in our list of campfire stories!”

A Sea of S’mores
Back at your office, you show your friends what you’ve been working on, and they’re all impressed. “This will be so much fun!” Ruth says, clasping her hands. “Astro, tell us your dream so we can see how this agent works!”
So Astro describes their dream in such vivid detail that all you feel like you were there yourselves. As Astro talks, you enter the details into the agent.
- In your Headless Experience Playground, select
to leave Agentforce Builder.
- Select
, then search for and select Coral Cloud Resorts.
- Select the Campfire Stories tab to open the Campfire Stories object–you might need to select More to see it. Important: Agents are context-sensitive, so you need to engage with the agent in the object where it will do its work.
- When your agent was activated in the headless experience in the last unit, the Campfire Stories agent became available to use in your playground. Select
to open the Campfire Stories employee agent.
- Select Create a new campfire story. (It may take a few seconds for the Create a new campfire story button to appear, and you may see slightly different text.)

The information in the chat window changes to help you create a new story. It asks for specific details that align to the fields on the Campfire Stories object. These questions will be addressed in the story prompt you use in the next step.
- In the agent text field, copy and paste these story details, then select
.
The title is A Sea of S’mores The type is Scary Dream The audience is Kids The Length is Medium (5-7 min) The full text is this: On a dark and stormy night, Astro found themself stranded on a lonely stretch of beach. The last thing they remembered, they’d been paddle boarding in the bay and paddled too close to a flippant whale. Now, they were here, the day is night, and the once glassy sea is now roiling in a terrible storm. The beach shook as thunder rumbled and waves pummeled the shore and the nearby cliffs. Cold, soggy, and feeling very alone, Astro managed to light the smallest, smokiest campfire with some damp driftwood. They hunched over their meager fire to protect it from the howling wind and sheets of rain. They couldn’t afford to lose this flame because they were so hungry and they had used their very last match. Even through the raging storm, the only things on Astro’s mind were the graham crackers, chocolate bars, and marshmallows wrapped up tightly in their backpack. They hoped they weren’t wet. In the flickering lightning, they could make out the rising tide and hoped they could make at least one s’more before the waves took their fire away. They don’t like cold marshmallows. All of a sudden, a gust of wind blew up a spray of saltwater that doused their fire in a blink. Noooooooooo! Astro cried at the stormy sky. When they looked back to the steaming mess of watery logs that had been their fire, they were horrified to see a sneaker wave pulling their backpack out to sea. My s’mores! My s’mores! they yelled helplessly, but their voice was whipped away by the wind. Now they were hungrier, even more exhausted, and feeling very defeated. In their dream, Astro bobbed up and down in the dark, treacherous waves. Every so often they and their backpack bobbed at the same cadence and they could see it rise and fall in the distance. Then, something hard bounced into them and floated off - was that a chocolate raft?! Yes! They frantically swam to it and scrambled on board and began futilely paddling with their hands in the direction of the backpack. They floated on the huge chocolate bar for what seemed ages before lightning lit up something big and white bobbing in the distance. They guided the raft toward the object. A boat? No. A buoy? No! It was a giant marshmallow! Astro grabbed it and pulled it onto the chocolate raft and together they floated and bobbed on and on through the stormy night. Morning came, and Astro was again on a beach. The storm was over and the hot sun had softened the chocolate bar raft. The giant marshmallow had turned a golden tan and melted all over them. It smelled delicious. They brushed sand off of their face and realized the sand wasn’t even sand - it was graham cracker crumbs! Yum! Suddenly, they remembered what their friends had been telling them. If you keep talking about s’mores you’re going to turn into a s’more! You’re going to turn into a s’more! …turn into a s’more…a s’more …s’more s’mores! Their words danced and swirled around them. They stood up and shuffled to the waters edge and looked at their reflection in the surf. I am a s’more!

- To be sure that the agent saved your story to the Campfire Stories object, copy and paste this text into the chat window:
Save the story to the Campfire Stories object if it hasn’t already been saved.
View the New Campfire Story
Astro is so relieved to have told their story, but they're still kind of shaky and half-thinking they’re a s’more.
When you finish entering their story into the agent, you all look at the Campfire Stories object to see the story record you just created.
- Select
to close the Campfire Stories agent panel.

- Refresh your browser window. Your new story is listed on the Campfire Stories object in the All list view.
- Select the record number for the story you just created, A Sea of S’mores, to verify that the story was added to the object and that the fields are populated with story details.

What’s Next?
In the next unit, you add another story and generate a few more. Then you prompt the employee agent to suggest stories based on criteria you give it.