Adding agent scripts that can display published messages in different ways